Loading...
Searching...
No Matches
string.f90

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. More...
interface  len_trim
 Return the trimmed length of a string. More...
interface  trim
 Return the trimmed string. More...
interface  operator(//)
 Concatenation operator. More...
interface  operator(.contains.)
 Check whether a string belongs to a list or not. More...
interface  index
 Index operator. 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)
 Formatted output procedure for user-defined type string (UDTIO) This procedure is called automatically when a formatted WRITE statement is used with a variable of type string (when using the DT edit descriptor or default formatted output for the type).
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 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).
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).
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.