CharCaseExt

Trait CharCaseExt 

Source
pub trait CharCaseExt: Sealed {
    // Required methods
    fn to_mono_lowercase(self) -> char;
    fn to_simple_or_ascii_fold_case(self) -> char;
    fn to_simple_fold_case(self) -> char;
    fn to_simple_fold_case_unicase(self) -> char;
    fn to_simple_fold_case_map(self) -> char;
}

Required Methods§

Source

fn to_mono_lowercase(self) -> char

The only multi-char lowercase mapping is ‘İ’ -> “i\u{307}”, we just ignore the ‘\u{307}’.

See mono lowercase for details.

Source

fn to_simple_or_ascii_fold_case(self) -> char

A convenient method for feature-gated case folding. If case-fold feature is enabled, it uses simple case folding; otherwise it uses to_ascii_lowercase().

Source

fn to_simple_fold_case(self) -> char

Available on crate feature case-fold only.

See case folding for details.

Source

fn to_simple_fold_case_unicase(self) -> char

Available on crate feature bench only.

See case folding for details.

Source

fn to_simple_fold_case_map(self) -> char

Available on crate feature bench only.

See case folding for details.

Implementations on Foreign Types§

Source§

impl CharCaseExt for char

Source§

fn to_mono_lowercase(self) -> char

Source§

fn to_simple_or_ascii_fold_case(self) -> char

Source§

fn to_simple_fold_case(self) -> char

Available on crate feature case-fold only.
Source§

fn to_simple_fold_case_unicase(self) -> char

Available on crate feature bench only.
Source§

fn to_simple_fold_case_map(self) -> char

Available on crate feature bench only.

Implementors§