interface DateTimeParserBuilder
(iosArm64, iosX64, jvm, macosX64)
anyOf |
Try each of the parsers defined by builders until one succeeds. If none succeed, parsing is considered to have failed. abstract fun anyOf(vararg builders: DateTimeParserBuilder.() -> Unit): Unit
Try each of the parsers defined by childParsers until one succeeds. If none succeed, parsing is considered to have failed. abstract fun anyOf(vararg childParsers: DateTimeParser): Unit |
(iosArm64, iosX64, jvm, macosX64)
childParser |
Use a parser that has been defined outside of this builder. abstract fun childParser(childParser: DateTimeParser): Unit |
(iosArm64, iosX64, jvm, macosX64)
decimalNumber |
Parse a decimal number. abstract fun decimalNumber(wholeLength: IntRange = 1..19, fractionLength: IntRange = 0..9, fractionScale: Int = 9, builder: DecimalNumberParserBuilder.() -> Unit = {}): Unit |
(iosArm64, iosX64, jvm, macosX64)
decimalSeparator |
Parse a decimal separator character. abstract fun decimalSeparator(builder: LiteralParserBuilder.() -> Unit = {}): Unit |
(iosArm64, iosX64, jvm, macosX64)
fraction |
Parse the fractional part of a number. abstract fun fraction(length: IntRange = 1..9, scale: Int = 9, builder: FractionParserBuilder.() -> Unit = {}): Unit |
(iosArm64, iosX64, jvm, macosX64)
literal |
Parse a Char literal. abstract fun literal(char: Char, builder: LiteralParserBuilder.() -> Unit = {}): Unit
Parse a String literal. abstract fun literal(string: String, builder: LiteralParserBuilder.() -> Unit = {}): Unit |
(iosArm64, iosX64, jvm, macosX64)
optional |
Make parsing optional within a block. abstract fun optional(builder: DateTimeParserBuilder.() -> Unit): Unit |
(iosArm64, iosX64, jvm, macosX64)
sign |
Parse a character indicating the sign of a number. abstract fun sign(builder: SignParserBuilder.() -> Unit = {}): Unit |
(iosArm64, iosX64, jvm, macosX64)
string |
Parse a variable length string. abstract fun string(length: IntRange = IntRange.EMPTY, builder: StringParserBuilder.() -> Unit): Unit |
(iosArm64, iosX64, jvm, macosX64)
unaryPlus |
Parse a Char literal. open operator fun Char.unaryPlus(): Unit
Parse a String literal. open operator fun String.unaryPlus(): Unit |
(iosArm64, iosX64, jvm, macosX64)
wholeNumber |
Parse a whole number of fixed length. abstract fun wholeNumber(length: Int, builder: WholeNumberParserBuilder.() -> Unit = {}): Unit
Parse a whole number of variable length. abstract fun wholeNumber(length: IntRange = 1..19, builder: WholeNumberParserBuilder.() -> Unit = {}): Unit |