(git:374b731)
Loading...
Searching...
No Matches
string_utilities.F File Reference

Go to the source code of this file.

Data Types

interface  string_utilities::s2a
 

Modules

module  string_utilities
 Utilities for string manipulations.
 

Functions/Subroutines

elemental integer function, public string_utilities::typo_match (string, typo_string)
 returns a non-zero positive value if typo_string equals string apart from a few typos. It is case sensitive, apart from typos.
 
pure character(len=size(array)) function, public string_utilities::a2s (array)
 Converts a character-array into a string.
 
subroutine, public string_utilities::ascii_to_string (nascii, string)
 Convert a sequence of integer numbers (ASCII code) to a string. Blanks are inserted for invalid ASCII code numbers.
 
subroutine, public string_utilities::compress (string, full)
 Eliminate multiple space characters in a string. If full is .TRUE., then all spaces are eliminated.
 
subroutine, public string_utilities::integer_to_string (inumber, string)
 Converts an integer number to a string. The WRITE statement will return an error message, if the number of digits of the integer number is larger the than the length of the supplied string.
 
subroutine, public string_utilities::string_to_ascii (string, nascii)
 Convert a string to sequence of integer numbers.
 
subroutine, public string_utilities::remove_word (string)
 remove a word from a string (words are separated by white spaces)
 
character(len=2 *len(inp_string)) function, public string_utilities::substitute_special_xml_tokens (inp_string)
 Substitutes the five predefined XML entities: &, <, >, ', and ".
 
elemental subroutine, public string_utilities::uppercase (string)
 Convert all lower case characters in a string to upper case.
 
elemental subroutine, public string_utilities::xstring (string, ia, ib)
 ...
 
elemental logical function, public string_utilities::str_comp (str1, str2)
 ...
 
elemental logical function, public string_utilities::is_whitespace (testchar)
 returns .true. if the character passed is a whitespace char.
 
elemental subroutine, public string_utilities::strip_control_codes (string)
 Strip control codes and extended characters from a string, i.e. replace them with blanks.
 
integer function, public string_utilities::strlcpy_c2f (fstring, cstring)
 Copy the content of a \0-terminated C-string to a finite-length Fortran string.
 

Variables

character(len=1), parameter, public string_utilities::newline = ACHAR(10)