StrUtils

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

Enum

TStringSeachOption

TStringSeachOption is an enumeration that describes the behavior of string searches.

Function

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

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

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 value of a substring.

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

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.

StartsStr

Determines whether the substring ASubText begins the string AText using a case insensitive 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.

Set

TStringSearchOptions

TStringSearchOptions is set of the enumeration TStringSeachOption.

Type

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.

Variable

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.

C++ Information

Enum

TStringSeachOption

TStringSeachOption is an enumeration that describes the behavior of string searches.

Function

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

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

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 value of a substring.

RandomFrom

Returns a randomly selected element from an array.

ReplaceStr

Replaces all occurrences of a substring within a string, using case-sensitive search.

ReplaceTextA
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

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.

StartsStr

Determines whether the substring ASubText begins the string AText using a case insensitive 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.

Typedef

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.

TStringSearchOptions

TStringSearchOptions is set of the enumeration TStringSeachOption.

Variable

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
Personal tools
Translations
Newest Version