Derived types and interfaces | |
| interface | len |
| Return the length of a string. More... | |
| interface | len_trim |
| Return the trimmed length of a string. More... | |
| interface | operator(.contains.) |
| interface | operator(//) |
| type | string |
| Represents text as a sequence of ASCII code units. The derived type wraps an allocatable character array. More... | |
| interface | trim |
| Return the trimmed string. More... | |
Functions/Subroutines | |
| subroutine | character_assign_string (lhs, rhs) |
| Assignment overloading. Assign a character array to a string. | |
| subroutine | string_assign_character (lhs, rhs) |
| Assignment overloading. Assign a string to a character array. | |
| elemental integer function | string_len (this) |
| Length of the string entity. | |
| pure integer function | string_len_trim (this) |
| Length of the string entity without trailing blanks (len_trim). | |
| pure character(:) function, allocatable | string_trim (this) |
| Returns a copy of the string with trailing blanks removed. | |
| pure character(:) function, allocatable | string_concat_string (lhs, rhs) |
| Concatenation of two string objects. | |
| pure character(:) function, allocatable | string_concat_character (lhs, rhs) |
| Concatenation of string and character expression. | |
| pure character(:) function, allocatable | character_concat_string (lhs, rhs) |
| Concatenation of character expression and string. | |
| elemental logical function | string_eq_string (lhs, rhs) |
| Equality comparison between two string objects. | |
| elemental logical function | string_eq_character (lhs, rhs) |
| Equality comparison between string and character expression. | |
| elemental logical function | character_eq_string (lhs, rhs) |
| Equality comparison (reversed) between character expression and string. | |
| subroutine | write_formatted (dtv, unit, iotype, v_list, iostat, iomsg) |
| logical function, public | starts_with (str, arg1, idx) |
| Formatted write support for the string type. | |
| character function, public | head (str) |
| Returns the first non-blank character of a string. | |
| character function, public | tail (str) |
| Returns the last non-blank character of a string. | |
| character(:) function, allocatable, public | concat (str1, str2) |
| Smart concatenation that removes continuation markers (&) and handles line-continuation rules. | |
| pure character(len_trim(str)) function, public | uppercase (str) |
| Convert string to upper case (respects contents of quotes). | |
| subroutine, public | writechk (unit, str) |
| Write a long line split into chunks of size CHKSIZE with continuation (&). | |
| character(1) function, public | previous (line, pos) |
| Returns the previous non-blank character before position pos (updates pos). | |
| logical function | strings_contain_string (lhs, rhs) |
| Checks whether an array of string contains a given string. | |
| logical function | strings_contain_character (lhs, rhs) |
| Checks whether an array of string contains a given character expression. | |
| logical function | characters_contain_character (lhs, rhs) |
| Checks whether an array of character contains a given character expression. | |
| logical function | characters_contain_string (lhs, rhs) |
| Checks whether an array of character contains a given string. | |
|
private |
Assignment overloading. Assign a character array to a string.
| [in,out] | lhs | string |
| [in] | rhs | character(*) |
Examples
Remarks
Definition at line 181 of file string.f90.
|
private |
Concatenation of character expression and string.
| [in] | lhs | character expression |
| [in] | rhs | string |
Definition at line 311 of file string.f90.
|
private |
Equality comparison (reversed) between character expression and string.
| [in] | lhs | character expression |
| [in] | rhs | string |
Definition at line 359 of file string.f90.
|
private |
Checks whether an array of character contains a given character expression.
| [in] | lhs | array of character |
| [in] | rhs | character expression to search for |
Definition at line 590 of file string.f90.
|
private |
Checks whether an array of character contains a given string.
| [in] | lhs | array of character |
| [in] | rhs | string to search for |
Definition at line 609 of file string.f90.
| character(:) function, allocatable, public concat | ( | character(*), intent(in) | str1, |
| character(*), intent(in) | str2 ) |
Smart concatenation that removes continuation markers (&) and handles line-continuation rules.
| [in] | str1 | first line |
| [in] | str2 | second line |
Definition at line 435 of file string.f90.
| character function, public head | ( | character(*), intent(in) | str | ) |
Returns the first non-blank character of a string.
| [in] | str | input string |
Definition at line 408 of file string.f90.
| character(1) function, public previous | ( | character(*), intent(in) | line, |
| integer, intent(inout) | pos ) |
Returns the previous non-blank character before position pos (updates pos).
| [in] | line | input line |
| [in,out] | pos | current position (moved backward) |
Definition at line 532 of file string.f90.
| logical function, public starts_with | ( | character(*), intent(in) | str, |
| character(*), intent(in) | arg1, | ||
| integer, intent(out), optional | idx ) |
Formatted write support for the string type.
| [in] | dtv | string object |
| [in] | unit | logical unit |
| [in] | iotype | edit descriptor string |
| [in] | v_list | list of values for edit descriptors |
| [out] | iostat | I/O status |
| [in,out] | iomsg | I/O message |
Definition at line 393 of file string.f90.
|
private |
Assignment overloading. Assign a string to a character array.
| [in,out] | lhs | character(:), allocatable |
| [in] | rhs | string |
Examples
Remarks
Definition at line 204 of file string.f90.
|
private |
Concatenation of string and character expression.
| [in] | lhs | string |
| [in] | rhs | character expression |
Definition at line 295 of file string.f90.
|
private |
Concatenation of two string objects.
| [in] | lhs | left-hand side string |
| [in] | rhs | right-hand side string |
Definition at line 275 of file string.f90.
|
private |
Equality comparison between string and character expression.
| [in] | lhs | string |
| [in] | rhs | character expression |
Definition at line 343 of file string.f90.
|
private |
Equality comparison between two string objects.
| [in] | lhs | left-hand side |
| [in] | rhs | right-hand side |
Definition at line 327 of file string.f90.
|
private |
Length of the string entity.
| [in] | this | string |
Examples
Definition at line 224 of file string.f90.
|
private |
Length of the string entity without trailing blanks (len_trim).
| [in] | this | string |
Examples
Definition at line 247 of file string.f90.
|
private |
Returns a copy of the string with trailing blanks removed.
| [in] | this | string |
Definition at line 260 of file string.f90.
|
private |
Checks whether an array of string contains a given character expression.
| [in] | lhs | array of string |
| [in] | rhs | character expression to search for |
Definition at line 571 of file string.f90.
|
private |
Checks whether an array of string contains a given string.
| [in] | lhs | array of string |
| [in] | rhs | string to search for |
Definition at line 552 of file string.f90.
| character function, public tail | ( | character(*), intent(in) | str | ) |
Returns the last non-blank character of a string.
| [in] | str | input string |
Definition at line 420 of file string.f90.
| pure character(len_trim(str)) function, public uppercase | ( | character(*), intent(in) | str | ) |
Convert string to upper case (respects contents of quotes).
| [in] | str | input string |
Examples
Definition at line 479 of file string.f90.
|
private |
Definition at line 371 of file string.f90.
| subroutine, public writechk | ( | integer, intent(in) | unit, |
| character(*), intent(in) | str ) |
Write a long line split into chunks of size CHKSIZE with continuation (&).
| [in] | unit | logical unit |
| [in] | str | string to write |
Definition at line 512 of file string.f90.