System.Character.ConvertToUtf32

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE unsigned __fastcall ConvertToUtf32(const System::UnicodeString S, int Index)/* overload */;

Properties

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

Description

Warning: ConvertToUtf32 is deprecated. Please use TCharHelper.ConvertToUtf32.

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

This function 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