FORCES
FORtran lib for Comp. Env. Sys.
|
String utilities. More...
Go to the source code of this file.
Data Types | |
interface | mo_string_utils::num2str |
Convert to string. More... | |
interface | mo_string_utils::numarray2str |
Convert to string. More... | |
Modules | |
module | mo_string_utils |
String utilities. | |
Functions/Subroutines | |
pure logical function, public | mo_string_utils::is_blank (c) |
Check for blank characters. | |
character(len(whitespaces)) function, public | mo_string_utils::compress (whitespaces, n) |
Remove white spaces. | |
character(len(s)+100) function, public | mo_string_utils::replace_text (s, text, rep) |
character(len(s)+100) function, public | mo_string_utils::replace_word (s, word, rep, check_negative_number_arg) |
replaces words in a string | |
integer function, public | mo_string_utils::index_word (s, text, check_negative_number_arg) |
find index in word | |
subroutine, public | mo_string_utils::divide_string (string, delim, strarr) |
Divide string in substrings. | |
logical function, public | mo_string_utils::equalstrings (string1, string2) |
Checks if two string are equal. | |
logical function, public | mo_string_utils::nonull (str) |
Checks if string was already used. | |
character(len=256) function, dimension(:), allocatable, public | mo_string_utils::splitstring (string, delim) |
split string at delimiter | |
logical function, public | mo_string_utils::startswith (string, start, strip) |
Checks if string starts with character(s) | |
logical function, public | mo_string_utils::endswith (string, suffix, strip) |
Checks if (maybe trimmed) string ends with given character(s) | |
character(len=len_trim(upper)) function, public | mo_string_utils::tolower (upper) |
Convert to lower case. | |
character(len=len_trim(lower)) function, public | mo_string_utils::toupper (lower) |
Convert to upper case. | |
pure character(len=10) function | mo_string_utils::i42str (nn, form) |
pure character(len=20) function | mo_string_utils::i82str (nn, form) |
pure character(len=32) function | mo_string_utils::sp2str (rr, form) |
pure character(len=32) function | mo_string_utils::dp2str (rr, form) |
pure character(len=10) function | mo_string_utils::log2str (ll, form) |
character(len=size(arr)) function | mo_string_utils::i4array2str (arr) |
integer(i4) function, dimension(:), allocatable, public | mo_string_utils::str2num (string) |
Converts string into an array of its numerical representation. | |
Variables | |
character(len= *), parameter, public | mo_string_utils::separator = repeat('-', 70) |
separator string (line) | |
String utilities.
This module provides string conversion and checking utilities.
COPYING
and COPYING.LESSER
provided with this software. The complete GNU license text can also be found at http://www.gnu.org/licenses/. Definition in file mo_string_utils.f90.