Make normalize_utf8_cow public
This commit is contained in:
parent
89bf46164a
commit
6b79d78c80
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue