Go to the source code of this file.
Data Types | |
| type | string |
| Represents text as a sequence of ASCII code units. The derived type wraps an allocatable character array. More... | |
| interface | len |
| Return the length of a string object. More... | |
| interface | len_trim |
| Return the trimmed length of a string object. More... | |
| interface | trim |
| Remove trailing blanks from a string object. More... | |
| interface | operator(//) |
| Concatenate string and character expressions. More... | |
| interface | operator(.contains.) |
| Test whether a value is present in an array. More... | |
| interface | index |
| Locate the position of a substring. More... | |
Functions/Subroutines | |
| logical function, public | starts_with (str, arg1, idx) |
| Checks if a string starts with a given prefix Returns .true. if the string str (after trimming leading/trailing whitespace) begins exactly with the substring arg1. The function uses index() after trimming both strings with trim(adjustl()). | |
| character function, public | head (str) |
| Returns the first character of the trimmed 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). | |
| pure character(len_trim(str)) function, public | lowercase (str) |
| Convert string to lower 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). | |