| [Overview][Resource strings][Constants][Types][Procedures and functions][Index] | 
Count the number of words in a string.
Source position: strutils.pp line 172
| function WordCount( | 
| const S: string; | 
| const WordDelims: TSysCharSet | 
| ):SizeInt; | 
| S | 
 | String to search in. | 
| WordDelims | 
 | Characters to be used as word delimiters. | 
Number of words in the string.
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 pre-defined StdWordDelims constant can be used for the WordDelims argument.
None.
| 
 | Search position of Nth word in a string. | |
| 
 | Standard word delimiter values. | |
| 
 | Extract the N-th word out of a string. | |
| 
 | Extract a word from a string, and return the position where it was located in the string. |