System.Character.TCharHelper.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; static;
class function ConvertToUtf32(const HighSurrogate, LowSurrogate: Char): UCS4Char; overload; static;

Properties

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

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