1 unstable release
0.1.0 | Mar 14, 2022 |
---|
#1390 in Text processing
226 downloads per month
Used in heraclitus-compiler
3KB
Capitalize
Change first character to upper case and the rest to lower case.
Only affects Unicode characters equivalent in ASCII. Capitalize
is implemented for all types that implement AsRef<str>
.
Example
use capitalize::Capitalize;
assert_eq!(
"heLLo 😊 World!".capitalize(),
String::from("Hello 😊 world!")
);