Show: Delphi C++
Display Preferences

System.Character.TCharacter.ConvertToUtf32

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function ConvertToUtf32(const S: string; Index: Integer): UCS4Char; overload; inline; static;
class function ConvertToUtf32(const S: string; Index: Integer; out CharLength: Integer): UCS4Char; overload; inline; static;
class function ConvertToUtf32(const HighSurrogate, LowSurrogate: Char): UCS4Char; overload; inline; static;

C++

static System::UCS4Char __fastcall ConvertToUtf32(const System::UnicodeString S, int Index)/* overload */;
static System::UCS4Char __fastcall ConvertToUtf32(const System::UnicodeString S, int Index, /* out */ int &CharLength)/* overload */;
static System::UCS4Char __fastcall ConvertToUtf32(const System::WideChar HighSurrogate, const System::WideChar LowSurrogate)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Character.pas
System.Character.hpp
System.Character TCharacter

Description

Converts a UTF-16 character or surrogate pair to a UCS4Char.

This method is overloaded:

  • Converts the UTF-16 character or surrogate pair at index Index in string S to a UCS4Char.
  • Converts the UTF-16 character or surrogate pair at index Index in string S to a UCS4Char, and returns the length of the character converted from S as CharLength in UTF-16 characters.
  • Converts a high and low surrogate pair of UTF-16 chars to their combined UCS4Char value.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance