kencode

CharAlphabet

Alphabet backed by an explicit string of characters.

Constructors

CharAlphabet

constructor(chars: String)(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.