This module implements basic string handling routines.
Remove trailing characters in set from string. If no character set is provided trailing whitespace is removed.
Version: experimental
Remove trailing characters in set from string. Default character set variant where trailing whitespace is removed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string |
Remove trailing characters in set from string. Default character set variant where trailing whitespace is removed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string |
Remove trailing characters in set from string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=1), | intent(in) | :: | set(:) |
Remove trailing characters in set from string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=1), | intent(in) | :: | set(:) |
Remove trailing substrings from string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | substring |
Remove trailing substrings from string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | substring |
Remove trailing substrings from string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | substring |
Remove trailing substrings from string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | substring |
Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’
Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| logical, | intent(in), | optional | :: | consider_overlapping |
Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| logical, | intent(in), | optional | :: | consider_overlapping |
Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| logical, | intent(in), | optional | :: | consider_overlapping |
Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| logical, | intent(in), | optional | :: | consider_overlapping |
Check whether a string ends with substring or not
Version: experimental
Check whether a string ends with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | substring |
Check whether a string ends with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | substring |
Check whether a string ends with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | substring |
Check whether a string ends with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | substring |
Finds the starting index of substring ‘pattern’ in the input ‘string’ Specifications
Version: experimental
Returns the starting index of the ‘occurrence’th occurrence of substring ‘pattern’ in input ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| integer, | intent(in), | optional | :: | occurrence | ||
| logical, | intent(in), | optional | :: | consider_overlapping |
Returns the starting index of the ‘occurrence’th occurrence of substring ‘pattern’ in input ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| integer, | intent(in), | optional | :: | occurrence | ||
| logical, | intent(in), | optional | :: | consider_overlapping |
Returns the starting index of the ‘occurrence’th occurrence of substring ‘pattern’ in input ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| integer, | intent(in), | optional | :: | occurrence | ||
| logical, | intent(in), | optional | :: | consider_overlapping |
Returns the starting index of the ‘occurrence’th occurrence of substring ‘pattern’ in input ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| integer, | intent(in), | optional | :: | occurrence | ||
| logical, | intent(in), | optional | :: | consider_overlapping |
Joins an array of strings into a single string. The chunks are separated with a space, or an optional user-defined separator.
Joins a list of strings with a separator (default: space). Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | strings(:) | |||
| character(len=*), | intent(in), | optional | :: | separator |
Joins a list of strings with a separator (default: space). Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | strings(:) | |||
| character(len=*), | intent(in), | optional | :: | separator |
Left pad the input string
Left pad the input string with ” ” (1 whitespace)
Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |
Left pad the input string with the ‘pad_with’ character
Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length | |||
| character(len=1), | intent(in) | :: | pad_with |
Left pad the input string with ” ” (1 whitespace)
Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |
Left pad the input string with the ‘pad_with’ character
Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length | |||
| character(len=1), | intent(in) | :: | pad_with |
Right pad the input string
Right pad the input string with ” ” (1 whitespace)
Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |
Right pad the input string with the ‘pad_with’ character
Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length | |||
| character(len=1), | intent(in) | :: | pad_with |
Right pad the input string with ” ” (1 whitespace)
Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |
Right pad the input string with the ‘pad_with’ character
Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length | |||
| character(len=1), | intent(in) | :: | pad_with |
Replaces all the occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Version: experimental
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| type(string_type), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| character(len=*), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| type(string_type), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| type(string_type), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| character(len=*), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| character(len=*), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| type(string_type), | intent(in) | :: | replacement |
Replaces all the occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| character(len=*), | intent(in) | :: | replacement |
Extracts characters from the input string to return a new string
Version: experimental
Extract the characters from the region between ‘first’ and ‘last’ index (both inclusive) of the input ‘string’ by taking strides of length ‘stride’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in), | optional | :: | first | ||
| integer, | intent(in), | optional | :: | last | ||
| integer, | intent(in), | optional | :: | stride |
Extract the characters from the region between ‘first’ and ‘last’ index (both inclusive) of the input ‘string’ by taking strides of length ‘stride’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in), | optional | :: | first | ||
| integer, | intent(in), | optional | :: | last | ||
| integer, | intent(in), | optional | :: | stride |
Check whether a string starts with substring or not
Version: experimental
Check whether a string starts with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | substring |
Check whether a string starts with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | substring |
Check whether a string starts with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | substring |
Check whether a string starts with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | substring |
Remove leading and trailing whitespace characters.
Version: experimental
Remove leading and trailing whitespace characters.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string |
Remove leading and trailing whitespace characters.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string |
Format or transfer other types as a string.
Convert a Fortran character string to a C character array
Version: experimental
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | value |
Convert a Fortran string type to a C character array
Version: experimental
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | value |
Format or transfer other types as a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | value |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int64), | intent(in) | :: | value |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical(kind=fbool), | intent(in) | :: | value |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | value | |||
| character(len=*), | intent(in) | :: | format |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int64), | intent(in) | :: | value | |||
| character(len=*), | intent(in) | :: | format |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical(kind=fbool), | intent(in) | :: | value | |||
| character(len=*), | intent(in) | :: | format |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(in) | :: | value | |||
| character(len=*), | intent(in), | optional | :: | format |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=sp), | intent(in) | :: | value | |||
| character(len=*), | intent(in), | optional | :: | format |
Left pad the input string with zeros.
Left pad the input string with zeros
Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |
Left pad the input string with zeros
Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |
Remove trailing characters in set from string. Default character set variant where trailing whitespace is removed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string |
Remove trailing characters in set from string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=1), | intent(in) | :: | set(:) |
Remove trailing characters in set from string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=1), | intent(in) | :: | set(:) |
Remove trailing characters in set from string. Default character set variant where trailing whitespace is removed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string |
Remove trailing substrings from string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | substring |
Remove trailing substrings from string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | substring |
Remove trailing substrings from string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | substring |
Remove trailing substrings from string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | substring |
Computes longest prefix suffix for each index of the input ‘string’
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string |
Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| logical, | intent(in), | optional | :: | consider_overlapping |
Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| logical, | intent(in), | optional | :: | consider_overlapping |
Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| logical, | intent(in), | optional | :: | consider_overlapping |
Returns the number of times substring ‘pattern’ has appeared in the input string ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| logical, | intent(in), | optional | :: | consider_overlapping |
Check whether a string ends with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | substring |
Check whether a string ends with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | substring |
Check whether a string ends with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | substring |
Check whether a string ends with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | substring |
Returns the starting index of the ‘occurrence’th occurrence of substring ‘pattern’ in input ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| integer, | intent(in), | optional | :: | occurrence | ||
| logical, | intent(in), | optional | :: | consider_overlapping |
Returns the starting index of the ‘occurrence’th occurrence of substring ‘pattern’ in input ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| integer, | intent(in), | optional | :: | occurrence | ||
| logical, | intent(in), | optional | :: | consider_overlapping |
Returns the starting index of the ‘occurrence’th occurrence of substring ‘pattern’ in input ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| integer, | intent(in), | optional | :: | occurrence | ||
| logical, | intent(in), | optional | :: | consider_overlapping |
Returns the starting index of the ‘occurrence’th occurrence of substring ‘pattern’ in input ‘string’ Returns an integer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| integer, | intent(in), | optional | :: | occurrence | ||
| logical, | intent(in), | optional | :: | consider_overlapping |
Joins a list of strings with a separator (default: space). Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | strings(:) | |||
| character(len=*), | intent(in), | optional | :: | separator |
Joins a list of strings with a separator (default: space). Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | strings(:) | |||
| character(len=*), | intent(in), | optional | :: | separator |
Left pad the input string with ” ” (1 whitespace)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |
Left pad the input string with the ‘pad_with’ character
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length | |||
| character(len=1), | intent(in) | :: | pad_with |
Left pad the input string with ” ” (1 whitespace)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |
Left pad the input string with the ‘pad_with’ character
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length | |||
| character(len=1), | intent(in) | :: | pad_with |
Right pad the input string with ” ” (1 whitespace)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |
Right pad the input string with the ‘pad_with’ character
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length | |||
| character(len=1), | intent(in) | :: | pad_with |
Right pad the input string with ” ” (1 whitespace)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |
Right pad the input string with the ‘pad_with’ character
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length | |||
| character(len=1), | intent(in) | :: | pad_with |
Replaces all the occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| character(len=*), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| type(string_type), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| character(len=*), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| type(string_type), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| character(len=*), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | pattern | |||
| type(string_type), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| character(len=*), | intent(in) | :: | replacement |
Replaces all occurrences of substring ‘pattern’ in the input ‘string’ with the replacement ‘replacement’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | pattern | |||
| type(string_type), | intent(in) | :: | replacement |
Implementation to transfer a set of characters to a string representing the set.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=1), | intent(in) | :: | set(:) |
Extract the characters from the region between ‘first’ and ‘last’ index (both inclusive) of the input ‘string’ by taking strides of length ‘stride’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in), | optional | :: | first | ||
| integer, | intent(in), | optional | :: | last | ||
| integer, | intent(in), | optional | :: | stride |
Extract the characters from the region between ‘first’ and ‘last’ index (both inclusive) of the input ‘string’ by taking strides of length ‘stride’ Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in), | optional | :: | first | ||
| integer, | intent(in), | optional | :: | last | ||
| integer, | intent(in), | optional | :: | stride |
Check whether a string starts with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | substring |
Check whether a string starts with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | substring |
Check whether a string starts with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | substring |
Check whether a string starts with substring or not
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| type(string_type), | intent(in) | :: | substring |
Remove leading and trailing whitespace characters.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string |
Remove leading and trailing whitespace characters.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string |
Convert a Fortran character string to a C character array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | value |
Convert a Fortran string type to a C character array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | value |
Left pad the input string with zeros
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |
Left pad the input string with zeros
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |