From 2fd776dcd3a9d54d8e066f147d345c44de6b22bd Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Thu, 25 Jul 2024 08:55:35 -0700 Subject: [PATCH 1/7] Add references to LocaleCanonicalizer --- components/locale_core/src/langid.rs | 3 ++- components/locale_core/src/locale.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/locale_core/src/langid.rs b/components/locale_core/src/langid.rs index be41a39b96b..874e0294960 100644 --- a/components/locale_core/src/langid.rs +++ b/components/locale_core/src/langid.rs @@ -27,7 +27,8 @@ use writeable::Writeable; /// `_` separators to `-` and adjusting casing to conform to the Unicode standard. /// /// Any bogus subtags will cause the parsing to fail with an error. -/// No subtag validation is performed. +/// +/// No subtag validation or alias resolution is performed; use `LocaleCanonicalizer`. /// /// # Ordering /// diff --git a/components/locale_core/src/locale.rs b/components/locale_core/src/locale.rs index cefd77c8456..3f516b49131 100644 --- a/components/locale_core/src/locale.rs +++ b/components/locale_core/src/locale.rs @@ -35,7 +35,7 @@ use writeable::Writeable; /// /// Any bogus subtags will cause the parsing to fail with an error. /// -/// No subtag validation or alias resolution is performed. +/// No subtag validation or alias resolution is performed; use `LocaleCanonicalizer`. /// /// # Ordering /// From bb04f8456295c26082bfb44561e2cb3cd35b62ab Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Thu, 22 Aug 2024 15:41:32 -0700 Subject: [PATCH 2/7] Update langid.rs --- components/locale_core/src/langid.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/locale_core/src/langid.rs b/components/locale_core/src/langid.rs index 874e0294960..fd82b7bc3d3 100644 --- a/components/locale_core/src/langid.rs +++ b/components/locale_core/src/langid.rs @@ -26,9 +26,10 @@ use writeable::Writeable; /// At the moment parsing normalizes a well-formed language identifier converting /// `_` separators to `-` and adjusting casing to conform to the Unicode standard. /// -/// Any bogus subtags will cause the parsing to fail with an error. +/// Any syntactically invalid subtags will cause the parsing to fail with an error. /// -/// No subtag validation or alias resolution is performed; use `LocaleCanonicalizer`. +/// This operation normalizes syntax only. No legacy subtag replacements is performed. +/// For data validation and subtag canonicalization, see `LocaleCanonicalizer`. /// /// # Ordering /// From 4d7c5eb83d92acd4aba26328a5336ba0daeaa2ff Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Thu, 22 Aug 2024 15:41:48 -0700 Subject: [PATCH 3/7] Update locale.rs --- components/locale_core/src/locale.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/locale_core/src/locale.rs b/components/locale_core/src/locale.rs index 3f516b49131..9464d4d5622 100644 --- a/components/locale_core/src/locale.rs +++ b/components/locale_core/src/locale.rs @@ -33,9 +33,10 @@ use writeable::Writeable; /// At the moment parsing normalizes a well-formed locale identifier converting /// `_` separators to `-` and adjusting casing to conform to the Unicode standard. /// -/// Any bogus subtags will cause the parsing to fail with an error. +/// Any syntactically invalid subtags will cause the parsing to fail with an error. /// -/// No subtag validation or alias resolution is performed; use `LocaleCanonicalizer`. +/// This operation normalizes syntax only. No legacy subtag replacements is performed. +/// For data validation and subtag canonicalization, see `LocaleCanonicalizer`. /// /// # Ordering /// From 01ea96be087aef313b306fd7de6e62d23f9a49b4 Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Tue, 3 Sep 2024 15:36:36 -0700 Subject: [PATCH 4/7] Update langid.rs --- components/locale_core/src/langid.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/locale_core/src/langid.rs b/components/locale_core/src/langid.rs index 7b7cddda86c..38ef47a0ba9 100644 --- a/components/locale_core/src/langid.rs +++ b/components/locale_core/src/langid.rs @@ -28,8 +28,8 @@ use writeable::Writeable; /// /// Any syntactically invalid subtags will cause the parsing to fail with an error. /// -/// This operation normalizes syntax only. No legacy subtag replacements is performed. -/// For data validation and subtag canonicalization, see `LocaleCanonicalizer`. +/// This operation normalizes syntax to be well-formed. No legacy subtag replacements is performed. +/// For validation and canonicalization, see LocaleCanonicalizer. /// /// # Ordering /// From 511987dbb41e88b40aa020244e5d75495e41292b Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Tue, 3 Sep 2024 15:36:49 -0700 Subject: [PATCH 5/7] Update locale.rs --- components/locale_core/src/locale.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/locale_core/src/locale.rs b/components/locale_core/src/locale.rs index 405951dd91b..f6cc4da1959 100644 --- a/components/locale_core/src/locale.rs +++ b/components/locale_core/src/locale.rs @@ -35,8 +35,8 @@ use writeable::Writeable; /// /// Any syntactically invalid subtags will cause the parsing to fail with an error. /// -/// This operation normalizes syntax only. No legacy subtag replacements is performed. -/// For data validation and subtag canonicalization, see `LocaleCanonicalizer`. +/// This operation normalizes syntax to be well-formed. No legacy subtag replacements is performed. +/// For validation and canonicalization, see LocaleCanonicalizer. /// /// # Ordering /// From 8d04371109b8baef23df787693b8599f696df830 Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Tue, 3 Sep 2024 15:37:29 -0700 Subject: [PATCH 6/7] Update langid.rs --- components/locale_core/src/langid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/locale_core/src/langid.rs b/components/locale_core/src/langid.rs index 38ef47a0ba9..13a18153cf2 100644 --- a/components/locale_core/src/langid.rs +++ b/components/locale_core/src/langid.rs @@ -29,7 +29,7 @@ use writeable::Writeable; /// Any syntactically invalid subtags will cause the parsing to fail with an error. /// /// This operation normalizes syntax to be well-formed. No legacy subtag replacements is performed. -/// For validation and canonicalization, see LocaleCanonicalizer. +/// For validation and canonicalization, see `LocaleCanonicalizer`. /// /// # Ordering /// From 7d74af2b01ee5325e07d3c239f840e341f03c6d5 Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Tue, 3 Sep 2024 15:37:42 -0700 Subject: [PATCH 7/7] Update locale.rs --- components/locale_core/src/locale.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/locale_core/src/locale.rs b/components/locale_core/src/locale.rs index f6cc4da1959..e70bf1a19c3 100644 --- a/components/locale_core/src/locale.rs +++ b/components/locale_core/src/locale.rs @@ -36,7 +36,7 @@ use writeable::Writeable; /// Any syntactically invalid subtags will cause the parsing to fail with an error. /// /// This operation normalizes syntax to be well-formed. No legacy subtag replacements is performed. -/// For validation and canonicalization, see LocaleCanonicalizer. +/// For validation and canonicalization, see `LocaleCanonicalizer`. /// /// # Ordering ///