dregex.impl.AsciiHelper.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dregex_2.12 Show documentation
Show all versions of dregex_2.12 Show documentation
Deterministic Regular Expression Engine
The newest version!
package dregex.impl
object AsciiHelper {
def isUpper(ch: Char): Boolean = {
ch >= 'A' && ch <= 'Z'
}
def toLower(ch: Char): Char = {
if (isUpper(ch))
(ch + 0x20).toChar
else
ch
}
}