libsim  Versione6.3.0
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_stringstring to be scanned
word_startindices of first character of each word in input_string, allocated here, must be deallocated by the user
word_endindices of last character of each word in input_string, allocated here, must be deallocated by the user
sepoptional word separator character, if not provided, a blank space is assumed

Definizione alla linea 922 del file char_utilities.F90.


Generated with Doxygen.