Tokenizer

sealed class Tokenizer

Represents a tokenizer responsible for replacing tokens in sequences and populating layouts.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

A tokenizer for sequences with multi-digit tokens.

Link copied to clipboard

A tokenizer for sequences with single-digit tokens.

Functions

Link copied to clipboard
abstract fun populateLayout(layout: Layout, sequence: String, tokenMap: TokenMap): Array<Array<String>>

Populates a layout with values from a sequence, replacing tokens as needed.

Link copied to clipboard
abstract fun replaceTokens(sequence: String, tokenMap: TokenMap): String

Replaces tokens in a given sequence using a token map.