System.StrUtils

From RAD Studio API Documentation
Jump to: navigation, search


Routines

AnsiContainsStrIndicates whether one string is a (case-sensitive) substring of another.
AnsiContainsTextIndicates whether one string is a (case-insensitive) substring of another.
AnsiEndsStrIndicates whether one string is a (case-sensitive) suffix of another.
AnsiEndsTextIndicates whether one string is a (case-insensitive) suffix of another.
AnsiIndexStrProvides the index of a specified string in an array of strings.
AnsiIndexTextProvides the index of a specified string in an array of strings.
AnsiLeftStrReturns the substring of a specified length that appears at the start of a string.
AnsiMatchStrIndicates whether an array of strings contains an exact match to a specified string.
AnsiMatchTextIndicates whether an array of strings contains a case-insensitive match to a specified string.
AnsiMidStrReturns the substring of a specified length that appears at a specified position in a string.
AnsiReplaceStrReplaces all occurrences of a substring within a string, using case-sensitive search.
AnsiReplaceTextReplaces all case-insensitive matches of a substring with another string.
AnsiResemblesTextIndicates whether two strings are similar.
AnsiReverseStringReturns reversed string.
AnsiRightStrReturns the substring of a specified length that appears at the end of a string.
AnsiStartsStrIndicates whether one string is a (case-sensitive) prefix of another.
AnsiStartsTextIndicates whether one string is a (case-insensitive) prefix of another.
ContainsStrPerforms a case sensitive search for substring ASubText in string AText. Returns true if one or more instances of ASubText exist in AText.
ContainsTextPerforms a case insensitive search for substring ASubText in string AText. Returns true if one or more instances of ASubText exist in AText.
DecodeSoundexIntConverts an integer representation of a Soundex encoding into the corresponding phonetic string.
DecodeSoundexWordConverts a Word representation of a Soundex encoding into the corresponding phonetic string.
DupeStringReturns the concatenation of a string with itself a specified number of repeats.
EndsStrDetermines if string AText ends with substring ASubText using a case sensitive string comparison. Returns true if AText ends with ASubText.
EndsTextDetermines if string AText ends with substring ASubText using a case insensitive string comparison. Returns true if AText ends with ASubText.
IfThenConditionally returns one of two specified values.
IndexStrIndexStr determines if any of the strings in the array AValues match the string specified by AText using a case sensitive comparison. It returns the zero-based index of the first match in the array, or -1 if no match is found.
IndexTextIndexText determines if any of the strings in the array AValues match the string specified by AText using a case insensitive comparison. It returns the zero-based index of the first match in the array, or -1 if no match is found.
LeftBStr (deprecated)Returns the substring of a specified number of bytes that appears at the start of a string.
LeftStrReturns the substring of a specified length that appears at the start of a string.
MatchStrMatchStr determines if any of the strings in the array AValues match the string specified by AText using a case sensitive comparison. It returns true if at least one of the strings in the array match, or false if none of the strings match.
MatchTextMatchText determines if any of the strings in the array AValues match the string specified by AText using a case insensitive comparison. It returns true if at least one of the strings in the array match, or false if none of the strings match.
MidBStr (deprecated)Returns the substring of a specified number of bytes that appears at a specified position in a string.
MidStrReturns the substring of a specified length that appears at a specified position in a string.
PosExReturns the index of the first occurrence of a substring within a string.
RandomFromReturns a randomly selected element from an array.
ReplaceStrReplaces all occurrences of a substring within a string, using case-sensitive search.
ReplaceTextReplaceText replaces all instances of string AFromText to string AToText in the source string AText and returns this value as the result. The replacement is case insensitive.
ResemblesTextResemblesText uses a Soundex method to determine if string AText and string AOther are similar. The result is True if the two strings a similar according to the Soundex method, and false otherwise.
ReverseStringReturns the reverse of a specified string.
RightBStr (deprecated)Returns the substring of a specified number of bytes that appears at the end of a string.
RightStrReturns the substring of a specified length that appears at the end of a string.
SearchBufLocates a substring within a text buffer.
SoundexConverts a string into its Soundex representation.
SoundexCompareCompares the Soundex representations of two strings.
SoundexIntConverts a string into an integer that represents its phonetic value.
SoundexProcIndicates whether two strings are similar.
SoundexSimilarIndicates whether two strings are similar.
SoundexWordConverts a string into a Word that represents its phonetic value.
SplitStringSplits a string into different parts delimited by the specified delimiter characters.
StartsStrDetermines whether the substring ASubText begins the string AText using a case sensitive algorithm.
StartsTextStartsText determines if the substring ASubText begins the string AText using a case insensitive algorithm. If ASubText matches the begining of AText, the result is true, otherwise it is false.
StuffStringInserts a substring into a specified position of a string, replacing the current characters.

Types

TCompareTextProcTCompareTextProc is a function pointer which specifies a function to compare two string values, AText, and AOther, and return true if these two values are equivilant.
TSoundexIntLengthTSoundexIntLength is the maximum calculation length for the SoundexInt function. The integer value can be from 1 to 8.
TSoundexLengthTSoundexLength is the maximum calculation length of the SoundEx function.
TStringSeachOptionTStringSeachOption is an enumeration that describes the behavior of string searches.
TStringSearchOptionsTStringSearchOptions is set of the enumeration TStringSeachOption.

Variables

AnsiResemblesProcControls the algorithm used by AnsiResemblesText to determine when two strings are similar.
ResemblesProcControls the algorithm used by AnsiResemblesText to determine when two strings are similar. It is the same as AnsiResemblesProc.
WordDelimitersSet of ANSI characters that are word delimiters.