1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 04:44:58 +00:00

LibUnicode: Extract cldr-numbers dataset from CLDR database

This dataset holds the values needed to handle DisplayNames.prototype.of
with a type option of "currency".
This commit is contained in:
Timothy Flynn 2021-08-26 08:31:31 -04:00 committed by Linus Groh
parent a029e3d38a
commit 297db925fc
2 changed files with 15 additions and 3 deletions

View file

@ -437,11 +437,13 @@ int main(int argc, char** argv)
char const* generated_header_path = nullptr;
char const* generated_implementation_path = nullptr;
char const* locale_names_path = nullptr;
char const* numbers_path = nullptr;
Core::ArgsParser args_parser;
args_parser.add_option(generated_header_path, "Path to the Unicode locale header file to generate", "generated-header-path", 'h', "generated-header-path");
args_parser.add_option(generated_implementation_path, "Path to the Unicode locale implementation file to generate", "generated-implementation-path", 'c', "generated-implementation-path");
args_parser.add_option(locale_names_path, "Path to cldr-localenames directory", "locale-names-path", 'l', "locale-names-path");
args_parser.add_option(numbers_path, "Path to cldr-numbers directory", "numbers-path", 'n', "numbers-path");
args_parser.parse(argc, argv);
auto open_file = [&](StringView path, StringView flags, Core::OpenMode mode = Core::OpenMode::ReadOnly) {