TTMSFNCUtils.Split Method
Splits a string into a destination string list using a single-character delimiter.
API unit family: TMSFNCUtils
Declaring type: TTMSFNCUtils
Overloads
Overload 1
Splits a string into a destination string list using a single-character delimiter.
class procedure Split(const ADelimiter: Char; AInput: string; const AStrings: TStrings; const AClearEmptyStrings: Boolean = False); overload;
Parameters
| Name | Description |
|---|---|
ADelimiter |
Delimiter character. |
AInput |
Input string to split. |
AStrings |
Destination list; it is cleared before values are added. |
AClearEmptyStrings |
When True, empty entries are removed from the result. |
Overload 2
Splits a string into an array using a single-character delimiter.
class function Split(const ADelimiter: Char; const AInput: string; const AClearEmptyStrings: Boolean = False): TTMSFNCUtilsStringArray; overload;
Parameters
| Name | Description |
|---|---|
ADelimiter |
Delimiter character. |
AInput |
Input string to split. |
AClearEmptyStrings |
When True, empty entries are removed from the result. |
Returns
Array containing the split values.