Strings
For information about functions that copy, concatenate, and format strings in a manner that prevents buffer overrun errors, see Safe String Functions. Other string manipulation functions include the following:
- RtlInitString
-
Initializes the specified string in a buffer.
- RtlInitAnsiString
-
Initializes the specified ANSI string in a buffer.
- RtlInitUnicodeString
-
Initializes the specified Unicode string in a buffer.
- RtlAnsiStringToUnicodeSize
-
Returns the size in bytes required to hold a Unicode version of a given buffered ANSI string.
- RtlAnsiStringToUnicodeString
-
Converts a buffered ANSI string to a Unicode string, given a pointer to the source-string buffer and the address of caller-supplied storage for a pointer to the destination buffer. (This routine allocates a destination buffer if the caller does not supply the storage.) You can also use the string manipulation routines provided by a compiler to convert ANSI strings to Unicode.
- RtlFreeUnicodeString
-
Releases a buffer containing a Unicode string, given a pointer to the buffer returned by RtlAnsiStringToUnicodeString.
- RtlUnicodeStringToAnsiString
-
Converts a buffered Unicode string to an ANSI string, given a pointer to the source-string buffer and the address of caller-supplied storage for a pointer to the destination buffer. (This routine allocates a destination buffer if the caller does not supply the storage.)
- RtlFreeAnsiString
-
Releases a buffer containing an ANSI string, given a pointer to the buffer returned by RtlUnicodeStringToAnsiString.
- RtlAppendUnicodeStringToString
-
Concatenates a copy of a buffered Unicode string with a buffered Unicode string, given pointers to both buffers.
- RtlAppendUnicodeToString
-
Concatenates a given input string with a buffered Unicode string, given a pointer to the buffer.
- RtlCopyString
-
Copies the source string to the destination, given pointers to both buffers, or sets the length of the destination string (but not the length of the destination buffer) to zero if the optional pointer to the source-string buffer is NULL.
- RtlCopyUnicodeString
-
Copies the source string to the destination, given pointers to both buffers, or sets the length of the destination string (but not the length of the destination buffer) to zero if the optional pointer to the source-string buffer is NULL.
- RtlEqualString
-
Returns TRUE if the given ANSI alphabetic strings are equivalent.
- RtlEqualUnicodeString
-
Returns TRUE if the given buffered strings are equivalent.
- RtlCompareString
-
Compares two buffered, single-byte character strings and returns a signed value indicating whether they are equivalent or which is greater.
- RtlCompareUnicodeString
-
Compares two buffered Unicode strings and returns a signed value indicating whether they are equivalent or which is greater.
- RtlUpperString
-
Converts a copy of a buffered string to uppercase and stores the copy in a destination buffer.
- RtlUpcaseUnicodeString
-
Converts a copy of a buffered Unicode string to uppercase and stores the copy in a destination buffer.
- RtlIntegerToUnicodeString
-
Converts an unsigned integer value in the specified base to one or more Unicode characters in a buffer.
- RtlUnicodeStringToInteger
-
RtlUnicodeStringToInteger converts the Unicode string representation of an integer into its integer equivalent.
Send comments about this topic to Microsoft
Build date: 5/2/2013