pub fn camel_case_until(s: &str) -> StrIndex
Expand description
Returns the index of the character after the first camel-case component of s
.
assert_eq!(camel_case_until("AbcDef"), StrIndex::new(6, 6));
assert_eq!(camel_case_until("ABCD"), StrIndex::new(0, 0));
assert_eq!(camel_case_until("AbcDD"), StrIndex::new(3, 3));
assert_eq!(camel_case_until("Abc\u{f6}\u{f6}DD"), StrIndex::new(5, 7));