dbcsr_string_utilities Module

Utilities for string manipulations



Interfaces

public interface stringify

  • private function integer_to_string(inumber) result(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.

    Arguments

    Type IntentOptional Attributes Name
    integer, intent(in) :: inumber

    Return Value character(len=:), ALLOCATABLE


Functions

private function integer_to_string(inumber) result(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.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: inumber

Return Value character(len=:), ALLOCATABLE


Subroutines

public subroutine compress(string, full)

Eliminate multiple space characters in a string. If full is .TRUE., then all spaces are eliminated.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(inout) :: string
logical, intent(in), optional :: full

public subroutine uppercase(string)

Convert all lower case characters in a string to upper case.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(inout) :: string

public elemental subroutine str2int(str, int, stat)

Convert a string to integer

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: str
integer, intent(out) :: int
integer, intent(out) :: stat