[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Split a string in different words.
Source position: classesh.inc line 1669
function ExtractStrings( |
Separators: TSysCharSet; |
WhiteSpace: TSysCharSet; |
Content: PChar; |
Strings: TStrings |
):Integer; |
ExtractStringssplits Content(a null-terminated string) into words, and adds the words to the Stringsstringlist. The words are separated by Separatorsand any characters in whitespaceare stripped from the strings. The space and CR/LF characters are always considered whitespace.
No length checking is performed on Content. If no null-termination character is present, an access violation may occur. Likewise, if Stringsis not valid, an access violation may occur.