pub fn is_class_case(test_string: &str) -> boolExpand description
Determines if a &str is ClassCase bool
Unlike cruet::case::is_class_case, this function does not
require the string to be in singular form.
use mago_casing::is_class_case;
assert!(is_class_case("Foo"));
assert!(is_class_case("FooBarIsAReallyReallyLongString"));
assert!(is_class_case("FooBarIsAReallyReallyLongStrings"));
assert!(is_class_case("UInt"));
assert!(is_class_case("Uint"));
assert!(is_class_case("Http2Client"));
assert!(is_class_case("Fl3xxSomething"));
assert!(is_class_case("IsUT8Test"));
assert!(is_class_case("HTTP2Client"));
assert!(!is_class_case("foo"));
assert!(!is_class_case("foo-bar-string-that-is-really-really-long"));
assert!(!is_class_case("foo_bar_is_a_really_really_long_strings"));
assert!(!is_class_case("fooBarIsAReallyReallyLongString"));
assert!(!is_class_case("FOO_BAR_STRING_THAT_IS_REALLY_REALLY_LONG"));
assert!(!is_class_case("foo_bar_string_that_is_really_really_long"));
assert!(!is_class_case("Foo bar string that is really really long"));
assert!(!is_class_case("Foo Bar Is A Really Really Long String"));