UnicodeCharacters.GetCodepointFromSurrogatePair(UInt32, UInt32) 方法

定义

返回指定的高代理项和低代理项对的补充 Unicode 字符。

public:
 static unsigned int GetCodepointFromSurrogatePair(unsigned int highSurrogate, unsigned int lowSurrogate);
 static uint32_t GetCodepointFromSurrogatePair(uint32_t const& highSurrogate, uint32_t const& lowSurrogate);
public static uint GetCodepointFromSurrogatePair(uint highSurrogate, uint lowSurrogate);
function getCodepointFromSurrogatePair(highSurrogate, lowSurrogate)
Public Shared Function GetCodepointFromSurrogatePair (highSurrogate As UInteger, lowSurrogate As UInteger) As UInteger

参数

highSurrogate
UInt32

unsigned int

uint32_t

高代理项值。 这必须在适当的范围内:0xD800 <= highSurrogate<= 0xDBFF。

lowSurrogate
UInt32

unsigned int

uint32_t

低代理项值。 这必须在适当的范围内:0xDC00 <= lowSurrogate<= 0xDFFF。

返回

UInt32

unsigned int

uint32_t

补充 Unicode 字符。

适用于

另请参阅