mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 13:11:46 +03:00
ae3ffdd521
This patch adds the `USING_AK_GLOBALLY` macro which is enabled by default, but can be overridden by build flags. This is a step towards integrating Jakt and AK types.
50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
/*
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Array.h>
|
|
#include <AK/StringView.h>
|
|
|
|
namespace AK {
|
|
|
|
static constexpr Array<StringView, 7> long_day_names = {
|
|
"Sunday"sv, "Monday"sv, "Tuesday"sv, "Wednesday"sv, "Thursday"sv, "Friday"sv, "Saturday"sv
|
|
};
|
|
|
|
static constexpr Array<StringView, 7> short_day_names = {
|
|
"Sun"sv, "Mon"sv, "Tue"sv, "Wed"sv, "Thu"sv, "Fri"sv, "Sat"sv
|
|
};
|
|
|
|
static constexpr Array<StringView, 7> mini_day_names = {
|
|
"Su"sv, "Mo"sv, "Tu"sv, "We"sv, "Th"sv, "Fr"sv, "Sa"sv
|
|
};
|
|
|
|
static constexpr Array<StringView, 7> micro_day_names = {
|
|
"S"sv, "M"sv, "T"sv, "W"sv, "T"sv, "F"sv, "S"sv
|
|
};
|
|
|
|
static constexpr Array<StringView, 12> long_month_names = {
|
|
"January"sv, "February"sv, "March"sv, "April"sv, "May"sv, "June"sv,
|
|
"July"sv, "August"sv, "September"sv, "October"sv, "November"sv, "December"sv
|
|
};
|
|
|
|
static constexpr Array<StringView, 12> short_month_names = {
|
|
"Jan"sv, "Feb"sv, "Mar"sv, "Apr"sv, "May"sv, "Jun"sv,
|
|
"Jul"sv, "Aug"sv, "Sep"sv, "Oct"sv, "Nov"sv, "Dec"sv
|
|
};
|
|
|
|
}
|
|
|
|
#if USING_AK_GLOBALLY
|
|
using AK::long_day_names;
|
|
using AK::long_month_names;
|
|
using AK::micro_day_names;
|
|
using AK::mini_day_names;
|
|
using AK::short_day_names;
|
|
using AK::short_month_names;
|
|
#endif
|