FLAP utils.
Overload intrinsic function count for counting substring occurences into strings.
Count the number of occurences of a substring into a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
String. |
||
character(len=*), | intent(in) | :: | substring |
Substring. |
Number of occurrences.
Count the number of occurences of a substring into a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
String. |
||
character(len=*), | intent(in) | :: | substring |
Substring. |
Number of occurrences.
Replace substring (only first occurrence) into a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
String to be modified. |
||
character(len=*), | intent(in) | :: | substring |
Substring to be replaced. |
||
character(len=*), | intent(in) | :: | restring |
String to be inserted. |
New modified string.
Replace substring (all occurrences) into a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
String to be modified. |
||
character(len=*), | intent(in) | :: | substring |
Substring to be replaced. |
||
character(len=*), | intent(in) | :: | restring |
String to be inserted. |
New modified string.
Reduce to one (unique) multiple (sequential) occurrences of a characters substring into a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
String to be parsed. |
||
character(len=*), | intent(in) | :: | substring |
Substring which multiple occurences must be reduced to one. |
String parsed.
Convert the lower case characters of a string to upper case one.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
String to be converted. |
Converted string.
Strip out leading and trailing white spaces from a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
String to be modified. |
New modified string.
Tokenize a string in order to parse it.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | strin |
String to be tokenized. |
||
character(len=*), | intent(in) | :: | delimiter |
Delimiter of tokens. |
||
character(len=len), | intent(out), | allocatable | :: | toks(:) |
Tokens. |
|
integer(kind=I4P), | intent(out), | optional | :: | Nt |
Number of tokens. |