• Effekt Logo Effekt Library
    • char
      • isWhitespace
      • digitValue
      • hexDigitValue
      • digitValue
      • isDigit
      • isHexDigit
      • isDigit
      • isASCII
      • isLower
      • isUpper
      • isAlphanumeric
      • isAlphabetic
      • toString
      • toInt
      • toChar
      • infixLt
      • infixLte
      • infixGt
      • infixGte
      • utf8ByteCount
      • utf16UnitCount
      • charWidth
    • char
    • Jump to source: libraries/common/char.effekt
      Example usage: examples/stdlib/char
      Warning: This library currently only works with ASCII characters, **not** unicode!
      • isWhitespace (c: Char): Bool / {}
      • Checks if the given character is an ASCII whitespace
      • digitValue (char: Char): Int / {Exception[WrongFormat]}
      • Gets the value of a given ASCII digit in base 10,
        throwing an exception on wrong format
      • hexDigitValue (char: Char): Int / {Exception[WrongFormat]}
      • Gets the value of a given ASCII digit in base 16,
        throwing an exception on wrong format
      • digitValue (char: Char, base: Int): Int / {Exception[WrongFormat]}
      • Gets the value of a given ASCII digit in the given base up to 36,
        throwing an exception on wrong format
      • isDigit (char: Char): Bool / {}
      • Checks if the given character is an ASCII digit in base 10
        Prefer using `digitValue(c: Char)` to get the numeric value out.
      • isHexDigit (char: Char): Bool / {}
      • Checks if the given character is an ASCII digit in base 16
        Prefer using `hexDigitValue(c: Char)` to get the numeric value out.
      • isDigit (char: Char, base: Int): Bool / {}
      • Checks if the given character is an ASCII digit in base 10
        Prefer using `digitValue(c: Char, base: Int)` to get the numeric value out.
      • isASCII (c: Char): Bool / {}
      • Checks if a given character is a 7-bit ASCII character
      • isLower (c: Char): Bool / {}
      • Checks if a given character is an ASCII lower alphabetic character
      • isUpper (c: Char): Bool / {}
      • Checks if a given character is an ASCII upper alphabetic character
      • isAlphanumeric (c: Char): Bool / {}
      • Checks if a given character is an ASCII alphabetic or numeric character
      • isAlphabetic (c: Char): Bool / {}
      • Checks if a given character is an ASCII alphabetic character
      • toString (ch: Char): String / {}
      • toInt (ch: Char): Int / {}
      • toChar (codepoint: Int): Char / {}
      • infixLt (x: Char, y: Char): Bool / {}
      • infixLte (x: Char, y: Char): Bool / {}
      • infixGt (x: Char, y: Char): Bool / {}
      • infixGte (x: Char, y: Char): Bool / {}
      • utf8ByteCount (codepoint: Char): Int / {}
      • utf16UnitCount (codepoint: Char): Int / {}
      • charWidth (c: Char): Int / {}