7 releases
0.3.4 | Apr 22, 2024 |
---|---|
0.3.3 | Apr 21, 2024 |
0.2.0 | Apr 17, 2024 |
0.1.0 | Mar 14, 2022 |
#218 in Text processing
4,767 downloads per month
Used in heraclitus-compiler
12KB
123 lines
Capitalize
First letter to uppercase, the rest to lowercase. And other common alternatives.
Extensively tested and optimized. Forbidden unsafe
in the whole crate.
Examples
use capitalize::Capitalize;
assert_eq!("hello ✨ world".capitalize(), "Hello ✨ world");
Behavior is like Python's str.capitalize
, read capitalize
reference for details.
Extensively Tested
Languages tested:
- English
- Spanish
- German
- Turkish
- French
- Russian
- Ukrainian
- Greek
- Chinese
- Arabic
- Hebrew
- Korean
- Japanese
- Thai
- Hindi
- Bulgarian
- Serbian
- Macedonian
- Polish
- Czech
- Slovak
- Croatian
- Icelandic
- Armenian
- Albanian
- Mongolian
- Coptic