JCL Help:StrTokenToStrings@AnsiString@AnsiChar@TJclAnsiStrings
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: StrTokenToStrings Function
[+] JclAnsiStrings.pas Functions
Search in JCL Help
Search in all projects
Summary
Breaks apart S using a specified delimiter into a StringList.
Pascal
procedure StrTokenToStrings(S: string; Separator: Char; const List: TStrings);
procedure StrTokenToStrings(S: AnsiString; Separator: AnsiChar; const List: TJclAnsiStrings);
Parameters
Parameters | Description |
S: string | A string which contains one or more Separators (see List parameter). |
Separator: Char | Any character you want to use to separate S. |
const List: TStrings | Returns separated parts or the entire string if no separator occurs. |
Description
Use StrTokenToStrings for breaking apart a string with parts delimited by a separator. For example, if you passed 'C:Windows;C:Delphi;C:JEDI;' List would contain 'C:Windows', 'C:Delphi', 'C:JEDI'. You must create the StringList prior to passing it to StrTokenToString and Free the StringList once finished with it.
See Also
About
Unit
Donator
Huanlin Tsai
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page