pub struct NfkcNormalizer;Expand description
NFKC normalizer: Compatibility Decomposition, followed by Canonical Composition.
Implementations§
Source§impl NfkcNormalizer
impl NfkcNormalizer
Sourcepub fn quick_check(&self, input: &str) -> IsNormalized
pub fn quick_check(&self, input: &str) -> IsNormalized
Run the NFKC quick-check algorithm on input.
Sourcepub fn normalize<'a>(&self, input: &'a str) -> Cow<'a, str>
pub fn normalize<'a>(&self, input: &'a str) -> Cow<'a, str>
Normalize the input string to NFKC form.
Returns Cow::Borrowed if the input is already in NFKC.
Sourcepub fn normalize_to(&self, input: &str, out: &mut String) -> bool
pub fn normalize_to(&self, input: &str, out: &mut String) -> bool
Normalize the input string to NFKC form, appending to out.
Returns true if the input was already normalized (nothing was modified).
Sourcepub fn is_normalized(&self, input: &str) -> bool
pub fn is_normalized(&self, input: &str) -> bool
Check if the input is already in NFKC form.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NfkcNormalizer
impl RefUnwindSafe for NfkcNormalizer
impl Send for NfkcNormalizer
impl Sync for NfkcNormalizer
impl Unpin for NfkcNormalizer
impl UnsafeUnpin for NfkcNormalizer
impl UnwindSafe for NfkcNormalizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more