Skip to content

//core/io.islandtime.parser/GroupedDateTimeParserBuilder/anyOf

anyOf

common

abstract fun anyOf(vararg builders: GroupedDateTimeParserBuilder.() -> Unit)

Try each of the parsers defined by builders until one succeeds. If none succeed, parsing is considered to have failed.

common

abstract fun anyOf(vararg childParsers: GroupedDateTimeParser)

Try each of the parsers defined by childParsers until one succeeds and include all of its groups in the parsing results. If none of the parsers succeed, parsing is considered to have failed at the starting index.