Char.IsHighSurrogate Method tells whether the specified Char object is a high surrogate. : Char « Data Types « VB.Net






Char.IsHighSurrogate Method tells whether the specified Char object is a high surrogate.

 


Imports System
Imports Microsoft.VisualBasic

Class Sample
   Public Shared Sub Main()
      Dim cHigh As Char = ChrW(&HD800)
      Dim cLow  As Char = ChrW(&HDC00)
      Dim s1 = New [String](New Char() {"a"c, ChrW(&HD800), ChrW(&HDC00), "z"c})

      Console.WriteLine("Hexadecimal code point of the character, cHigh: {0:X4}", AscW(cHigh))
      Console.WriteLine("Hexadecimal code point of the character, cLow:  {0:X4}", AscW(cLow))

   End Sub 'Main
End Class 'Sample

   
  








Related examples in the same category

1.Four ways to declare CharactersFour ways to declare Characters
2.Create a Console Line by Repeating a CharCreate a Console Line by Repeating a Char
3.Display contents of charArrayDisplay contents of charArray
4.Char IsDigitChar IsDigit
5.Char IsLetterChar IsLetter
6.Char IsLetterOrDigitChar IsLetterOrDigit
7.Char IsLowerChar IsLower
8.Char IsUpperChar IsUpper
9.Char ToUpperChar ToUpper
10.Char ToLowerChar ToLower
11.Char IsPunctuationChar IsPunctuation
12.Char IsSymbolChar IsSymbol
13.Insert char to StringBuilder
14.Generic and nongeneric versions of the CompareTo method for Char value
15.Char.IsLowSurrogate() IsHighSurrogate() and IsSurrogatePair()
16.Char ToString.
17.Char.IsDigitChar.IsDigit
18.demonstrates IsSymbol
19.Char.CompareTo (Object)
20.Char.ConvertFromUtf32 converts the specified Unicode code point into a UTF-16 encoded string.
21.Convert the lone UTF-16 character to a code point
22.Convert the surrogate pair in the string at index position zero to a code point.
23.Char.GetNumericValue converts numeric Unicode character to a double-precision floating point number.
24.Char.GetUnicodeCategory categorizes Unicode character into a group identified by one of the UnicodeCategory values.
25.Char.IsControl indicates whether the specified Unicode character is categorized as a control character.
26.Char.IsControl tells whether the character is categorized as a control character.
27.Char.IsDigit Method tells whether the specified Unicode character is categorized as a decimal digit.
28.Is each of the following characters a high surrogate?
29.Is each of the following characters a low surrogate?
30.Characters a surrogate pair
31.Char.IsLetter Method tells whether the specified Unicode character is categorized as a Unicode letter.
32.Char.IsLower Method tells whether the specified Unicode character is categorized as a lowercase letter.
33.Char.IsNumber Method tells whether the specified Unicode character is categorized as a number.
34.Char.IsPunctuation Method tells whether the specified Unicode character is categorized as a punctuation mark.
35.Char.IsSeparator Method tells whether specified Unicode character is categorized as a separator character.
36.Char.IsSeparator Method (String, Int32) tells whether character at specified position is a separator character.
37.Char.IsSurrogate tells whether the specified character has a surrogate code point.
38.Char.IsSymbol Method tells whether the specified Unicode character is categorized as a symbol character.
39.Char.ToString converts Unicode character to string
40.Create a string from a character array
41.Is Surrogate Pair
42.Use Char.IsPunctuation and Char.IsWhiteSpace to split words
43.Char Structure