fortran-strings 1.3.0
Fortran library of functions for common string manipulations
Loading...
Searching...
No Matches
strings.f90 File Reference

Modules

module  strings

Functions/Subroutines

integer function strings::str_count (str, substr, match_case)
 Count the occurrences of a substring in a string.
character(len=:) function, allocatable strings::str_replace (str, old, new)
 Replace a substring with another substring within a parent string.
character(len=:) function, allocatable strings::str_upper (str)
 Convert all letters to uppercase.
character(len=:) function, allocatable strings::str_lower (str)
 Convert all letters to lowercase.
character(len=:) function, allocatable strings::str_split (str, delim, col)
 Split string based on a character delimiter and return string given by the column number.
character(len=:) function, allocatable strings::str_uniq (str, delim)
 Removed duplicative entries from a delimited string.
character(len=:) function, allocatable strings::str_zfill (str, width)
 Pad a string with zeroes ("0") to specified width. If width is <= input string width, then the original string is returned.
character(len=:) function, allocatable strings::str_center (str, width, fillchar)
 Center a string to a specified width. The default character to fill in the centered string is a blank character.
character(len=:) function, allocatable strings::str_reverse (str)
 Reverse a string.
logical function strings::str_test (str, substr, match_case)
 Return .true. if substr is in str, .false. otherwise.
character(len=:) function, allocatable strings::str_swapcase (str)
 Return str with case of letters swapped.