|
integer function, public word_split |
( |
character(len=*), intent(in) |
input_string, |
|
|
integer, dimension(:), optional, pointer |
word_start, |
|
|
integer, dimension(:), optional, pointer |
word_end, |
|
|
character(len=1), optional |
sep |
|
) |
| |
Split a line into words at a predefined character (default blank).
Returns the number of words in input_string. If pointers word_start and word_end are provided, they are allocated with nword elements and set to the indices of initial and final character of every word in input_string. Groups of contiguous separation characters are treated as a single separator character.
- Parametri
-
[in] | input_string | string to be scanned |
| word_start | indices of first character of each word in input_string, allocated here, must be deallocated by the user |
| word_end | indices of last character of each word in input_string, allocated here, must be deallocated by the user |
| sep | optional word separator character, if not provided, a blank space is assumed |
Definizione alla linea 913 del file char_utilities.F90.
|