kencode

CharAlphabet

Alphabet backed by an explicit string of characters.

Constructors

Link copied to clipboard
constructor(chars: String)

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.

CharAlphabet

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