Function cruet::case::camel::is_camel_case
source · Expand description
Determines if a &str
is camelCase bool``
use cruet::case::is_camel_case;
assert!(is_camel_case("foo"));
assert!(is_camel_case("fooBarIsAReallyReally3LongString"));
assert!(is_camel_case("fooBarIsAReallyReallyLongString"));
assert_eq!(is_camel_case("Foo"));
assert_eq!(is_camel_case("foo-bar-string-that-is-really-really-long"));
assert_eq!(is_camel_case("FooBarIsAReallyReallyLongString"));
assert_eq!(is_camel_case("FOO_BAR_STRING_THAT_IS_REALLY_REALLY_LONG"));
assert_eq!(is_camel_case("foo_bar_string_that_is_really_really_long"));
assert_eq!(is_camel_case("Foo bar string that is really really long"));
assert_eq!(is_camel_case("Foo Bar Is A Really Really Long String"));