StringParserBuilder

interface StringParserBuilder

Functions

equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
onEachChar
Link copied to clipboard
common

Execute a block as each character in the string is encountered during parsing.

Return StringParseAction.ACCEPT_AND_CONTINUE to continue parsing or StringParseAction.REJECT_AND_STOP to reject the current character and trigger the end of parsing.

abstract fun onEachChar(action: DateTimeParseResult.(Char, Int) -> StringParseAction)
onParsed
Link copied to clipboard
common

Perform an action when parsing succeeds.

abstract fun onParsed(action: DateTimeParseResult.(String) -> Unit)
toString
Link copied to clipboard
common
open override fun toString(): String