| Crates.io | capitalize |
| lib.rs | capitalize |
| version | 0.3.4 |
| created_at | 2022-03-14 15:08:40.75009+00 |
| updated_at | 2024-04-22 00:45:33.561326+00 |
| description | Change first character to upper case and the rest to lower case, and other common alternatives |
| homepage | |
| repository | https://github.com/jhg/capitalize-rs |
| max_upload_size | |
| id | 549885 |
| size | 13,605 |
First letter to uppercase, the rest to lowercase. And other common alternatives.
Extensively tested and optimized. Forbidden unsafe in the whole crate.
use capitalize::Capitalize;
assert_eq!("hello ✨ world".capitalize(), "Hello ✨ world");
Behavior is like Python's str.capitalize, read capitalize reference for details.
Languages tested: