Characters

Utilities for working with characters

Since

0.1.0

Functions

Link copied to clipboard

Escape a character

Link copied to clipboard

Escape a character for a character (does not escape the '"' character.)

Link copied to clipboard

Escape a character for a string (does not escape the "'" character.)

Link copied to clipboard

Escape a string

Link copied to clipboard

Escape a string for a character (does not escape the '"' character.)

Link copied to clipboard

Escape a string for a string (does not escape the "'" character.)

Link copied to clipboard

Get a base 16 char equivalent of an integer

Link copied to clipboard

Is the given character a hex character (0-f)

Link copied to clipboard

Is the given character a part of an identifier (A-Z, a-z, 0-9 and '_')

Link copied to clipboard

Is the given character the start of a identifier (A-Z, a-z and '_', not 0-9)

Link copied to clipboard

Is the given character a number character (0-9)

Link copied to clipboard

Is the given character a number character (0-9) or a dot character

Link copied to clipboard

Is the given character an ignored whitespace character ('\r', '\t' or ' ', not '\n')

Link copied to clipboard

Parses string contents. Not including string start & end e.g.

Link copied to clipboard
fun toBase16(number: Int, digits: Int = 1): String

Generate number to base 16

Link copied to clipboard
fun toUnicode(char: Char): String

Escape a character to a unicode