UnicodeCharLenToString

Convert a memory buffer with Unicode characters to a unicodestring

Declaration

Source position: ustringh.inc line 48

  function UnicodeCharLenToString(S: PUnicodeChar; Len: SizeInt)
                                  : UnicodeString;

Description

UnicodeCharLenToString converts the Unicode characters in buffer S with at most len bytes length, to a unicodestring and returns the result.

This function requires the use of a widestring manager.

Errors

No checking is done to see if the pointer S or length len are valid.

See also

Name Description
StringToUnicodeChar Convert an ansistring to a null-terminated array of Unicode characters.
UnicodeCharToString Convert Unicode character to string