Add an unusual-conversion example to to_uppercase
Like how to_lowercase has ὈΔΥΣΣΕΎΣ.
This commit is contained in:
parent
37ff5d388f
commit
dfd9d0429c
1 changed files with 7 additions and 0 deletions
|
|
@ -431,6 +431,13 @@ impl str {
|
|||
///
|
||||
/// assert_eq!(new_year, new_year.to_uppercase());
|
||||
/// ```
|
||||
///
|
||||
/// One character can become multiple:
|
||||
/// ```
|
||||
/// let s = "tschüß";
|
||||
///
|
||||
/// assert_eq!("TSCHÜSS", s.to_uppercase());
|
||||
/// ```
|
||||
#[stable(feature = "unicode_case_mapping", since = "1.2.0")]
|
||||
pub fn to_uppercase(&self) -> String {
|
||||
let mut s = String::with_capacity(self.len());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue