Function inflections::case::is_camel_case[][src]

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

Check to see if a string is camelCase.

Example

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