Unit StrTools

Classes

Functions

StrLTrim - * StrLTrim, StrRTrim, StrTrim * * These procedures will trim leading whitespaces, trailing * whitespaces, or both.
StrMerge - * StrMerge * * StrMerge will take all strings in the list and place these * in a single string, separated by the 'sep' character.
StrParse - * StrParse * * This procedure parses the given string s and stores it as * separate strings in the given TStrings object.
StrRTrim -
StrTrim -

Types

Constants

whitespaces

Variables


Functions


function StrLTrim( var s: string): string;

* StrLTrim, StrRTrim, StrTrim * * These procedures will trim leading whitespaces, trailing * whitespaces, or both.

procedure StrMerge( list : TStrings; var s: string; sep : char);

* StrMerge * * StrMerge will take all strings in the list and place these * in a single string, separated by the 'sep' character. * There is no 'sep' char after the last string element.

procedure StrParse( var list : TStrings; s: string; sep : char);

* StrParse * * This procedure parses the given string s and stores it as * separate strings in the given TStrings object. Each new * string is inserted at it's sequential position. * The input string is assumed to be made up out of sequences * of any characters, separated by the char given in 'sep'. * A 'sep' char following the last substring is optional. * Whitespace is stripped before adding the list element * to the list.

function StrRTrim( var s: string): string;


function StrTrim( var s: string): string;


Types


Constants

whitespaces = [#8, #10, #12, #13, ' ']


Variables