Companion

object Companion

Properties

Link copied to clipboard
const val DEFAULT_MAX_WORD_LEN: Int = 255

Functions

Link copied to clipboard
fun fromSeparatorCharPredicate(separatorCharPredicate: (Int) -> Boolean): CharTokenizer

Creates a new instance of CharTokenizer using a custom predicate, supplied as method reference or lambda expression. The predicate should return true for all valid token separator characters. This method is provided for convenience to easily use predicates that are negated (they match the separator characters, not the token characters).

fun fromSeparatorCharPredicate(factory: AttributeFactory, separatorCharPredicate: (Int) -> Boolean): CharTokenizer

Creates a new instance of CharTokenizer with the supplied attribute factory using a custom predicate, supplied as method reference or lambda expression. The predicate should return true for all valid token separator characters.

Link copied to clipboard
fun fromTokenCharPredicate(tokenCharPredicate: (Int) -> Boolean): CharTokenizer

Creates a new instance of CharTokenizer using a custom predicate, supplied as method reference or lambda expression. The predicate should return true for all valid token characters.

fun fromTokenCharPredicate(factory: AttributeFactory, tokenCharPredicate: (Int) -> Boolean): CharTokenizer

Creates a new instance of CharTokenizer with the supplied attribute factory using a custom predicate, supplied as method reference or lambda expression. The predicate should return true for all valid token characters.