4 releases

0.2.2 Jul 26, 2024
0.2.1 Jan 7, 2024
0.2.0 Jan 7, 2024
0.1.0 May 11, 2023

#838 in Text processing

Download history 143/week @ 2024-07-22 32/week @ 2024-07-29 8/week @ 2024-08-19 15/week @ 2024-09-02 1/week @ 2024-09-09 17/week @ 2024-09-16 139/week @ 2024-09-23 154/week @ 2024-09-30 112/week @ 2024-10-07 87/week @ 2024-10-14 78/week @ 2024-10-21 88/week @ 2024-10-28 73/week @ 2024-11-04

326 downloads per month
Used in xpg

MIT license

4KB

This is the long-awaited Rust crate that solves the problem of uppercasing the first letter of a string in Rust.

Full disclosure: this solution was shamelessly lifted from the leading response over on StackOverflow by Shepmaster.

use ucfirst::ucfirst;

assert_eq!(ucfirst("apple"), "Apple");

See also the ccase CLI utility and convert_case library crates.

No runtime deps