Char Functions
These function are used to work on 'Char' type values.
SRON provides 9 functions for this:
1. ascii():
{
name : Main
@ if you pass a 'Char' value,then this
@ function will return the ASCII number
Int val = ascii('A')
println(val)
@ if you pass a 'Int' value, then this
@ function will return its 'Char' value
val = ascii(122)
println(val)
}OUTPUT:
2. isAlphabet():
OUTPUT:
3. isAlphaNum():
OUTPUT:
4. isConsonant():
OUTPUT:
5. isDigit():
OUTPUT:
6. isLower():
OUTPUT:
7. isUpper():
OUTPUT:
8. isVowel():
OUTPUT:
9. toLower():
OUTPUT:
10. toUpper():
OUTPUT:
Last updated