Char: IsHighSurrogate

IsHighSurrogate

Indicates whether the specified character has a high surrogate code unit.



 Public Function IsHighSurrogate(
	  ByVal c As Long ) As Boolean

Parameters

c
[ByVal] Long. The Unicode character to evaluate.

Return Values

Boolean -  True if the value of c parameter ranges from U+D800 to U+DBFF; otherwise, False.

Remarks

This method handles the discrepancy between integers and longs particularly when dealing with negative integer values that should map to positive long values.

Exceptions

Exception Condition
ArgumentOutOfRangeExceptionc is outside of the valid range -32768 to 65535.

See Also

Project CorLib Overview

Class Char Overview

IsHighSurrogateStr

IsLowSurrogate

IsLowSurrogateStr

IsSurrogate

IsSurrogateStr