Char: IsPunctuation, IsSeparator, IsSymbol, IsUpper, IsWhiteSpace : Char Function « Data Type « VB.Net Tutorial

Home
VB.Net Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statements
5.Date Time
6.Class Module
7.Development
8.Collections
9.Generics
10.Attributes
11.Event
12.LINQ
13.Stream File
14.GUI
15.GUI Applications
16.Windows Presentation Foundation
17.2D Graphics
18.I18N Internationlization
19.Reflection
20.Regular Expressions
21.Security
22.Socket Network
23.Thread
24.Windows
25.XML
26.Database ADO.net
27.Design Patterns
VB.Net
VB.Net by API
VB.Net Tutorial » Data Type » Char Function 
2.14.3.Char: IsPunctuation, IsSeparator, IsSymbol, IsUpper, IsWhiteSpace
Public Class Tester
    Public Shared Sub Main
        Dim result As New System.Text.StringBuilder
        Dim counter As Integer
        Dim testChar As Char
        Dim testHex As String

        For counter = To 127
            testChar = Chr(counter)
            testHex = "\x" & Hex(counter)

            If Char.IsPunctuation(testCharThen _
               result.AppendLine(testHex & "   IsPunctuation")
            If Char.IsSeparator(testCharThen _
               result.AppendLine(testHex & "   IsSeparator")
            If Char.IsSymbol(testCharThen _
               result.AppendLine(testHex & "   IsSymbol")
            If Char.IsUpper(testCharThen _
               result.AppendLine(testHex & "   IsUpper")
            If Char.IsWhiteSpace(testCharThen _
               result.AppendLine(testHex & "   IsWhiteSpace")

        Next counter
        Console.WriteLine(result)
    End Sub

End Class
\x9   IsWhiteSpace
\xA   IsWhiteSpace
\xB   IsWhiteSpace
\xC   IsWhiteSpace
\xD   IsWhiteSpace
\x20   IsSeparator
\x20   IsWhiteSpace
\x21   IsPunctuation
\x22   IsPunctuation
\x23   IsPunctuation
\x24   IsSymbol
\x25   IsPunctuation
\x26   IsPunctuation
\x27   IsPunctuation
\x28   IsPunctuation
\x29   IsPunctuation
\x2A   IsPunctuation
\x2B   IsSymbol
\x2C   IsPunctuation
\x2D   IsPunctuation
\x2E   IsPunctuation
\x2F   IsPunctuation
\x3A   IsPunctuation
\x3B   IsPunctuation
\x3C   IsSymbol
\x3D   IsSymbol
\x3E   IsSymbol
\x3F   IsPunctuation
\x40   IsPunctuation
\x41   IsUpper
\x42   IsUpper
\x43   IsUpper
\x44   IsUpper
\x45   IsUpper
\x46   IsUpper
\x47   IsUpper
\x48   IsUpper
\x49   IsUpper
\x4A   IsUpper
\x4B   IsUpper
\x4C   IsUpper
\x4D   IsUpper
\x4E   IsUpper
\x4F   IsUpper
\x50   IsUpper
\x51   IsUpper
\x52   IsUpper
\x53   IsUpper
\x54   IsUpper
\x55   IsUpper
\x56   IsUpper
\x57   IsUpper
\x58   IsUpper
\x59   IsUpper
\x5A   IsUpper
\x5B   IsPunctuation
\x5C   IsPunctuation
\x5D   IsPunctuation
\x5E   IsSymbol
\x5F   IsPunctuation
\x60   IsSymbol
\x7B   IsPunctuation
\x7C   IsSymbol
\x7D   IsPunctuation
\x7E   IsSymbol
2.14.Char Function
2.14.1.Passing Char values to Val
2.14.2.Char: IsLetter, IsControl, IsDigit, IsLetterOrDigit, IsLower, IsNumber
2.14.3.Char: IsPunctuation, IsSeparator, IsSymbol, IsUpper, IsWhiteSpace
2.14.4.Char.IsDigit
2.14.5.Remove white space in a string
2.14.6.Char.ToUpper
2.14.7.ChrW
2.14.8.Demonstrates IsWhiteSpace.
2.14.9.Char.Equals.
2.14.10.Output ControlChars.Tab
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.