[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'Character' (#rtl)

TCharacter.ConvertFromUtf32

Convert a UTF32 character to UnicodeString

Declaration

Source position: character.pas line 85

public class function TCharacter.ConvertFromUtf32(

  AChar: UCS4Char

):UnicodeString;

Arguments

AChar

  

UTF32 character to convert to UTF16.

Function result

A UTF16 Unicode string representing AChar

Description

TCharacter.ConvertFromUtf32 converts a single UTF32 character AChar to a UTF16 string. This is the opposite of TCharacter.ConvertToUtf32.

The result is a string, since multiple UTF16 characters can be needed to encode a single UTF32 character.

Errors

If AChar is not in the valid range of UTF32 characters, an EArgumentOutOfRangeException exception is raised.

See also

EArgumentOutOfRangeException

  

Argument out of valid range passed to a function

TCharacter.ConvertToUtf32

  

Convert a UTF16 character to a UTF32 character


Documentation generated on: May 14 2021