All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dregex.impl.AsciiHelper.scala Maven / Gradle / Ivy

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
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy