Reference
std/char
std/char
Characters, their code points and ASCII classes.
narra
import * as Char from "std/char"
The guide teaches it in chapter 8, Modules and packages.
This page is generated by scripts/std/generate.nra from narrac query --json interface std/char. Do not edit it.
Functions
code
narra
export function code(character: char): int
Effects: none.
fromCode
narra
export function fromCode(code: int): Option<char>
Effects: none.
isDigit
narra
export function isDigit(character: char): bool
Effects: none.
isUpper
narra
export function isUpper(character: char): bool
Effects: none.
isLower
narra
export function isLower(character: char): bool
Effects: none.
isLetter
narra
export function isLetter(character: char): bool
Effects: none.
isAlphanumeric
narra
export function isAlphanumeric(character: char): bool
Effects: none.
isWhitespace
narra
export function isWhitespace(character: char): bool
Effects: none.