core / io.islandtime.parser / StringParserBuilder / onEachChar

onEachChar

(iosArm64, iosX64, jvm, macosX64) abstract fun onEachChar(action: DateTimeParseResult.(char: Char, index: Int) -> StringParseAction): Unit

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.