mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
34
Libraries/LibUnicode/DisplayNames.h
Normal file
34
Libraries/LibUnicode/DisplayNames.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibUnicode/Locale.h>
|
||||
#include <LibUnicode/TimeZone.h>
|
||||
|
||||
namespace Unicode {
|
||||
|
||||
enum class LanguageDisplay {
|
||||
Standard,
|
||||
Dialect,
|
||||
};
|
||||
|
||||
LanguageDisplay language_display_from_string(StringView language_display);
|
||||
StringView language_display_to_string(LanguageDisplay language_display);
|
||||
|
||||
Optional<String> language_display_name(StringView locale, StringView language, LanguageDisplay);
|
||||
Optional<String> region_display_name(StringView locale, StringView region);
|
||||
Optional<String> script_display_name(StringView locale, StringView script);
|
||||
Optional<String> calendar_display_name(StringView locale, StringView calendar);
|
||||
Optional<String> date_time_field_display_name(StringView locale, StringView field, Style);
|
||||
Optional<String> time_zone_display_name(StringView locale, StringView time_zone_identifier, TimeZoneOffset::InDST, double time);
|
||||
Optional<String> currency_display_name(StringView locale, StringView currency, Style);
|
||||
Optional<String> currency_numeric_display_name(StringView locale, StringView currency);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue