case
This is a set of letter case string helpers.
Installation
If you're using Cargo, just add case
to your Cargo.toml
:
[]
= "0.0.1"
Usage
extern crate case;
use CaseExt;
// Snake case operations:
assert_eq!;
assert_eq!;
assert_eq!;
// Camel case operations:
assert_eq!;
// Universal operations:
assert_eq!;
To-do
to_human
/to_human_lowercase
: convert underscores to spaces and optionally capitalize the first characterto_title
: convert underscores to spaces and capitalize each word's first character