mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
LibWeb: Move common date microsyntax to a separate file
This commit is contained in:
parent
a72636ad8d
commit
479c48643e
5 changed files with 225 additions and 184 deletions
22
Userland/Libraries/LibWeb/HTML/Dates.h
Normal file
22
Userland/Libraries/LibWeb/HTML/Dates.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) 2023, stelar7 <dudedbz@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/String.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
u32 week_number_of_the_last_day(u64 year);
|
||||
bool is_valid_week_string(StringView value);
|
||||
bool is_valid_month_string(StringView value);
|
||||
bool is_valid_date_string(StringView value);
|
||||
bool is_valid_local_date_and_time_string(StringView value);
|
||||
String normalize_local_date_and_time_string(String const& value);
|
||||
bool is_valid_time_string(StringView value);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue