Struct icu_capi::normalizer::ffi::DecomposingNormalizer
source · pub struct DecomposingNormalizer(pub DecomposingNormalizer);
Tuple Fields§
§0: DecomposingNormalizer
Implementations§
source§impl DecomposingNormalizer
impl DecomposingNormalizer
sourcepub fn create_nfd(
provider: &DataProvider,
) -> Result<Box<DecomposingNormalizer>, DataError>
pub fn create_nfd( provider: &DataProvider, ) -> Result<Box<DecomposingNormalizer>, DataError>
Construct a new DecomposingNormalizer instance for NFD
sourcepub fn create_nfkd(
provider: &DataProvider,
) -> Result<Box<DecomposingNormalizer>, DataError>
pub fn create_nfkd( provider: &DataProvider, ) -> Result<Box<DecomposingNormalizer>, DataError>
Construct a new DecomposingNormalizer instance for NFKD
sourcepub fn normalize(&self, s: &DiplomatStr, write: &mut DiplomatWrite)
pub fn normalize(&self, s: &DiplomatStr, write: &mut DiplomatWrite)
Normalize a string
Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according to the WHATWG Encoding Standard.
sourcepub fn is_normalized(&self, s: &DiplomatStr) -> bool
pub fn is_normalized(&self, s: &DiplomatStr) -> bool
Check if a string is normalized
Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according to the WHATWG Encoding Standard.
sourcepub fn is_normalized_utf16(&self, s: &DiplomatStr16) -> bool
pub fn is_normalized_utf16(&self, s: &DiplomatStr16) -> bool
Check if a string is normalized
Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according to the WHATWG Encoding Standard.
sourcepub fn is_normalized_up_to(&self, s: &DiplomatStr) -> usize
pub fn is_normalized_up_to(&self, s: &DiplomatStr) -> usize
Return the index a slice of potentially-invalid UTF-8 is normalized up to
sourcepub fn is_normalized_utf16_up_to(&self, s: &DiplomatStr16) -> usize
pub fn is_normalized_utf16_up_to(&self, s: &DiplomatStr16) -> usize
Return the index a slice of potentially-invalid UTF-8 is normalized up to
Auto Trait Implementations§
impl Freeze for DecomposingNormalizer
impl RefUnwindSafe for DecomposingNormalizer
impl Send for DecomposingNormalizer
impl Sync for DecomposingNormalizer
impl Unpin for DecomposingNormalizer
impl UnwindSafe for DecomposingNormalizer
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more