Make normalize_utf8_cow public

This commit is contained in:
Steven Roose 2023-02-26 18:36:09 +00:00
parent 89bf46164a
commit 6b79d78c80
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ impl Mnemonic {
/// can be avoided for languages without special UTF8 characters.
#[inline]
#[cfg(feature = "std")]
fn normalize_utf8_cow<'a>(cow: &mut Cow<'a, str>) {
pub fn normalize_utf8_cow<'a>(cow: &mut Cow<'a, str>) {
let is_nfkd = unicode_normalization::is_nfkd_quick(cow.as_ref().chars());
if is_nfkd != unicode_normalization::IsNormalized::Yes {
*cow = Cow::Owned(cow.as_ref().nfkd().to_string());