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

Link copied to clipboard
constructor(start: Int = 32, size: Int = 0xD800 - 0x0020)

Properties

Link copied to clipboard
open override val size: Int

Number of characters in the alphabet.

Functions

Link copied to clipboard
open operator override fun get(index: Int): Char

Returns the character at index in the alphabet.

Link copied to clipboard
open override fun indexOf(c: Char): Int

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

UnicodeRangeAlphabet

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

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.

size

open override val size: Int(source)

Number of characters in the alphabet.