System.SysUtils.TStringHelper Methods

From RAD Studio API Documentation
Jump to: navigation, search

InheritedProtected
ComparepublicCompares two 0-based strings for equality.
CompareOrdinalpublicCompareOrdinal compares two strings by evaluating the numeric values of the corresponding characters in each string.
CompareTextpublicCompares two strings by their ordinal value, without case sensitivity.
CompareTopublicCompares this 0-based string against a given string.
ContainspublicReturns whether this 0-based string contains the given string.
CopypublicCopies and returns the 0-based given string.
CopyTopublicCopies memory allocated for several characters in the 0-based string to the memory allocated for characters in another 0-based string.
CountCharpublicCountChar counts the occurrences of the C character in the string.
Createpublic
DeQuotedStringpublicThis method removes the quote characters from a string.
EndsTextpublicReturns whether the given 0-based string ends with the given 0-based substring.
EndsWithpublicReturns whether this 0-based string ends with the given Value substring.
EqualspublicReturns whether the two given 0-based strings are identical.
FormatpublicIdentical to Format function.
GetHashCodepublicReturns the hash code for this string.
IndexOfpublicReturns an integer that specifies the position of the first occurrence of a character or a substring within this 0-based string, starting the search at StartIndex. This method returns -1 if the value is not found or StartIndex specifies an invalid value.
IndexOfAnypublicReturns an integer indicating the position of the first given character found in the 0-based string.
IndexOfAnyUnquotedpublic
InsertpublicInserts a string in this 0-based string at the given position.
IsDelimiterpublicIndicates whether a specified character in this 0-based string matches one of a set of delimiters.
IsEmptypublicReturns whether this 0-based string is empty (does not contain any characters).
IsNullOrEmptypublicIs a static class function that returns whether the given string is empty or not (does not contain any characters).
IsNullOrWhiteSpacepublicIndicates if a specified string is empty or consists only of white-space characters.
JoinpublicJoins two or more 0-based strings together separated by the given Separator.
LastDelimiterpublicReturns the string index in this 0-based string of the rightmost whole character that matches any character in Delims (except null = #0).
LastIndexOfpublicReturns the last index of the Value string in the current 0-based string.
LastIndexOfAnypublicReturns the last index of any character of the AnyOf character array, in the current 0-based string.
LowerCasepublicConverts an ASCII string to lowercase.
PadLeftpublicLeft-aligns a 0-based string into a fixed length text space.
PadRightpublicRight aligns this 0-based string into a fixed length text space.
ParsepublicParse converts Integer, Boolean and Extended types to their string representations.
QuotedStringpublicQuotedString doubles all the occurrences of a character and also adds it to the edges of the string.
RemovepublicRemoves the substring at the position StartIndex and optionally until the position StartIndex + Count, if specified, from this 0-based string.
ReplacepublicReplaces an old character or string with a new given character or string.
SplitpublicSplits this 0-based string into substrings, using the given Separator.
StartsTextpublic
StartsWithpublicReturns whether this 0-based string starts with the given string.
SubstringpublicReturns the substring starting at the position StartIndex and optionally ending at the position StartIndex + Length, if specified, from this 0-based string.
ToBooleanpublicConverts a string to a Boolean value.
ToCharArraypublicTransforms this 0-based string into a TArray<Char> (a character array) and returns it.
ToDoublepublicConverts a given string to a floating-point value.
ToExtendedpublicConverts a given string to a floating-point value.
ToInt64public
ToIntegerpublicConverts a string that represents an integer (decimal or hex notation) into a number.
ToLowerpublicTransforms this 0-based string into an all lowercase characters 0-based string and returns it.
ToLowerInvariantpublicTransforms this 0-based string into an all-lowercase characters 0-based string and returns it. The conversion is done using the UTF-16 character representation, according to Unicode specification.
ToSinglepublicConverts a given string to a floating-point value.
ToUpperpublicTransforms this 0-based string into an all-uppercase characters 0-based string and returns it.
ToUpperInvariantpublicTransforms this zero-based string into an all-uppercase characters zero-based string and returns it. The conversion is done using the UTF-16 character representation, according to the Unicode specification.
TrimpublicTrims leading and trailing spaces and control characters from this 0-based string.
TrimEnd (deprecated)publicTrims the given trailing characters from this 0-based string.
TrimLeftpublicTrims the given leading characters from this 0-based string.
TrimRightpublicTrims the given trailing characters from a 0-based string.
TrimStart (deprecated)publicTrims the given leading characters from this 0-based string.
UpperCasepublicConverts an ASCII string to uppercase.