Character Commands

Fuentes


Muy útiles para comprobar un carácter dado.

char.IsDigit(ch)

returns true if the character is a digit (0 to 9)

char.IsLetter(ch)

returns true if the character is a letter (a to z or A to Z)

char.IsLetterOrDigit(ch)

returns true if the character is a letter or a digit

char.IsLower(ch)

returns true if the character is a lower case letter

char.IsUpper(ch)

returns true if the character is an upper case letter

char.IsPunctuation(ch)

returns true if the character is a punctuation character

char.IsWhiteSpace(ch)

returns true if the character is a space, tab or newline