mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
LibLocale: Move locale source files to the LibLocale folder
These are still included in LibUnicode, but this updates their location and the include paths of other files which include them.
This commit is contained in:
parent
ff48220dca
commit
43a3471298
Notes:
sideshowbarker
2024-07-17 07:30:02 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/43a3471298 Pull-request: https://github.com/SerenityOS/serenity/pull/15096 Reviewed-by: https://github.com/linusg ✅
@ -504,8 +504,9 @@ if (BUILD_LAGOM)
|
|||||||
include(unicode_data)
|
include(unicode_data)
|
||||||
include(locale_data)
|
include(locale_data)
|
||||||
file(GLOB LIBUNICODE_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibUnicode/*.cpp")
|
file(GLOB LIBUNICODE_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibUnicode/*.cpp")
|
||||||
|
file(GLOB LIBLOCALE_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibLocale/*.cpp")
|
||||||
lagom_lib(Unicode unicode
|
lagom_lib(Unicode unicode
|
||||||
SOURCES ${LIBUNICODE_SOURCES} ${UNICODE_DATA_SOURCES} ${LOCALE_DATA_SOURCES}
|
SOURCES ${LIBUNICODE_SOURCES} ${UNICODE_DATA_SOURCES} ${LIBLOCALE_SOURCES} ${LOCALE_DATA_SOURCES}
|
||||||
)
|
)
|
||||||
target_compile_definitions(LibUnicode PRIVATE ENABLE_UNICODE_DATA=$<BOOL:${ENABLE_UNICODE_DATABASE_DOWNLOAD}>)
|
target_compile_definitions(LibUnicode PRIVATE ENABLE_UNICODE_DATA=$<BOOL:${ENABLE_UNICODE_DATABASE_DOWNLOAD}>)
|
||||||
target_compile_options(LibUnicode PRIVATE -Wno-parentheses-equality)
|
target_compile_options(LibUnicode PRIVATE -Wno-parentheses-equality)
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibCore/DirIterator.h>
|
#include <LibCore/DirIterator.h>
|
||||||
#include <LibCore/Stream.h>
|
#include <LibCore/Stream.h>
|
||||||
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
#include <LibTimeZone/TimeZone.h>
|
#include <LibTimeZone/TimeZone.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
|
||||||
|
|
||||||
using StringIndexType = u16;
|
using StringIndexType = u16;
|
||||||
constexpr auto s_string_index_type = "u16"sv;
|
constexpr auto s_string_index_type = "u16"sv;
|
||||||
@ -1768,11 +1768,11 @@ static ErrorOr<void> generate_unicode_locale_implementation(Core::Stream::Buffer
|
|||||||
#include <AK/BinarySearch.h>
|
#include <AK/BinarySearch.h>
|
||||||
#include <AK/Optional.h>
|
#include <AK/Optional.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <LibLocale/LocaleData.h>
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
#include <LibLocale/DateTimeFormatData.h>
|
#include <LibLocale/DateTimeFormatData.h>
|
||||||
|
#include <LibLocale/Locale.h>
|
||||||
|
#include <LibLocale/LocaleData.h>
|
||||||
#include <LibTimeZone/TimeZone.h>
|
#include <LibTimeZone/TimeZone.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
|
||||||
#include <LibUnicode/Locale.h>
|
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
)~~~");
|
)~~~");
|
||||||
|
@ -1102,10 +1102,10 @@ static ErrorOr<void> generate_unicode_locale_implementation(Core::Stream::Buffer
|
|||||||
#include <AK/Span.h>
|
#include <AK/Span.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibLocale/LocaleData.h>
|
#include <LibLocale/LocaleData.h>
|
||||||
#include <LibUnicode/CurrencyCode.h>
|
#include <LibUnicode/CurrencyCode.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
|
||||||
#include <LibUnicode/Locale.h>
|
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
)~~~");
|
)~~~");
|
||||||
|
@ -27,9 +27,9 @@
|
|||||||
#include <LibCore/File.h>
|
#include <LibCore/File.h>
|
||||||
#include <LibCore/Stream.h>
|
#include <LibCore/Stream.h>
|
||||||
#include <LibJS/Runtime/Intl/SingleUnitIdentifiers.h>
|
#include <LibJS/Runtime/Intl/SingleUnitIdentifiers.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibUnicode/NumberFormat.h>
|
#include <LibLocale/NumberFormat.h>
|
||||||
#include <LibUnicode/PluralRules.h>
|
#include <LibLocale/PluralRules.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
using StringIndexType = u16;
|
using StringIndexType = u16;
|
||||||
@ -806,11 +806,11 @@ static ErrorOr<void> generate_unicode_locale_implementation(Core::Stream::Buffer
|
|||||||
#include <AK/Span.h>
|
#include <AK/Span.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibLocale/LocaleData.h>
|
#include <LibLocale/LocaleData.h>
|
||||||
|
#include <LibLocale/NumberFormat.h>
|
||||||
#include <LibLocale/NumberFormatData.h>
|
#include <LibLocale/NumberFormatData.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/PluralRules.h>
|
||||||
#include <LibUnicode/NumberFormat.h>
|
|
||||||
#include <LibUnicode/PluralRules.h>
|
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
)~~~");
|
)~~~");
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibCore/File.h>
|
#include <LibCore/File.h>
|
||||||
#include <LibCore/Stream.h>
|
#include <LibCore/Stream.h>
|
||||||
#include <LibUnicode/PluralRules.h>
|
#include <LibLocale/PluralRules.h>
|
||||||
|
|
||||||
using StringIndexType = u16;
|
using StringIndexType = u16;
|
||||||
|
|
||||||
@ -460,10 +460,10 @@ static ErrorOr<void> generate_unicode_locale_implementation(Core::Stream::Buffer
|
|||||||
|
|
||||||
generator.append(R"~~~(
|
generator.append(R"~~~(
|
||||||
#include <AK/Array.h>
|
#include <AK/Array.h>
|
||||||
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibLocale/LocaleData.h>
|
#include <LibLocale/LocaleData.h>
|
||||||
|
#include <LibLocale/PluralRules.h>
|
||||||
#include <LibLocale/PluralRulesData.h>
|
#include <LibLocale/PluralRulesData.h>
|
||||||
#include <LibUnicode/Locale.h>
|
|
||||||
#include <LibUnicode/PluralRules.h>
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibCore/DirIterator.h>
|
#include <LibCore/DirIterator.h>
|
||||||
#include <LibCore/Stream.h>
|
#include <LibCore/Stream.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibUnicode/RelativeTimeFormat.h>
|
#include <LibLocale/RelativeTimeFormat.h>
|
||||||
|
|
||||||
using StringIndexType = u16;
|
using StringIndexType = u16;
|
||||||
constexpr auto s_string_index_type = "u16"sv;
|
constexpr auto s_string_index_type = "u16"sv;
|
||||||
@ -178,7 +178,7 @@ static ErrorOr<void> generate_unicode_locale_header(Core::Stream::BufferedFile&
|
|||||||
generator.append(R"~~~(
|
generator.append(R"~~~(
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibUnicode/Forward.h>
|
#include <LibLocale/Forward.h>
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
)~~~");
|
)~~~");
|
||||||
@ -202,10 +202,10 @@ static ErrorOr<void> generate_unicode_locale_implementation(Core::Stream::Buffer
|
|||||||
#include <AK/Array.h>
|
#include <AK/Array.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
|
#include <LibLocale/Locale.h>
|
||||||
|
#include <LibLocale/PluralRules.h>
|
||||||
|
#include <LibLocale/RelativeTimeFormat.h>
|
||||||
#include <LibLocale/RelativeTimeFormatData.h>
|
#include <LibLocale/RelativeTimeFormatData.h>
|
||||||
#include <LibUnicode/Locale.h>
|
|
||||||
#include <LibUnicode/PluralRules.h>
|
|
||||||
#include <LibUnicode/RelativeTimeFormat.h>
|
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
)~~~");
|
)~~~");
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <LibCore/DirIterator.h>
|
#include <LibCore/DirIterator.h>
|
||||||
#include <LibCore/File.h>
|
#include <LibCore/File.h>
|
||||||
#include <LibCore/Stream.h>
|
#include <LibCore/Stream.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
inline constexpr bool StorageTypeIsList = false;
|
inline constexpr bool StorageTypeIsList = false;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <AK/Array.h>
|
#include <AK/Array.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <AK/Time.h>
|
#include <AK/Time.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
|
|
||||||
TEST_CASE(time_zone_name)
|
TEST_CASE(time_zone_name)
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <LibTest/TestCase.h>
|
#include <LibTest/TestCase.h>
|
||||||
|
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
TEST_CASE(is_unicode_language_subtag)
|
TEST_CASE(is_unicode_language_subtag)
|
||||||
{
|
{
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
#include <LibGUI/Painter.h>
|
#include <LibGUI/Painter.h>
|
||||||
#include <LibGUI/Process.h>
|
#include <LibGUI/Process.h>
|
||||||
#include <LibGfx/Palette.h>
|
#include <LibGfx/Palette.h>
|
||||||
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibTimeZone/TimeZone.h>
|
#include <LibTimeZone/TimeZone.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
|
||||||
#include <LibUnicode/Locale.h>
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <spawn.h>
|
#include <spawn.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -24,9 +24,9 @@
|
|||||||
#include <LibJS/Runtime/Intl/DateTimeFormatConstructor.h>
|
#include <LibJS/Runtime/Intl/DateTimeFormatConstructor.h>
|
||||||
#include <LibJS/Runtime/Temporal/Instant.h>
|
#include <LibJS/Runtime/Temporal/Instant.h>
|
||||||
#include <LibJS/Runtime/Value.h>
|
#include <LibJS/Runtime/Value.h>
|
||||||
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibTimeZone/TimeZone.h>
|
#include <LibTimeZone/TimeZone.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
|
||||||
#include <LibUnicode/Locale.h>
|
|
||||||
|
|
||||||
namespace JS {
|
namespace JS {
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include <LibJS/Runtime/GlobalObject.h>
|
#include <LibJS/Runtime/GlobalObject.h>
|
||||||
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
||||||
#include <LibJS/Runtime/Intl/Locale.h>
|
#include <LibJS/Runtime/Intl/Locale.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include <LibJS/Runtime/Intl/SingleUnitIdentifiers.h>
|
#include <LibJS/Runtime/Intl/SingleUnitIdentifiers.h>
|
||||||
#include <LibJS/Runtime/Temporal/AbstractOperations.h>
|
#include <LibJS/Runtime/Temporal/AbstractOperations.h>
|
||||||
#include <LibJS/Runtime/Value.h>
|
#include <LibJS/Runtime/Value.h>
|
||||||
#include <LibUnicode/Forward.h>
|
#include <LibLocale/Forward.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
||||||
#include <LibJS/Runtime/Intl/Collator.h>
|
#include <LibJS/Runtime/Intl/Collator.h>
|
||||||
#include <LibJS/Runtime/Intl/CollatorConstructor.h>
|
#include <LibJS/Runtime/Intl/CollatorConstructor.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
#include <LibJS/Runtime/Intl/NumberFormatConstructor.h>
|
#include <LibJS/Runtime/Intl/NumberFormatConstructor.h>
|
||||||
#include <LibJS/Runtime/NativeFunction.h>
|
#include <LibJS/Runtime/NativeFunction.h>
|
||||||
#include <LibJS/Runtime/Utf16String.h>
|
#include <LibJS/Runtime/Utf16String.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibUnicode/NumberFormat.h>
|
#include <LibLocale/NumberFormat.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include <LibJS/Runtime/Completion.h>
|
#include <LibJS/Runtime/Completion.h>
|
||||||
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
||||||
#include <LibJS/Runtime/Object.h>
|
#include <LibJS/Runtime/Object.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
#include <LibJS/Runtime/Intl/DateTimeFormat.h>
|
#include <LibJS/Runtime/Intl/DateTimeFormat.h>
|
||||||
#include <LibJS/Runtime/Intl/DateTimeFormatConstructor.h>
|
#include <LibJS/Runtime/Intl/DateTimeFormatConstructor.h>
|
||||||
#include <LibJS/Runtime/Temporal/TimeZone.h>
|
#include <LibJS/Runtime/Temporal/TimeZone.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <LibJS/Runtime/GlobalObject.h>
|
#include <LibJS/Runtime/GlobalObject.h>
|
||||||
#include <LibJS/Runtime/Intl/DateTimeFormatFunction.h>
|
#include <LibJS/Runtime/Intl/DateTimeFormatFunction.h>
|
||||||
#include <LibJS/Runtime/Intl/DateTimeFormatPrototype.h>
|
#include <LibJS/Runtime/Intl/DateTimeFormatPrototype.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <LibJS/Runtime/Object.h>
|
#include <LibJS/Runtime/Object.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include <LibJS/Runtime/Intl/DisplayNames.h>
|
#include <LibJS/Runtime/Intl/DisplayNames.h>
|
||||||
#include <LibJS/Runtime/Intl/DisplayNamesConstructor.h>
|
#include <LibJS/Runtime/Intl/DisplayNamesConstructor.h>
|
||||||
#include <LibJS/Runtime/Temporal/AbstractOperations.h>
|
#include <LibJS/Runtime/Temporal/AbstractOperations.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
||||||
#include <LibJS/Runtime/Intl/DisplayNames.h>
|
#include <LibJS/Runtime/Intl/DisplayNames.h>
|
||||||
#include <LibJS/Runtime/Intl/DisplayNamesPrototype.h>
|
#include <LibJS/Runtime/Intl/DisplayNamesPrototype.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
#include <LibJS/Runtime/Intl/RelativeTimeFormatConstructor.h>
|
#include <LibJS/Runtime/Intl/RelativeTimeFormatConstructor.h>
|
||||||
#include <LibJS/Runtime/Intl/SegmenterConstructor.h>
|
#include <LibJS/Runtime/Intl/SegmenterConstructor.h>
|
||||||
#include <LibJS/Runtime/Temporal/TimeZone.h>
|
#include <LibJS/Runtime/Temporal/TimeZone.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibUnicode/NumberFormat.h>
|
#include <LibLocale/NumberFormat.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
||||||
#include <LibJS/Runtime/Object.h>
|
#include <LibJS/Runtime/Object.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
#include <LibJS/Runtime/Array.h>
|
#include <LibJS/Runtime/Array.h>
|
||||||
#include <LibJS/Runtime/GlobalObject.h>
|
#include <LibJS/Runtime/GlobalObject.h>
|
||||||
#include <LibJS/Runtime/Intl/Locale.h>
|
#include <LibJS/Runtime/Intl/Locale.h>
|
||||||
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibTimeZone/TimeZone.h>
|
#include <LibTimeZone/TimeZone.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
|
||||||
#include <LibUnicode/Locale.h>
|
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include <LibJS/Runtime/Completion.h>
|
#include <LibJS/Runtime/Completion.h>
|
||||||
#include <LibJS/Runtime/Object.h>
|
#include <LibJS/Runtime/Object.h>
|
||||||
#include <LibJS/Runtime/Value.h>
|
#include <LibJS/Runtime/Value.h>
|
||||||
#include <LibUnicode/Forward.h>
|
#include <LibLocale/Forward.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
||||||
#include <LibJS/Runtime/Intl/Locale.h>
|
#include <LibJS/Runtime/Intl/Locale.h>
|
||||||
#include <LibJS/Runtime/Intl/LocaleConstructor.h>
|
#include <LibJS/Runtime/Intl/LocaleConstructor.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <LibJS/Runtime/GlobalObject.h>
|
#include <LibJS/Runtime/GlobalObject.h>
|
||||||
#include <LibJS/Runtime/Intl/Locale.h>
|
#include <LibJS/Runtime/Intl/Locale.h>
|
||||||
#include <LibJS/Runtime/Intl/LocalePrototype.h>
|
#include <LibJS/Runtime/Intl/LocalePrototype.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
||||||
#include <LibJS/Runtime/Intl/MathematicalValue.h>
|
#include <LibJS/Runtime/Intl/MathematicalValue.h>
|
||||||
#include <LibJS/Runtime/Object.h>
|
#include <LibJS/Runtime/Object.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibUnicode/NumberFormat.h>
|
#include <LibLocale/NumberFormat.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <LibJS/Runtime/GlobalObject.h>
|
#include <LibJS/Runtime/GlobalObject.h>
|
||||||
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
||||||
#include <LibJS/Runtime/Intl/NumberFormatConstructor.h>
|
#include <LibJS/Runtime/Intl/NumberFormatConstructor.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include <LibJS/Runtime/Completion.h>
|
#include <LibJS/Runtime/Completion.h>
|
||||||
#include <LibJS/Runtime/Intl/NumberFormat.h>
|
#include <LibJS/Runtime/Intl/NumberFormat.h>
|
||||||
#include <LibJS/Runtime/Object.h>
|
#include <LibJS/Runtime/Object.h>
|
||||||
#include <LibUnicode/PluralRules.h>
|
#include <LibLocale/PluralRules.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include <LibJS/Runtime/Array.h>
|
#include <LibJS/Runtime/Array.h>
|
||||||
#include <LibJS/Runtime/GlobalObject.h>
|
#include <LibJS/Runtime/GlobalObject.h>
|
||||||
#include <LibJS/Runtime/Intl/PluralRulesPrototype.h>
|
#include <LibJS/Runtime/Intl/PluralRulesPrototype.h>
|
||||||
#include <LibUnicode/PluralRules.h>
|
#include <LibLocale/PluralRules.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
#include <LibJS/Runtime/Completion.h>
|
#include <LibJS/Runtime/Completion.h>
|
||||||
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
#include <LibJS/Runtime/Intl/AbstractOperations.h>
|
||||||
#include <LibJS/Runtime/Object.h>
|
#include <LibJS/Runtime/Object.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibUnicode/RelativeTimeFormat.h>
|
#include <LibLocale/RelativeTimeFormat.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#include <LibJS/Runtime/Intl/PluralRulesConstructor.h>
|
#include <LibJS/Runtime/Intl/PluralRulesConstructor.h>
|
||||||
#include <LibJS/Runtime/Intl/RelativeTimeFormat.h>
|
#include <LibJS/Runtime/Intl/RelativeTimeFormat.h>
|
||||||
#include <LibJS/Runtime/Intl/RelativeTimeFormatConstructor.h>
|
#include <LibJS/Runtime/Intl/RelativeTimeFormatConstructor.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
namespace JS::Intl {
|
namespace JS::Intl {
|
||||||
|
|
||||||
|
@ -26,8 +26,8 @@
|
|||||||
#include <LibJS/Runtime/StringPrototype.h>
|
#include <LibJS/Runtime/StringPrototype.h>
|
||||||
#include <LibJS/Runtime/Utf16String.h>
|
#include <LibJS/Runtime/Utf16String.h>
|
||||||
#include <LibJS/Runtime/Value.h>
|
#include <LibJS/Runtime/Value.h>
|
||||||
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibUnicode/CharacterTypes.h>
|
#include <LibUnicode/CharacterTypes.h>
|
||||||
#include <LibUnicode/Locale.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
namespace JS {
|
namespace JS {
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
#include <AK/Array.h>
|
#include <AK/Array.h>
|
||||||
#include <AK/StringBuilder.h>
|
#include <AK/StringBuilder.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibUnicode/NumberFormat.h>
|
#include <LibLocale/NumberFormat.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
@ -12,8 +12,8 @@
|
|||||||
#include <AK/Time.h>
|
#include <AK/Time.h>
|
||||||
#include <AK/Types.h>
|
#include <AK/Types.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
|
#include <LibLocale/Forward.h>
|
||||||
#include <LibTimeZone/TimeZone.h>
|
#include <LibTimeZone/TimeZone.h>
|
||||||
#include <LibUnicode/Forward.h>
|
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
|
|
63
Userland/Libraries/LibLocale/Forward.h
Normal file
63
Userland/Libraries/LibLocale/Forward.h
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2021-2022, Tim Flynn <trflynn89@serenityos.org>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <AK/Types.h>
|
||||||
|
|
||||||
|
namespace Locale {
|
||||||
|
|
||||||
|
enum class CalendarFormatType : u8;
|
||||||
|
enum class CalendarPatternStyle : u8;
|
||||||
|
enum class CalendarSymbol : u8;
|
||||||
|
enum class CharacterOrder : u8;
|
||||||
|
enum class CompactNumberFormatType : u8;
|
||||||
|
enum class Condition : u8;
|
||||||
|
enum class Currency : u16;
|
||||||
|
enum class DateField : u8;
|
||||||
|
enum class DayPeriod : u8;
|
||||||
|
enum class Era : u8;
|
||||||
|
enum class FirstDayRegion : u8;
|
||||||
|
enum class HourCycle : u8;
|
||||||
|
enum class HourCycleRegion : u16;
|
||||||
|
enum class Key : u8;
|
||||||
|
enum class KeywordCalendar : u8;
|
||||||
|
enum class KeywordCollation : u8;
|
||||||
|
enum class KeywordColCaseFirst : u8;
|
||||||
|
enum class KeywordColNumeric : u8;
|
||||||
|
enum class KeywordHours : u8;
|
||||||
|
enum class KeywordNumbers : u8;
|
||||||
|
enum class Language : u16;
|
||||||
|
enum class ListPatternType : u8;
|
||||||
|
enum class Locale : u16;
|
||||||
|
enum class MinimumDaysRegion : u8;
|
||||||
|
enum class Month : u8;
|
||||||
|
enum class NumericSymbol : u8;
|
||||||
|
enum class PluralCategory : u8;
|
||||||
|
enum class ScriptTag : u8;
|
||||||
|
enum class StandardNumberFormatType : u8;
|
||||||
|
enum class Style : u8;
|
||||||
|
enum class Territory : u8;
|
||||||
|
enum class Weekday : u8;
|
||||||
|
enum class WeekendEndRegion : u8;
|
||||||
|
enum class WeekendStartRegion : u8;
|
||||||
|
|
||||||
|
struct CalendarFormat;
|
||||||
|
struct CalendarPattern;
|
||||||
|
struct CalendarRangePattern;
|
||||||
|
struct Keyword;
|
||||||
|
struct LanguageID;
|
||||||
|
struct ListPatterns;
|
||||||
|
struct LocaleExtension;
|
||||||
|
struct LocaleID;
|
||||||
|
struct NumberFormat;
|
||||||
|
struct NumberGroupings;
|
||||||
|
struct OtherExtension;
|
||||||
|
struct PluralOperands;
|
||||||
|
struct TransformedExtension;
|
||||||
|
struct TransformedField;
|
||||||
|
|
||||||
|
}
|
@ -8,9 +8,9 @@
|
|||||||
#include <AK/GenericLexer.h>
|
#include <AK/GenericLexer.h>
|
||||||
#include <AK/QuickSort.h>
|
#include <AK/QuickSort.h>
|
||||||
#include <AK/StringBuilder.h>
|
#include <AK/StringBuilder.h>
|
||||||
|
#include <LibLocale/DateTimeFormat.h>
|
||||||
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibUnicode/CharacterTypes.h>
|
#include <LibUnicode/CharacterTypes.h>
|
||||||
#include <LibUnicode/DateTimeFormat.h>
|
|
||||||
#include <LibUnicode/Locale.h>
|
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
|
|
@ -12,7 +12,7 @@
|
|||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <AK/Variant.h>
|
#include <AK/Variant.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
#include <LibUnicode/Forward.h>
|
#include <LibLocale/Forward.h>
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
|
|
@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
#include <AK/CharacterTypes.h>
|
#include <AK/CharacterTypes.h>
|
||||||
#include <AK/Utf8View.h>
|
#include <AK/Utf8View.h>
|
||||||
|
#include <LibLocale/Locale.h>
|
||||||
|
#include <LibLocale/NumberFormat.h>
|
||||||
#include <LibUnicode/CharacterTypes.h>
|
#include <LibUnicode/CharacterTypes.h>
|
||||||
#include <LibUnicode/Locale.h>
|
|
||||||
#include <LibUnicode/NumberFormat.h>
|
|
||||||
|
|
||||||
#if ENABLE_UNICODE_DATA
|
#if ENABLE_UNICODE_DATA
|
||||||
# include <LibUnicode/UnicodeData.h>
|
# include <LibUnicode/UnicodeData.h>
|
@ -10,8 +10,8 @@
|
|||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
#include <LibUnicode/Forward.h>
|
#include <LibLocale/Forward.h>
|
||||||
#include <LibUnicode/PluralRules.h>
|
#include <LibLocale/PluralRules.h>
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
|
|
@ -4,7 +4,7 @@
|
|||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <LibUnicode/PluralRules.h>
|
#include <LibLocale/PluralRules.h>
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
|
|
@ -9,7 +9,7 @@
|
|||||||
#include <AK/Assertions.h>
|
#include <AK/Assertions.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <AK/Types.h>
|
#include <AK/Types.h>
|
||||||
#include <LibUnicode/Forward.h>
|
#include <LibLocale/Forward.h>
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
|
|
@ -4,7 +4,7 @@
|
|||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <LibUnicode/RelativeTimeFormat.h>
|
#include <LibLocale/RelativeTimeFormat.h>
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
|
|
@ -9,8 +9,8 @@
|
|||||||
#include <AK/Optional.h>
|
#include <AK/Optional.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
#include <LibUnicode/Forward.h>
|
#include <LibLocale/Forward.h>
|
||||||
#include <LibUnicode/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
namespace Locale {
|
namespace Locale {
|
||||||
|
|
@ -3,11 +3,11 @@ include(${SerenityOS_SOURCE_DIR}/Meta/CMake/unicode_data.cmake)
|
|||||||
set(SOURCES
|
set(SOURCES
|
||||||
CharacterTypes.cpp
|
CharacterTypes.cpp
|
||||||
CurrencyCode.cpp
|
CurrencyCode.cpp
|
||||||
DateTimeFormat.cpp
|
../LibLocale/DateTimeFormat.cpp
|
||||||
Locale.cpp
|
../LibLocale/Locale.cpp
|
||||||
NumberFormat.cpp
|
../LibLocale/NumberFormat.cpp
|
||||||
PluralRules.cpp
|
../LibLocale/PluralRules.cpp
|
||||||
RelativeTimeFormat.cpp
|
../LibLocale/RelativeTimeFormat.cpp
|
||||||
${UNICODE_DATA_SOURCES}
|
${UNICODE_DATA_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
#include <AK/Types.h>
|
#include <AK/Types.h>
|
||||||
#include <AK/Utf16View.h>
|
#include <AK/Utf16View.h>
|
||||||
#include <AK/Utf8View.h>
|
#include <AK/Utf8View.h>
|
||||||
|
#include <LibLocale/Locale.h>
|
||||||
#include <LibUnicode/CharacterTypes.h>
|
#include <LibUnicode/CharacterTypes.h>
|
||||||
#include <LibUnicode/Locale.h>
|
|
||||||
|
|
||||||
#if ENABLE_UNICODE_DATA
|
#if ENABLE_UNICODE_DATA
|
||||||
# include <LibUnicode/UnicodeData.h>
|
# include <LibUnicode/UnicodeData.h>
|
||||||
|
@ -22,57 +22,3 @@ struct CurrencyCode;
|
|||||||
struct SpecialCasing;
|
struct SpecialCasing;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Locale {
|
|
||||||
|
|
||||||
enum class CalendarFormatType : u8;
|
|
||||||
enum class CalendarPatternStyle : u8;
|
|
||||||
enum class CalendarSymbol : u8;
|
|
||||||
enum class CharacterOrder : u8;
|
|
||||||
enum class CompactNumberFormatType : u8;
|
|
||||||
enum class Condition : u8;
|
|
||||||
enum class Currency : u16;
|
|
||||||
enum class DateField : u8;
|
|
||||||
enum class DayPeriod : u8;
|
|
||||||
enum class Era : u8;
|
|
||||||
enum class FirstDayRegion : u8;
|
|
||||||
enum class HourCycle : u8;
|
|
||||||
enum class HourCycleRegion : u16;
|
|
||||||
enum class Key : u8;
|
|
||||||
enum class KeywordCalendar : u8;
|
|
||||||
enum class KeywordCollation : u8;
|
|
||||||
enum class KeywordColCaseFirst : u8;
|
|
||||||
enum class KeywordColNumeric : u8;
|
|
||||||
enum class KeywordHours : u8;
|
|
||||||
enum class KeywordNumbers : u8;
|
|
||||||
enum class Language : u16;
|
|
||||||
enum class ListPatternType : u8;
|
|
||||||
enum class Locale : u16;
|
|
||||||
enum class MinimumDaysRegion : u8;
|
|
||||||
enum class Month : u8;
|
|
||||||
enum class NumericSymbol : u8;
|
|
||||||
enum class PluralCategory : u8;
|
|
||||||
enum class ScriptTag : u8;
|
|
||||||
enum class StandardNumberFormatType : u8;
|
|
||||||
enum class Style : u8;
|
|
||||||
enum class Territory : u8;
|
|
||||||
enum class Weekday : u8;
|
|
||||||
enum class WeekendEndRegion : u8;
|
|
||||||
enum class WeekendStartRegion : u8;
|
|
||||||
|
|
||||||
struct CalendarFormat;
|
|
||||||
struct CalendarPattern;
|
|
||||||
struct CalendarRangePattern;
|
|
||||||
struct Keyword;
|
|
||||||
struct LanguageID;
|
|
||||||
struct ListPatterns;
|
|
||||||
struct LocaleExtension;
|
|
||||||
struct LocaleID;
|
|
||||||
struct NumberFormat;
|
|
||||||
struct NumberGroupings;
|
|
||||||
struct OtherExtension;
|
|
||||||
struct PluralOperands;
|
|
||||||
struct TransformedExtension;
|
|
||||||
struct TransformedField;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user