Function inflections::case::is_title_case[][src]

pub fn is_title_case(string: &str) -> bool
Expand description

Check to see if a string is Title Case.

Example

assert_eq!(is_title_case("Hello World"), true);
assert_eq!(is_title_case("hello world"), false);
assert_eq!(is_title_case("HELLO WORLD"), false);
assert_eq!(is_title_case("helloWorld"), false);
assert_eq!(is_title_case("HelloWorld"), false);
assert_eq!(is_title_case("hello-world"), false);
assert_eq!(is_title_case("Hello-World"), false);
assert_eq!(is_title_case("hello_world"), false);
assert_eq!(is_title_case("HELLO_WORLD"), false);