[−][src]Trait umlauts::UmlautsInplaceExt
Required methods
pub fn make_utf8_umlauts_lowercase(&mut self)
[src]
Lowercases alphabetic ASCII chars and UTF-8 umlauts.
Like make_ascii_lowercase
but it will also make utf8 umlauts lowercase:
- 'Ä' -> 'ä'
- 'Ö' -> 'ö'
- 'Ü' -> 'ü'
Examples
extern crate umlauts; use umlauts::prelude::*; let mut s = "Öl Ärmel Übermut".as_bytes().to_vec(); s.make_utf8_umlauts_lowercase(); assert_eq!("öl ärmel übermut".as_bytes(), s);
pub fn make_utf8_umlauts_uppercase(&mut self)
[src]
Upercases alphabetic ASCII chars and UTF-8 umlauts.
Like make_ascii_uppercase
but it will also make utf8 umlauts uppercase:
- 'ä' -> 'Ä'
- 'ö' -> 'Ö'
- 'ü' -> 'Ü'
Examples
extern crate umlauts; use umlauts::prelude::*; let mut s = "Öl Ärmel Übermut".as_bytes().to_vec(); s.make_utf8_umlauts_uppercase(); assert_eq!("ÖL ÄRMEL ÜBERMUT".as_bytes(), s);
pub fn make_utf8_umlauts_to_ascii(&mut self)
[src]
Converts Umlauts to ae, oe, ue, ss, ...
Maps umlauts according to DIN 5007-2:
- 'ä' -> 'ae'
- 'ö' -> 'oe'
- 'ü' -> 'ue'
- 'Ä' -> 'Ae'
- 'Ö' -> 'Oe'
- 'Ü' -> 'Ue'
- 'ß' -> 's'
This function will ignore the uppercase ß, because it can't be mapped in place due to requiring three bytes.