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!;
// Use universal function call syntax to avoid name collision with `str`'s unstable methods. These
// two methods will may be deprecated as `str.to_uppercase()` and `str.to_lowercase()` stabilize.
assert_eq!;
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