/* * Copyright (c) 2024, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace Unicode { enum class LanguageDisplay { Standard, Dialect, }; LanguageDisplay language_display_from_string(StringView language_display); StringView language_display_to_string(LanguageDisplay language_display); Optional language_display_name(StringView locale, StringView language, LanguageDisplay); Optional region_display_name(StringView locale, StringView region); Optional script_display_name(StringView locale, StringView script); Optional calendar_display_name(StringView locale, StringView calendar); Optional date_time_field_display_name(StringView locale, StringView field, Style); Optional time_zone_display_name(StringView locale, StringView time_zone_identifier, TimeZoneOffset::InDST, double time); Optional currency_display_name(StringView locale, StringView currency, Style); Optional currency_numeric_display_name(StringView locale, StringView currency); }