WordCount function
Count the number of words in a string.
Declaration
function WordCount(const S: string; const WordDelims: TSysCharSet)
: SizeIntArguments
S | String to search in. |
WordDelims | Characters to be used as word delimiters. |
Function result
Number of words in the string.
Description
WordCount
returns the number of words in the string
S.
A word is a non-empty string of characters bounded by one of the characters in
WordDelims.
The predefined StdWordDelims constant can be used for the WordDelims argument.
Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
