kencode

UnicodeRangeAlphabet

class UnicodeRangeAlphabet(start: Int = 32, val size: Int = 0xD800 - 0x0020) : Alphabet(source)

Alphabet backed by a contiguous Unicode range starting at start. Defaults to U+0020 – U+D7FF (55,264 characters), the largest BMP range that avoids surrogate code points.

Constructors

UnicodeRangeAlphabet

constructor(start: Int = 32, size: Int = 0xD800 - 0x0020)(source)

Properties

size

open override val size: Int(source)

Number of characters in the alphabet.

Functions

get

open operator override fun get(index: Int): Char(source)

Returns the character at index in the alphabet.

indexOf

open override fun indexOf(c: Char): Int(source)

Returns the index of c in the alphabet, or -1 if c is not present.