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() -> Box<DecomposingNormalizer>
pub fn create_nfd() -> Box<DecomposingNormalizer>
Construct a new DecomposingNormalizer instance for NFD using compiled data.
sourcepub fn create_nfd_with_provider(
provider: &DataProvider,
) -> Result<Box<DecomposingNormalizer>, DataError>
pub fn create_nfd_with_provider( provider: &DataProvider, ) -> Result<Box<DecomposingNormalizer>, DataError>
Construct a new DecomposingNormalizer instance for NFD using a particular data source.
sourcepub fn create_nfkd() -> Box<DecomposingNormalizer>
pub fn create_nfkd() -> Box<DecomposingNormalizer>
Construct a new DecomposingNormalizer instance for NFKD using compiled data.
sourcepub fn create_nfkd_with_provider(
provider: &DataProvider,
) -> Result<Box<DecomposingNormalizer>, DataError>
pub fn create_nfkd_with_provider( provider: &DataProvider, ) -> Result<Box<DecomposingNormalizer>, DataError>
Construct a new DecomposingNormalizer instance for NFKD using a particular data source.
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
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>
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>
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