diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-09-02 12:01:10 -0400 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-09-05 14:37:16 -0400 |
commit | ff48220dcae7109de994a727bea24a25a6649412 (patch) | |
tree | 18614d1d8f1483c1bb70cbb3f4c180da29748d57 /Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h | |
parent | 88504b89e19d1e777d3c3075487c261111f32aaf (diff) | |
download | serenity-ff48220dcae7109de994a727bea24a25a6649412.zip |
Userland: Move files destined for LibLocale to the Locale namespace
Diffstat (limited to 'Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h index b4d38dfb6c..75aafd5fa0 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h +++ b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h @@ -285,7 +285,7 @@ struct CanonicalLanguageID { VERIFY(!segments.is_empty()); size_t index = 0; - if (Unicode::is_unicode_language_subtag(segments[index])) { + if (Locale::is_unicode_language_subtag(segments[index])) { language_id.language = unique_strings.ensure(segments[index]); if (segments.size() == ++index) return language_id; @@ -293,20 +293,20 @@ struct CanonicalLanguageID { return Error::from_string_literal("Expected language subtag"); } - if (Unicode::is_unicode_script_subtag(segments[index])) { + if (Locale::is_unicode_script_subtag(segments[index])) { language_id.script = unique_strings.ensure(segments[index]); if (segments.size() == ++index) return language_id; } - if (Unicode::is_unicode_region_subtag(segments[index])) { + if (Locale::is_unicode_region_subtag(segments[index])) { language_id.region = unique_strings.ensure(segments[index]); if (segments.size() == ++index) return language_id; } while (index < segments.size()) { - if (!Unicode::is_unicode_variant_subtag(segments[index])) + if (!Locale::is_unicode_variant_subtag(segments[index])) return Error::from_string_literal("Expected variant subtag"); language_id.variants.append(unique_strings.ensure(segments[index++])); } |