CAMP 1.0.0
Chemistry Across Multiple Phases
|
String type for building arrays of string of various size. More...
Public Member Functions | |
final | string_t_finalize (this) |
Finalize the string. | |
Public Attributes | |
character(len=:), allocatable | string |
String value. | |
Splits a string on a sub-string | |
procedure, private | split_char (this, splitter, compress) |
Splits a string on a substring. | |
procedure, private | split_string (this, splitter, compress) |
Splits a string on a substring. | |
generic | split (this, splitter, compress) |
Splits a string on a substring. | |
generic | split (this, splitter, compress) |
Splits a string on a substring. | |
String type for building arrays of string of various size.
Constructor for string_t.
|
final |
generic camp_util::string_t::split | ( | class(string_t), intent(in) | this, |
character(len=*), intent(in) | splitter, | ||
logical, intent(in), optional | compress | ||
) |
Splits a string on a substring.
Example:
Output:
[in] | this | Full string |
[in] | splitter | String to split on |
[in] | compress | Compress (default = false) |
No 0-length substrings will be returned (adjacent tokens will be merged; tokens at the beginning and end of the original string will be ignored)
Definition at line 46 of file util.F90.
generic camp_util::string_t::split | ( | class(string_t), intent(in) | this, |
type(string_t), intent(in) | splitter, | ||
logical, intent(in), optional | compress | ||
) |
Splits a string on a substring.
See string_split_char
for description and example
[in] | this | Full string |
[in] | splitter | String to split on |
[in] | compress | Compress (default = false) |
No 0-length substrings will be returned (adjacent tokens will be merged; tokens at the beginning and end of the original string will be ignored)
|
private |
Splits a string on a substring.
Example:
Output:
[in] | this | Full string |
[in] | splitter | String to split on |
[in] | compress | Compress (default = false) |
No 0-length substrings will be returned (adjacent tokens will be merged; tokens at the beginning and end of the original string will be ignored)
|
private |
Splits a string on a substring.
See string_split_char
for description and example
[in] | this | Full string |
[in] | splitter | String to split on |
[in] | compress | Compress (default = false) |
No 0-length substrings will be returned (adjacent tokens will be merged; tokens at the beginning and end of the original string will be ignored)
character(len=:), allocatable camp_util::string_t::string |