tryParse
bool tryParse(const char[] this, overload out Date value)Parses ISO date text.
Remarks
Parsing is strict and ignores leading and trailing whitespace.
Returns
true when parsing succeeds.
Receives the parsed date, or default when parsing fails.
bool tryParse(const char[] this, overload out DateTime value)Parses ISO date-time text.
Remarks
Parsing is strict and ignores leading and trailing whitespace.
Returns
true when parsing succeeds.
Receives the parsed date and time, or default when parsing fails.
bool tryParse(const char[] this, overload out double result)bool tryParse(const char[] this, overload out Instant value)Parses ISO instant text.
Remarks
Parsing accepts offset date-time text and converts it to an instant.
Returns
true when parsing succeeds.
Receives the parsed instant, or default when parsing fails.
bool tryParse(const char[] this, overload out int result)bool tryParse(const char[] this, overload out long result)bool tryParse(const char[] this, overload out OffsetDateTime value)Parses ISO offset date-time text.
Remarks
Parsing is strict, accepts Z case-insensitively, and ignores leading and trailing whitespace.
Returns
true when parsing succeeds.
Receives the parsed offset date and time, or default when parsing fails.
bool tryParse(const char[] this, overload out TimeOfDay value)Parses ISO time-of-day text.
Remarks
Parsing is strict and ignores leading and trailing whitespace.
Returns
true when parsing succeeds.
Receives the parsed time, or default when parsing fails.
bool tryParse(const char[] this, overload out TimeSpan value)Parses duration text as H:MM:SS with optional milliseconds.
Returns
true when parsing succeeds.
Receives the parsed duration, or default when parsing fails.
bool tryParse(const char[] this, overload out uint result)bool tryParse(const char[] this, overload out ulong result)bool tryParse(const char[] this, overload out UtcOffset value)Parses UTC offset text.
Remarks
Parsing accepts Z case-insensitively and ignores leading and trailing whitespace.
Returns
true when parsing succeeds.
Receives the parsed offset, or default when parsing fails.
Generated with campc v0.6.0-preview.1+4dde68eca4014e9b19e7d7ad0fdae6b2036be640.