System.StrUtils

From RAD Studio API Documentation
Jump to: navigation, search


Routines

AnsiContainsStr Indicates whether one string is a (case-sensitive) substring of another.
AnsiContainsText Indicates whether one string is a (case-insensitive) substring of another.
AnsiEndsStr Indicates whether one string is a (case-sensitive) suffix of another.
AnsiEndsText Indicates whether one string is a (case-insensitive) suffix of another.
AnsiIndexStr Provides the index of a specified string in an array of strings.
AnsiIndexText Provides the index of a specified string in an array of strings.
AnsiLeftStr Returns the substring of a specified length that appears at the start of a string.
AnsiMatchStr Indicates whether an array of strings contains an exact match to a specified string.
AnsiMatchText Indicates whether an array of strings contains a case-insensitive match to a specified string.
AnsiMidStr Returns the substring of a specified length that appears at a specified position in a string.
AnsiReplaceStr Replaces all occurrences of a substring within a string, using case-sensitive search.
AnsiReplaceText Replaces all case-insensitive matches of a substring with another string.
AnsiResemblesText Indicates whether two strings are similar.
AnsiReverseString Returns reversed string.
AnsiRightStr Returns the substring of a specified length that appears at the end of a string.
AnsiStartsStr Indicates whether one string is a (case-sensitive) prefix of another.
AnsiStartsText Indicates whether one string is a (case-insensitive) prefix of another.
ContainsStr Performs a case sensitive search for substring ASubText in string AText. Returns true if one or more instances of ASubText exist in AText.
ContainsText Performs a case insensitive search for substring ASubText in string AText. Returns true if one or more instances of ASubText exist in AText.
DecodeSoundexInt Converts an integer representation of a Soundex encoding into the corresponding phonetic string.
DecodeSoundexWord Converts a Word representation of a Soundex encoding into the corresponding phonetic string.
DupeString Returns the concatenation of a string with itself a specified number of repeats.
EndsStr Determines if string AText ends with substring ASubText using a case sensitive string comparison. Returns true if AText ends with ASubText.
EndsText Determines if string AText ends with substring ASubText using a case insensitive string comparison. Returns true if AText ends with ASubText.
IfThen Conditionally returns one of two specified values.
IndexStr IndexStr 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.
IndexText IndexText 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.
LeftStr Returns the substring of a specified length that appears at the start of a string.
MatchStr MatchStr 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.
MatchText MatchText 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.
MidStr Returns the substring of a specified length that appears at a specified position in a string.
PosEx Returns the index of the first occurrence of a substring within a string.
RandomFrom Returns a randomly selected element from an array.
ReplaceStr Replaces all occurrences of a substring within a string, using case-sensitive search.
ReplaceText ReplaceText 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.
ResemblesText ResemblesText 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.
ReverseString Returns 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.
RightStr Returns the substring of a specified length that appears at the end of a string.
SearchBuf Locates a substring within a text buffer.
Soundex Converts a string into its Soundex representation.
SoundexCompare Compares the Soundex representations of two strings.
SoundexInt Converts a string into an integer that represents its phonetic value.
SoundexProc Indicates whether two strings are similar.
SoundexSimilar Indicates whether two strings are similar.
SoundexWord Converts a string into a Word that represents its phonetic value.
SplitString Splits a string into different parts delimited by the specified delimiter characters.
StartsStr Determines whether the substring ASubText begins the string AText using a case sensitive algorithm.
StartsText StartsText 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.
StuffString Inserts a substring into a specified position of a string, replacing the current characters.

Types

TCompareTextProc TCompareTextProc 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.
TSoundexIntLength TSoundexIntLength is the maximum calculation length for the SoundexInt function. The integer value can be from 1 to 8.
TSoundexLength TSoundexLength is the maximum calculation length of the SoundEx function.
TStringSeachOption TStringSeachOption is an enumeration that describes the behavior of string searches.
TStringSearchOptions TStringSearchOptions is set of the enumeration TStringSeachOption.

Variables

AnsiResemblesProc Controls the algorithm used by AnsiResemblesText to determine when two strings are similar.
ResemblesProc Controls the algorithm used by AnsiResemblesText to determine when two strings are similar. It is the same as AnsiResemblesProc.
WordDelimiters Set of ANSI characters that are word delimiters.


Retrieved from "https://docwiki.embarcadero.com/Libraries/Tokyo/e/index.php?title=System.StrUtils&oldid=228085"