Struct icu_casemap::internals::ContextIterator

source ·
pub(crate) struct ContextIterator<'a> {
    before: &'a str,
    after: &'a str,
}

Fields§

§before: &'a str§after: &'a str

Implementations§

source§

impl<'a> ContextIterator<'a>

source

pub fn new(before: &'a str, char_and_after: &'a str) -> Self

source

fn add_greek_diacritics(&self, diacritics: GreekDiacritics) -> GreekDiacritics

source

fn preceded_by_greek_letter(&self) -> bool

source

fn preceding_greek_vowel_diacritics( &self, ) -> Option<GreekCombiningCharacterSequenceDiacritics>

source

fn preceded_by_soft_dotted(&self, mapping: &CaseMapV1<'_>) -> bool

source

fn preceded_by_capital_i<const I_MUST_NOT_START_STRING: bool>( &self, mapping: &CaseMapV1<'_>, ) -> bool

Checks if the preceding character is a capital I, allowing for non-Above combining characters in between.

If I_MUST_NOT_START_STRING is true, additionally will require that the capital I does not start the string

source

fn preceded_by_cased_letter(&self, mapping: &CaseMapV1<'_>) -> bool

source

fn followed_by_cased_letter(&self, mapping: &CaseMapV1<'_>) -> bool

source

fn followed_by_more_above(&self, mapping: &CaseMapV1<'_>) -> bool

source

fn followed_by_dot_above(&self, mapping: &CaseMapV1<'_>) -> bool

source

fn is_dutch_ij_pair_at_beginning(&self, mapping: &CaseMapV1<'_>) -> bool

Checks the preceding and surrounding context of a j or J and returns true if it is preceded by an i or I at the start of the string. If one has an acute accent, both must have the accent for this to return true. No other accents are handled.

Auto Trait Implementations§

§

impl<'a> Freeze for ContextIterator<'a>

§

impl<'a> RefUnwindSafe for ContextIterator<'a>

§

impl<'a> Send for ContextIterator<'a>

§

impl<'a> Sync for ContextIterator<'a>

§

impl<'a> Unpin for ContextIterator<'a>

§

impl<'a> UnwindSafe for ContextIterator<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T