string Module


Uses


Contents


Variables

TypeVisibility AttributesNameInitial
integer, public, parameter:: max_char_length =500

Interfaces

public interface str

  • private function int2str(inte) result(str)

    Arguments

    Type IntentOptional AttributesName
    integer, intent(in) :: inte

    Return Value character(len=:), allocatable

  • private function int_ary2str(nums, split) result(str2)

    Arguments

    Type IntentOptional AttributesName
    integer, intent(in) :: nums(:)
    character(len=1), intent(in), optional :: split

    Return Value character(len=:), allocatable

  • private function flt2str(num, digit) result(str)

    Arguments

    Type IntentOptional AttributesName
    real(kind=4), intent(in) :: num
    integer, intent(in), optional :: digit

    Return Value character(len=:), allocatable

  • private function flt_ary2str(nums, split) result(str2)

    Arguments

    Type IntentOptional AttributesName
    real(kind=4), intent(in) :: nums(:)
    character(len=1), intent(in), optional :: split

    Return Value character(len=:), allocatable

  • private function dbl2str(num, digit_) result(str2)

    Arguments

    Type IntentOptional AttributesName
    real(kind=8), intent(in) :: num
    integer, intent(in), optional :: digit_

    Return Value character(len=:), allocatable

  • private function dbl_ary2str(nums, split) result(str2)

    Arguments

    Type IntentOptional AttributesName
    real(kind=8), intent(in) :: nums(:)
    character(len=1), intent(in), optional :: split

    Return Value character(len=:), allocatable

  • private function com2str(num, digit) result(str)

    Arguments

    Type IntentOptional AttributesName
    complex, intent(in) :: num
    integer, intent(in), optional :: digit

    Return Value character(len=:), allocatable

  • private function com_ary2str(nums, split) result(str2)

    Arguments

    Type IntentOptional AttributesName
    complex(kind=4), intent(in) :: nums(:)
    character(len=*), intent(in), optional :: split

    Return Value character(len=:), allocatable

  • private function dcom2str(num, digit) result(str)

    Arguments

    Type IntentOptional AttributesName
    complex(kind=8), intent(in) :: num
    integer, intent(in), optional :: digit

    Return Value character(len=:), allocatable

  • private function dcom_ary2str(nums, split) result(str2)

    Arguments

    Type IntentOptional AttributesName
    complex(kind=8), intent(in) :: nums(:)
    character(len=*), intent(in), optional :: split

    Return Value character(len=:), allocatable

  • private function logi2str(num) result(str)

    Arguments

    Type IntentOptional AttributesName
    logical, intent(in) :: num

    Return Value character(len=:), allocatable

  • private function logi_ary2str(nums, split) result(str2)

    Arguments

    Type IntentOptional AttributesName
    logical, intent(in) :: nums(:)
    character(len=*), intent(in), optional :: split

    Return Value character(len=:), allocatable

  • private function str_ary2str(nums, split) result(str2)

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: nums(:)
    character(len=1), intent(in), optional :: split

    Return Value character(len=:), allocatable

public interface operator(//)

  • private function concat(st1, st2) result(str)

    Arguments

    Type IntentOptional AttributesName
    class(*), intent(in) :: st1
    class(*), intent(in) :: st2

    Return Value character(len=:), allocatable


Functions

public function after_dot(str) result(res)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: str

Return Value character(len=:), allocatable

public function before_dot(str) result(res)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: str

Return Value character(len=:), allocatable

public function str_before(str, ch) result(res)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: str
character(len=1), intent(in) :: ch

Return Value character(len=:), allocatable

public function str_after(str, ch) result(res)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: str
character(len=1), intent(in) :: ch

Return Value character(len=:), allocatable