The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



Tokenize


Unit:SDL_stringl
Class: none
Declaration: function Tokenize (Instring: string; const Separator: string; var Tokens: TOpenStringArray): integer;

The function Tokenize splits the string Instring into substrings which are separated by the string Separator. The substrings are stored in the dynamic array Tokens. The function returns the number of tokens found.

Hint: Please note, that the number of tokens is limited to 100. If a string contains more than 100 tokens, the rest of the tokens are not resolved and returned as the last token (i.e. Tokens[99]).



Last Update: 2009-Jan-06