Show: Delphi C++
Display Preferences

System.AnsiStrings

From RAD Studio API Documentation
Jump to: navigation, search

Provides routines to work with strings of type AnsiString.

Routines

AnsiCompareFileNameCompares file names.
AnsiCompareStrCompare two strings with case-sensitivity.
AnsiCompareTextCompare two strings without case-sensitivity.
AnsiContainsStrTest if subtext is found in text with case-sensitivity.
AnsiContainsTextTest if subtext is found in text without case-sensitivity.
AnsiDequotedStrConvert quoted string to unquoted string.
AnsiEndsStrTest if trailing part of text matches subtext with case-sensitivity.
AnsiEndsTextTest if trailing part of text matches subtext without case-sensitivity.
AnsiExtractQuotedStrConverts a quoted string into an unquoted string.
AnsiFormatBufFormat argument list using format string.
AnsiIndexStrLook for string in string array with case-sensitivity.
AnsiIndexTextLook for string in string array without case-sensitivity.
AnsiLastCharGet last full character in string.
AnsiLeftStrReturns substring of specified length at start of string.
AnsiLowerCaseConvert characters to lower case.
AnsiLowerCaseFileName (deprecated)Convert file name to lower case.
AnsiMatchStrDetermines if string is in string array with case-sensitivity.
AnsiMatchTextDetermines if string is in string array without case-sensitivity.
AnsiMidStrReturns substring of specified length at specified position in string.
AnsiPosGet index value of first character in substring that occurs in string.
AnsiQuotedStrGet quoted string from string.
AnsiReplaceStrReplaces all occurrences of a substring within a string, using case-sensitive search.
AnsiReplaceTextReplace all occurrences of a substring.
AnsiReverseStringReverse AnsiString.
AnsiRightStrReturns substring of specified length at end of string.
AnsiSameStrCompare two strings with case-sensitivity.
AnsiSameTextCompare two strings without case-sensitivity.
AnsiStartsStrTest if leading part of text matches subtext with case-sensitivity.
AnsiStartsTextTest if leading part of text matches subtext without case-sensitivity.
AnsiStrAllocAllocates a buffer for a null-terminated AnsiString and returns a pointer to its first character.
AnsiStrCompCompares null-terminated character strings.
AnsiStrICompCompares null-terminated character strings case-insensitively.
AnsiStrLastCharReturns a pointer to the last character in a null-terminated string.
AnsiStrLCompCompares the first MaxLen bytes of two null-terminated strings, case-sensitively.
AnsiStrLICompCompares two strings, case-insensitively, up to the first MaxLen bytes.
AnsiStrLowerConverts all characters in a null-terminated string to lowercase.
AnsiStrPosReturns a pointer to the first occurrence of a substring.
AnsiStrRScanReturns a pointer to the last occurrence of a specified character in a specified string.
AnsiStrScanReturns a pointer to the first occurrence of a character in a string.
AnsiStrUpperConverts all characters in a null-terminated string to uppercase.
AnsiUpperCaseConvert characters to upper case.
AnsiUpperCaseFileName (deprecated)Convert file name to lower case.
AppendStr (deprecated)Appends a dynamically allocated string to an existing string.
AssignStr (deprecated)Assigns a new dynamically allocated string to a specified pointer.
ByteToCharIndex (deprecated)Returns the position of the character that contains a specified byte in a string.
ByteToCharLen (deprecated)Returns the number of characters fully contained in the first MaxLen bytes of a string.
ByteTypeIndicates whether a byte in a string is a single-byte character, the first byte of a double-byte character, or the second byte of a double-byte character.
ChangeFileExtChange filename extension.
ChangeFilePathChange filename path.
CharLengthGets the number of bytes required by character.
CharToByteIndex (deprecated)Returns the 1-based index of the first byte of a specified character in a string.
CharToByteLen (deprecated)Returns the length, in bytes, of the first MaxLen characters of a string.
CharToElementIndexReturns the 1-based index of the first element of a specified character in a string.
CharToElementLenReturns the length, in bytes, of the first MaxLen characters of a string.
CompareStrCompare two strings with case-sensitivity.
CompareTextCompare two strings for equality without case-sensitivity.
ContainsStrTest if subtext is found in text with case-sensitivity.
ContainsTextTest if subtext is found in text without case-sensitivity.
DisposeStr (deprecated)Disposes of a string pointer that was allocated using NewStr.
DupeStringMake copies of string.
ElementToCharIndexReturns the position of the character that contains a specified element in a string.
ElementToCharLenReturns the number of characters fully contained in the first MaxLen elements of a string.
EndsStrTest if trailing part of text matches subtext with case-sensitivity.
EndsTextTest if trailing part of text matches subtext without case-sensitivity.
ExcludeTrailingBackslashPrevious name for ExcludeTrailingPathDelimiter.
ExcludeTrailingPathDelimiterReturns a path name without a trailing delimiter. Note: Do not use this method for new development. In particular, if you are doing multi-device development, we recommend that you use the next-generation implementation, System.SysUtils.ExcludeTrailingPathDelimiter, which provides support for mobile platforms as well.
ExpandFileNameExpand filename to fully qualified filename.
ExpandFileNameCaseGet fully qualified filename by performing case-insensitive filename search looking for a close match.
ExpandUNCFileNameExpand filename to fully qualified filename.
ExtractFileDirExtracts drive and directory parts of filename.
ExtractFileDriveExtract drive part of filename.
ExtractFileExtExtract extension part of filename.
ExtractFileNameExtract name and extension parts of filename.
ExtractFilePathExtract drive and directory parts of filename.
ExtractRelativePathReturn file path name relative to base name.
ExtractShortPathNameConvert filename to short form.
FloatToTextConverts a floating-point value to an unterminated character string, using a specified Format, Precision, and Digits.
FloatToTextFmtConverts a floating-point value to an unterminated character string, using a specified format.
FmtStrFormat argument list using format string.
FormatFormats the argument list given by the Args parameter using the format string given by the Format parameter.
FormatBufFormats the arguments from an array, placing the result in a buffer.
IncludeTrailingBackslashPrevious name for IncludeTrailingPathDelimiter.
IncludeTrailingPathDelimiterEnsures that the path name ends with a delimiter. Note: Do not use this method for new development. In particular, if you are doing multi-device development, we recommend that you use the next-generation implementation, System.SysUtils.IncludeTrailingPathDelimiter, which provides support for mobile platforms as well.
IndexStrLook for string in string array with case-sensitivity.
IndexTextLook for string in string array without case-sensitivity..
IsDelimiterTest if character is delimiter.
IsPathDelimiterTest if character is path delimiter.
LastDelimiterByte index of rightmost whole delimiter character.
LeftBStrReturns 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.
LowerCaseConvert all characters to lower case.
MatchStrDetermines if string in string array with case-sensitivity.
MatchTextDetermines if string in string array.
MidBStrReturns 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.
NewStr (deprecated)Allocates a string on the heap.
NextCharIndexByte index of first byte of next character.
PosExReturns index value of substring, starting at offset.
QuotedStrGets quoted string from string.
RandomFromRandomly return one of given strings in array.
ReplaceStrReplaces all occurrences of a substring within a string, using case-sensitive search.
ReplaceTextReplace all occurrences of a substring.
ReverseStringReverse AnsiString.
RightBStrReturns 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.
SameFileNameCompare file names for equality.
SameStrCompare two strings with case-sensitivity.
SameTextCompare two strings for equality without case-sensitivity.
SearchBufLocates a substring within a text buffer.
StartsStrTest if leading part of text matches subtext with case-sensitivity.
StartsTextTest if leading part of text matches subtext without case-sensitivity.
StrBufSizeReturns the maximum number of characters that can be stored in a buffer allocated by StrAlloc.
StrByteTypeIndicates whether a byte in a string is a single-byte character, the first byte of a double-byte character, or the second byte of a double-byte character.
StrCatAppends a copy of Source to the end of Dest and returns the concatenated string.
StrCharLengthReturns the length, in bytes, of a character.
StrCompCompares two strings with case sensitivity.
StrCopyCopies a null-terminated string.
StrDisposeDisposes of a string.
StrECopyCopies a null-terminated string.
StrEndReturns a pointer to the end of a null-terminated string.
StrFmtFormats entries in an array.
StrICompCompares two strings without case sensitivity.
StringReplaceReplaces occurrences of a substring within a string.
StrLCatAppends up to a specified maximum number of characters to a string.
StrLCompCompares up to a specified maximum number of characters in two strings.
StrLCopyCopies up to a specified maximum number of characters from a source to a destination.
StrLenReturns the number of characters in a string, excluding the null terminator.
StrLFmtFormats a series of arguments from a specified open array into a buffer.
StrLICompCompares strings up to a specified maximum number of characters, without case sensitivity.
StrLowerConverts a string to lowercase.
StrMoveCopies a specified number of characters to the string.
StrNewAllocates space on and copies a string to the heap, returning a pointer to the string.
StrNextCharReturns a pointer to the following character.
StrPasConverts null-terminated string to an AnsiString (long string).
StrPCopyCopies an AnsiString (long string) to a null-terminated string.
StrPLCopyCopies characters from an AnsiString (long string) to a null-terminated string.
StrPosReturns a pointer to the first occurrence of STR2 in STR1.
StrRScanReturns a pointer to the last occurrence of a specified character in a string.
StrScanReturns a pointer to the first occurrence of a specified character in a string.
StrUpperReturns a string in uppercase.
StuffStringReplace segment of AnsiString with another one.
TextPosReturns a pointer to the first occurrence of a substring in a string. TextPos is case-insensitive.
TextToFloatConverts a null-terminated string to a floating-point value.
TrimTrim leading and trailing spaces and control characters.
TrimLeftTrim leading spaces and control characters.
TrimRightTrim trailing spaces and control characters.
UpperCaseConvert all characters to upper case.

Types

TFilenameCaseMatchFile match indicator for ExpandFileNameCase.

Variables

EmptyAnsiStrAn empty string constant.
NullAnsiStrPointer to the empty ANSI string constant.
WordDelimitersSet of ANSI characters that are word delimiters.
Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance