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

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).