summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-09-02 12:01:10 -0400
committerTim Flynn <trflynn89@pm.me>2022-09-05 14:37:16 -0400
commitff48220dcae7109de994a727bea24a25a6649412 (patch)
tree18614d1d8f1483c1bb70cbb3f4c180da29748d57 /Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h
parent88504b89e19d1e777d3c3075487c261111f32aaf (diff)
downloadserenity-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.h8
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++]));
}