Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UnicodeCharacters.GetSurrogatePairFromCodepoint | getSurrogatePairFromCodepoint method

Returns the high and low surrogate pair values for the specified supplementary Unicode character.

Syntax


Windows.Data.Text.UnicodeCharacters.getSurrogatePairFromCodepoint(codepoint);

Parameters

codepoint

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

A Unicode character. This must be in the proper range: 0 <= codepoint <= 0x10FFFF.

highSurrogate (out parameter)

Type: String [JavaScript] | System.Char [.NET] | char16 [C++]

The high surrogate value returned.

lowSurrogate (out parameter)

Type: String [JavaScript] | System.Char [.NET] | char16 [C++]

The low surrogate value returned.

Remarks

See Surrogates and Supplementary Characters for a discussion of supplementary Unicode characters.

This method throws an invalid argument exception if codepoint is not valid.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Data.Text
Windows::Data::Text [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Data.Text
Windows::Data::Text [C++]

Metadata

Windows.winmd

See also

UnicodeCharacters
GetCodepointFromSurrogatePair
Surrogates and Supplementary Characters

 

 

Show:
© 2015 Microsoft