//core/io.islandtime.parser/StringParserBuilder/onEachChar
onEachChar¶
common
abstract fun onEachChar(action: DateTimeParseResult.(char: Char, index: Int) -> StringParseAction)
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.