Extra String Handling Routines Category

Various routines for string handling that supplement those found in SysUtils.

Routines
AnsiUpCaseAnsi version of the standard UpCase.
BlankStrReturns a string composed of blank spaces (ie #32).
CentreChStrReturns a string with specified characters added to the beginning and end of the string to in effect centre the string within the given length.
CentreStrReturns a string with blank spaces added to the beginning and end of the string to in effect centre the string within the given length.
DashStrReturns a string composed of dashes (minus signs).
DisplayTabsInStringReturns a String with all occurrences of TAB (ie #9) replaced with the contents of ESBTabStr.
ESBLastPosChReturns the Last Position of given Character, processing from the end of the string.
ESBPosChReturns the first Position of given Character.
ESBPosNChReturns the Position of the n'th occurrence of given Character.
ESBProperStrReturns Proper String - each word Capitalized - uses Ansi Capitalisation.
ExtractValueRetrieves the P'th Value in a String containing several values separated by given Separator which defaults to a semicolon.
FillStrReturns a string filled with the given character.
IsAlphaNumericStrReturns True if the string is not empty and is only made of Standard Alphabetic characters 'A'through 'Z' and 'a' through 'z' or of Digits '0' through '9'.
IsAlphaStrReturns True if the string is not empty and is only made of Standard Alphabetic characters 'A'through 'Z' and 'a' through 'z'.
IsCharSetStrReturns True if the string is not empty and is only made of Characters in the specificed CharSet.
IsDigitStrReturns True if the string is not empty and is only made of Digits '0' through '9'.
LeftAlignStrReturns a string of Length N with blank spaces added to the end of the string if S is too short, or returning the N Left-most characters of S if S is too long.
LeftStrReturns the substring consisting of the first N characters of S.
LeftTillChStrReturns the substring consisting of the characters from S up to but not including the specified one.
PadChLeftStrReturns a string with the specified character added to the beginning of the string until the string is of the given length.
PadChRightStrReturns a string with the specified character added to the beginning of the string until the string is of the given length.
PadLeftStrReturns a string with blank spaces added to the beginning of the string until the string is of the given length.
PadRightStrReturns a string with blank spaces added to the beginning of the string until the string is of the given length.
ReplaceChStrReturns the String with all occurrences of OldCh character replaced with NewCh character.
RightAfterChStrReturns the substring consisting of the characters from S after but not including the specified one.
RightAfterStrReturns the substring consisting of the remaining characters after the first N Characters of S.
RightAlignStrReturns a string of Length N with blank spaces added to the Beginning of the string if S is too short, or returning the N left-most characters of S if S is too long.
RightStrReturns the substring consisting of the last N characters of S.
RightTillChStrReturns the substring consisting of the right most characters from S up to but not including the specified one.
StarStrReturns a string composed of stars (asterisks).
StripChFromStrReturns a String with all occurrences of the given character removed.
StripChStrReturns the String with all specified leading & trailing characters removed.
StripLChStrReturns the String with all specified leading characters removed.
StripTChStrReturns the String with all specified trailing characters removed.
UnderscoreStrReturns a string composed of Underscores (Shift-Minus).
ValueMatchRetrieves True if the specified Value is in a String containing several values separated by given Separator which defaults to a semicolon.
iffPerforms an if that can be used in Expressions.
SwapXYSwap 2 Values using a Temp Value.


HTML generated by Time2HELP
http://www.time2help.com