stringifor Module

module~~stringifor~~UsesGraph module~stringifor stringifor module~stringifor_string_t stringifor_string_t module~stringifor_string_t->module~stringifor module~penf~3 penf module~penf~3->module~stringifor module~penf~3->module~stringifor_string_t module~befor64 befor64 module~penf~3->module~befor64 module~befor64_pack_data_m~2 befor64_pack_data_m module~penf~3->module~befor64_pack_data_m~2 module~befor64->module~stringifor_string_t module~befor64_pack_data_m~2->module~befor64 module~penf_global_parameters_variables penf_global_parameters_variables module~penf_global_parameters_variables->module~penf~3 module~penf_b_size~4 penf_b_size module~penf_global_parameters_variables->module~penf_b_size~4 module~penf_stringify~3 penf_stringify module~penf_global_parameters_variables->module~penf_stringify~3 module~penf_b_size~4->module~penf~3 module~penf_b_size~4->module~penf_stringify~3 module~penf_stringify~3->module~penf~3 iso_fortran_env iso_fortran_env iso_fortran_env->module~penf_stringify~3
Help

StringiFor, Strings Fortran, yet another stringify Fortran module

Used By

module~~stringifor~~UsedByGraph module~stringifor stringifor program~write_file write_file module~stringifor->program~write_file module~fury_uom_symbol128 fury_uom_symbol128 module~stringifor->module~fury_uom_symbol128 program~join join module~stringifor->program~join program~decode decode module~stringifor->program~decode program~srepeat srepeat module~stringifor->program~srepeat program~encode encode module~stringifor->program~encode program~to_number to_number module~stringifor->program~to_number module~fury_system_si64 fury_system_si64 module~stringifor->module~fury_system_si64 program~search search module~stringifor->program~search program~equal equal module~stringifor->program~equal module~fury_system_si128 fury_system_si128 module~stringifor->module~fury_system_si128 program~reverse reverse module~stringifor->program~reverse program~basename_dir basename_dir module~stringifor->program~basename_dir program~split split module~stringifor->program~split program~escape escape module~stringifor->program~escape program~swapcase swapcase module~stringifor->program~swapcase program~not_equal not_equal module~stringifor->program~not_equal program~slice slice module~stringifor->program~slice program~extension extension module~stringifor->program~extension module~fury_qreal128 fury_qreal128 module~stringifor->module~fury_qreal128 program~fill fill module~stringifor->program~fill program~free free module~stringifor->program~free program~snakecase snakecase module~stringifor->program~snakecase module~fury_uom_symbol32 fury_uom_symbol32 module~stringifor->module~fury_uom_symbol32 program~is_real is_real module~stringifor->program~is_real program~read_file read_file module~stringifor->program~read_file program~replace replace module~stringifor->program~replace program~sadjustlr sadjustlr module~stringifor->program~sadjustlr module~fury_uom64 fury_uom64 module~stringifor->module~fury_uom64 program~read_line read_line module~stringifor->program~read_line program~insert insert module~stringifor->program~insert program~greater_equal_than greater_equal_than module~stringifor->program~greater_equal_than program~is_number is_number module~stringifor->program~is_number program~strim strim module~stringifor->program~strim program~read_lines read_lines module~stringifor->program~read_lines program~sindex sindex module~stringifor->program~sindex program~greater_than greater_than module~stringifor->program~greater_than program~strip strip module~stringifor->program~strip program~startcase startcase module~stringifor->program~startcase program~camelcase camelcase module~stringifor->program~camelcase module~fury fury module~stringifor->module~fury program~is_integer is_integer module~stringifor->program~is_integer program~sverify sverify module~stringifor->program~sverify program~lower_equal_than lower_equal_than module~stringifor->program~lower_equal_than program~upper_lower upper_lower module~stringifor->program~upper_lower module~fury_mixed_kinds fury_mixed_kinds module~stringifor->module~fury_mixed_kinds program~partition partition module~stringifor->program~partition program~write_lines write_lines module~stringifor->program~write_lines module~fury_uom_reference64 fury_uom_reference64 module~stringifor->module~fury_uom_reference64 program~csv_naive_parser csv_naive_parser module~stringifor->program~csv_naive_parser module~fury_system_abstract32 fury_system_abstract32 module~stringifor->module~fury_system_abstract32 program~is_digit is_digit module~stringifor->program~is_digit program~count_string count_string module~stringifor->program~count_string module~fury_qreal32 fury_qreal32 module~stringifor->module~fury_qreal32 module~fury_qreal64 fury_qreal64 module~stringifor->module~fury_qreal64 module~fury_system_abstract64 fury_system_abstract64 module~stringifor->module~fury_system_abstract64 module~fury_uom_symbol64 fury_uom_symbol64 module~stringifor->module~fury_uom_symbol64 program~sscan sscan module~stringifor->program~sscan program~assignments assignments module~stringifor->program~assignments module~fury_uom32 fury_uom32 module~stringifor->module~fury_uom32 program~io_formatted io_formatted module~stringifor->program~io_formatted program~unique unique module~stringifor->program~unique program~slen slen module~stringifor->program~slen module~fury_uom128 fury_uom128 module~stringifor->module~fury_uom128 module~fury_uom_reference32 fury_uom_reference32 module~stringifor->module~fury_uom_reference32 program~concatenation concatenation module~stringifor->program~concatenation module~fury_system_abstract128 fury_system_abstract128 module~stringifor->module~fury_system_abstract128 program~capitalize capitalize module~stringifor->program~capitalize module~fury_uom_reference128 fury_uom_reference128 module~stringifor->module~fury_uom_reference128 program~io_basic io_basic module~stringifor->program~io_basic program~unescape unescape module~stringifor->program~unescape module~fury_system_si32 fury_system_si32 module~stringifor->module~fury_system_si32 program~start_end start_end module~stringifor->program~start_end program~lower_than lower_than module~stringifor->program~lower_than module~fury_uom_symbol128->module~fury module~fury_uom_symbol128->module~fury_mixed_kinds module~fury_uom_symbol128->module~fury_uom128 module~fury_uom_symbol128->module~fury_uom_reference128 module~fury_system_si64->module~fury module~fury_system_si128->module~fury module~fury_qreal128->module~fury_system_si128 module~fury_qreal128->module~fury module~fury_qreal128->module~fury_mixed_kinds module~fury_qreal128->module~fury_system_abstract128 module~fury_uom_symbol32->module~fury module~fury_uom_symbol32->module~fury_mixed_kinds module~fury_uom_symbol32->module~fury_uom32 module~fury_uom_symbol32->module~fury_uom_reference32 module~fury_uom64->module~fury_system_si64 module~fury_uom64->module~fury module~fury_uom64->module~fury_mixed_kinds module~fury_uom64->module~fury_qreal64 module~fury_uom64->module~fury_system_abstract64 program~fury_test_qreal_div_mixed fury_test_qreal_div_mixed module~fury->program~fury_test_qreal_div_mixed program~fury_test_qreal_eq fury_test_qreal_eq module~fury->program~fury_test_qreal_eq program~fury_test_uom_div fury_test_uom_div module~fury->program~fury_test_uom_div program~fury_test_qreal_eq_mixed fury_test_qreal_eq_mixed module~fury->program~fury_test_qreal_eq_mixed program~fury_test_uom_mul fury_test_uom_mul module~fury->program~fury_test_uom_mul program~fury_test_qreal_mul fury_test_qreal_mul module~fury->program~fury_test_qreal_mul program~fury_test_bolt32 fury_test_bolt32 module~fury->program~fury_test_bolt32 program~fury_test_uom_sub_failure fury_test_uom_sub_failure module~fury->program~fury_test_uom_sub_failure program~fury_test_qreal_mul_mixed fury_test_qreal_mul_mixed module~fury->program~fury_test_qreal_mul_mixed program~fury_test_bolt64 fury_test_bolt64 module~fury->program~fury_test_bolt64 program~fury_test_qreal_not_eq fury_test_qreal_not_eq module~fury->program~fury_test_qreal_not_eq program~fury_test_system_si fury_test_system_si module~fury->program~fury_test_system_si program~fury_test_uom_sub fury_test_uom_sub module~fury->program~fury_test_uom_sub program~fury_test_qreal_not_eq_mixed fury_test_qreal_not_eq_mixed module~fury->program~fury_test_qreal_not_eq_mixed program~fury_test_qreal_sub_failure fury_test_qreal_sub_failure module~fury->program~fury_test_qreal_sub_failure program~fury_test_qreal_pow fury_test_qreal_pow module~fury->program~fury_test_qreal_pow program~fury_test_uom_aliases fury_test_uom_aliases module~fury->program~fury_test_uom_aliases program~fury_test_qreal_sub fury_test_qreal_sub module~fury->program~fury_test_qreal_sub program~fury_test_uom_parse_failure fury_test_uom_parse_failure module~fury->program~fury_test_uom_parse_failure program~fury_test_qreal_add_aliases_failure fury_test_qreal_add_aliases_failure module~fury->program~fury_test_qreal_add_aliases_failure program~fury_test_qreal_add_failure fury_test_qreal_add_failure module~fury->program~fury_test_qreal_add_failure module~dbm_to_mw_converter dBm_to_mW_converter module~fury->module~dbm_to_mw_converter program~fury_test_qreal_sub_mixed fury_test_qreal_sub_mixed module~fury->program~fury_test_qreal_sub_mixed program~fury_test_qreal_add_mixed fury_test_qreal_add_mixed module~fury->program~fury_test_qreal_add_mixed program~fury_test_qreal_add fury_test_qreal_add module~fury->program~fury_test_qreal_add program~fury_test_qreal_sub_mixed_failure fury_test_qreal_sub_mixed_failure module~fury->program~fury_test_qreal_sub_mixed_failure program~fury_test_qreal_add_mixed_failure fury_test_qreal_add_mixed_failure module~fury->program~fury_test_qreal_add_mixed_failure program~fury_test_qreal_aliases fury_test_qreal_aliases module~fury->program~fury_test_qreal_aliases program~fury_test_uom_add fury_test_uom_add module~fury->program~fury_test_uom_add program~fury_test_qreal_assign fury_test_qreal_assign module~fury->program~fury_test_qreal_assign program~fury_test_uom_add_failure fury_test_uom_add_failure module~fury->program~fury_test_uom_add_failure program~fury_test_uom_assign fury_test_uom_assign module~fury->program~fury_test_uom_assign program~fury_test_qreal_conversions_complex fury_test_qreal_conversions_complex module~fury->program~fury_test_qreal_conversions_complex program~fury_test_qreal_conversions_si fury_test_qreal_conversions_si module~fury->program~fury_test_qreal_conversions_si program~fury_test_uom_pow fury_test_uom_pow module~fury->program~fury_test_uom_pow program~fury_test_qreal_conversions_simple fury_test_qreal_conversions_simple module~fury->program~fury_test_qreal_conversions_simple program~fury_test_uom_assign_failure fury_test_uom_assign_failure module~fury->program~fury_test_uom_assign_failure program~fury_test_qreal_div fury_test_qreal_div module~fury->program~fury_test_qreal_div module~fury_mixed_kinds->module~fury module~fury_uom_reference64->module~fury_uom64 module~fury_uom_reference64->module~fury module~fury_uom_reference64->module~fury_mixed_kinds module~fury_uom_reference64->module~fury_system_abstract64 module~fury_system_abstract32->module~fury module~fury_system_abstract32->module~fury_system_si32 module~fury_qreal32->module~fury module~fury_qreal32->module~fury_mixed_kinds module~fury_qreal32->module~fury_system_abstract32 module~fury_qreal32->module~fury_system_si32 module~fury_qreal64->module~fury_system_si64 module~fury_qreal64->module~fury module~fury_qreal64->module~fury_mixed_kinds module~fury_qreal64->module~fury_system_abstract64 module~fury_system_abstract64->module~fury_system_si64 module~fury_system_abstract64->module~fury module~fury_uom_symbol64->module~fury_uom64 module~fury_uom_symbol64->module~fury module~fury_uom_symbol64->module~fury_mixed_kinds module~fury_uom_symbol64->module~fury_uom_reference64 module~fury_uom32->module~fury module~fury_uom32->module~fury_mixed_kinds module~fury_uom32->module~fury_system_abstract32 module~fury_uom32->module~fury_qreal32 module~fury_uom32->module~fury_system_si32 module~fury_uom128->module~fury_system_si128 module~fury_uom128->module~fury_qreal128 module~fury_uom128->module~fury module~fury_uom128->module~fury_mixed_kinds module~fury_uom128->module~fury_system_abstract128 module~fury_uom_reference32->module~fury module~fury_uom_reference32->module~fury_mixed_kinds module~fury_uom_reference32->module~fury_system_abstract32 module~fury_uom_reference32->module~fury_uom32 module~fury_system_abstract128->module~fury_system_si128 module~fury_system_abstract128->module~fury module~fury_uom_reference128->module~fury module~fury_uom_reference128->module~fury_mixed_kinds module~fury_uom_reference128->module~fury_uom128 module~fury_uom_reference128->module~fury_system_abstract128 module~fury_system_si32->module~fury module~dbm_to_mw_converter->program~fury_test_qreal_conversions_complex
Help


Interfaces

public interface adjustl

Builtin adjustl overloading.

  • public pure function sadjustl_character(self) result(adjusted)

    Left adjust a string by removing leading spaces (character output).

    Arguments

    Type IntentOptional AttributesName
    class(string), intent(in) :: self

    The string.

    Return Value character(kind=CK,len=len(self%raw))

    Adjusted string.

public interface adjustr

Builtin adjustr overloading.

  • public pure function sadjustr_character(self) result(adjusted)

    Right adjust a string by removing leading spaces (character output).

    Arguments

    Type IntentOptional AttributesName
    class(string), intent(in) :: self

    The string.

    Return Value character(kind=CK,len=len(self%raw))

    Adjusted string.

public interface count

Builtin count overloading.

  • private elemental function count_substring(string_, substring) result(No)

    Count the number of occurences of a substring into a string.

    Arguments

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

    String.

    character(len=*), intent(in) :: substring

    Substring.

    Return Value integer(kind=I4P)

    Number of occurrences.

public interface index

Builtin index overloading.

  • public elemental function sindex_string_string(self, substring, back) result(i)

    Return the position of the start of the first occurrence of string substring as a substring in string, counting from one. If substring is not present in string, zero is returned. If the back argument is present and true, the return value is the start of the last occurrence rather than the first.

    Arguments

    Type IntentOptional AttributesName
    class(string), intent(in) :: self

    The string.

    type(string), intent(in) :: substring

    Searched substring.

    logical, intent(in), optional :: back

    Start of the last occurrence rather than the first.

    Return Value integer

    Result of the search.

  • public elemental function sindex_string_character(self, substring, back) result(i)

    Return the position of the start of the first occurrence of string substring as a substring in string, counting from one. If substring is not present in string, zero is returned. If the back argument is present and true, the return value is the start of the last occurrence rather than the first.

    Arguments

    Type IntentOptional AttributesName
    class(string), intent(in) :: self

    The string.

    character(kind=CK,len=*), intent(in) :: substring

    Searched substring.

    logical, intent(in), optional :: back

    Start of the last occurrence rather than the first.

    Return Value integer

    Result of the search.

  • public elemental function sindex_character_string(string_, substring, back) result(i)

    Return the position of the start of the first occurrence of string substring as a substring in string, counting from one. If substring is not present in string, zero is returned. If the back argument is present and true, the return value is the start of the last occurrence rather than the first.

    Arguments

    Type IntentOptional AttributesName
    character(kind=CK,len=*), intent(in) :: string_

    The string.

    type(string), intent(in) :: substring

    Searched substring.

    logical, intent(in), optional :: back

    Start of the last occurrence rather than the first.

    Return Value integer

    Result of the search.

public interface len

Builtin len overloading.

  • public elemental function slen(self) result(l)

    Return the length of a string.

    Arguments

    Type IntentOptional AttributesName
    class(string), intent(in) :: self

    The string.

    Return Value integer

    String length.

public interface len_trim

Builtin len_trim overloading.

  • public elemental function slen_trim(self) result(l)

    Return the length of a string, ignoring any trailing blanks.

    Arguments

    Type IntentOptional AttributesName
    class(string), intent(in) :: self

    The string.

    Return Value integer

    String length.

public interface repeat

Builtin repeat overloading.

  • public elemental function srepeat_string_string(self, ncopies) result(repeated)

    Concatenates several copies of an input string.

    Arguments

    Type IntentOptional AttributesName
    class(string), intent(in) :: self

    String to be repeated.

    integer, intent(in) :: ncopies

    Number of string copies.

    Return Value type(string)

    Repeated string.

public interface scan

Builtin scan overloading.

  • public elemental function sscan_string_string(self, set, back) result(i)

    Return the leftmost (if back is either absent or equals false, otherwise the rightmost) character of string that is in set.

    Arguments

    Type IntentOptional AttributesName
    class(string), intent(in) :: self

    The string.

    type(string), intent(in) :: set

    Searched set.

    logical, intent(in), optional :: back

    Start of the last occurrence rather than the first.

    Return Value integer

    Result of the search.

  • public elemental function sscan_string_character(self, set, back) result(i)

    Return the leftmost (if back is either absent or equals false, otherwise the rightmost) character of string that is in set.

    Arguments

    Type IntentOptional AttributesName
    class(string), intent(in) :: self

    The string.

    character(kind=CK,len=*), intent(in) :: set

    Searched set.

    logical, intent(in), optional :: back

    Start of the last occurrence rather than the first.

    Return Value integer

    Result of the search.

  • public elemental function sscan_character_string(sstring, set, back) result(i)

    Return the leftmost (if back is either absent or equals false, otherwise the rightmost) character of string that is in set.

    Arguments

    Type IntentOptional AttributesName
    character(kind=CK,len=*), intent(in) :: sstring

    The string.

    type(string), intent(in) :: set

    Searched set.

    logical, intent(in), optional :: back

    Start of the last occurrence rather than the first.

    Return Value integer

    Result of the search.

public interface trim

Builtin trim overloading.

  • public elemental function strim(self) result(trimmed)

    Remove leading spaces.

    Arguments

    Type IntentOptional AttributesName
    class(string), intent(in) :: self

    The string.

    Return Value type(string)

    Trimmed string.


Functions

private elemental function count_substring(string_, substring) result(No)

Count the number of occurences of a substring into a string.

Arguments

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

String.

character(len=*), intent(in) :: substring

Substring.

Return Value integer(kind=I4P)

Number of occurrences.


Subroutines

public subroutine read_file(file, lines, form, iostat, iomsg)

Read a file as a single string stream.

Arguments

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

File name.

type(string), intent(out), allocatable:: lines(:)

The lines.

character(len=*), intent(in), optional :: form

Format of unit.

integer, intent(out), optional :: iostat

IO status code.

character(len=*), intent(inout), optional :: iomsg

IO status message.

public subroutine read_lines(unit, lines, form, iostat, iomsg)

Read lines (records) from a connected-formatted unit.

Arguments

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

Logical unit.

type(string), intent(out), allocatable:: lines(:)

The lines.

character(len=*), intent(in), optional :: form

Format of unit.

integer, intent(out), optional :: iostat

IO status code.

character(len=*), intent(inout), optional :: iomsg

IO status message.

public subroutine write_lines(unit, lines, form, iostat, iomsg)

Write lines (records) to a connected-formatted unit.

Arguments

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

Logical unit.

type(string), intent(in) :: lines(1:)

The lines.

character(len=*), intent(in), optional :: form

Format of unit.

integer, intent(out), optional :: iostat

IO status code.

character(len=*), intent(inout), optional :: iomsg

IO status message.

public subroutine write_file(file, lines, form, iostat, iomsg)

Write a single string stream into file.

Arguments

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

File name.

type(string), intent(in) :: lines(1:)

The lines.

character(len=*), intent(in), optional :: form

Format of unit.

integer, intent(out), optional :: iostat

IO status code.

character(len=*), intent(inout), optional :: iomsg

IO status message.