tomlf_utils Module



Interfaces

public interface to_string

  • private pure function to_string_i1(val) result(string)

    Represent an integer as character sequence.

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=ik), intent(in) :: val

    Integer value to create string from

    Return Value character(len=:), allocatable

    String representation of integer

  • private pure function to_string_i2(val) result(string)

    Represent an integer as character sequence.

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=ik), intent(in) :: val

    Integer value to create string from

    Return Value character(len=:), allocatable

    String representation of integer

  • private pure function to_string_i4(val) result(string)

    Represent an integer as character sequence.

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=ik), intent(in) :: val

    Integer value to create string from

    Return Value character(len=:), allocatable

    String representation of integer

  • private pure function to_string_i8(val) result(string)

    Represent an integer as character sequence.

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=ik), intent(in) :: val

    Integer value to create string from

    Return Value character(len=:), allocatable

    String representation of integer

  • private pure function to_string_r8(val) result(string)

    Represent an real as character sequence.

    Arguments

    Type IntentOptional Attributes Name
    real(kind=rk), intent(in) :: val

    Real value to create string from

    Return Value character(len=:), allocatable

    String representation of integer


Subroutines

public subroutine toml_escape_string(raw, escaped, multiline)

Escape all special characters in a TOML string

Arguments

Type IntentOptional Attributes Name
character(kind=tfc, len=*), intent(in) :: raw

Raw representation of TOML string

character(kind=tfc, len=:), intent(out), allocatable :: escaped

Escaped view of the TOML string

logical, intent(in), optional :: multiline

Preserve newline characters