mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibJS: Implement parsing of TemporalDateString
This commit is contained in:
parent
3f1af7c05f
commit
02e7de2cba
Notes:
sideshowbarker
2024-07-18 00:56:39 +09:00
Author: https://github.com/linusg
Commit: 02e7de2cba
Pull-request: https://github.com/SerenityOS/serenity/pull/10971
Reviewed-by: https://github.com/IdanHo ✅
Reviewed-by: https://github.com/alimpfard
8 changed files with 27 additions and 13 deletions
|
@ -26,6 +26,8 @@ struct ParseResult {
|
|||
};
|
||||
|
||||
enum class Production {
|
||||
TemporalDateString,
|
||||
TemporalDateTimeString,
|
||||
};
|
||||
|
||||
Optional<ParseResult> parse_iso8601(Production, StringView);
|
||||
|
@ -74,6 +76,7 @@ public:
|
|||
[[nodiscard]] bool parse_time_spec_separator();
|
||||
[[nodiscard]] bool parse_date_time();
|
||||
[[nodiscard]] bool parse_calendar_date_time();
|
||||
[[nodiscard]] bool parse_temporal_date_string();
|
||||
|
||||
private:
|
||||
struct State {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue