mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-12 22:22:55 +00:00
LibUnicode: Parse and generate time zone names in long and short form
This commit is contained in:
parent
2bbf8aa24c
commit
b76e44f66f
Notes:
sideshowbarker
2024-07-17 23:05:10 +09:00
Author: https://github.com/trflynn89
Commit: b76e44f66f
Pull-request: https://github.com/SerenityOS/serenity/pull/11184
4 changed files with 208 additions and 2 deletions
|
@ -302,7 +302,7 @@ template<typename LocalesType, typename ListFormatter>
|
|||
void generate_mapping(SourceGenerator& generator, LocalesType const& locales, StringView type, StringView name, StringView format, ListFormatter&& format_list)
|
||||
{
|
||||
auto format_mapping_name = [](StringView format, StringView name) {
|
||||
auto mapping_name = name.to_lowercase_string().replace("-"sv, "_"sv, true);
|
||||
auto mapping_name = name.to_lowercase_string().replace("-"sv, "_"sv, true).replace("/"sv, "_"sv, true);
|
||||
return String::formatted(format, mapping_name);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue