Defines a string type.
Gets the requested character from the string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(string), | intent(in) | :: | this |
The string object. |
||
| integer(kind=int32), | intent(in) | :: | i |
The index of the character to retrieve. |
The requested character.
Replaces a character in the string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(string), | intent(inout) | :: | this |
The string object. |
||
| integer(kind=int32), | intent(in) | :: | i |
The index of the character to replace. |
||
| character(len=1), | intent(in) | :: | x |
The character. |