From the docs:
That is, “HelloWorld” is segmented Hello|World whereas “XMLHttpRequest” is segmented XML|Http|Request.
I have identifiers with single character words in them. I'd love it if they were snake_cased as separate words, e.g.:
assert_eq!("ABCD".to_snake_case_from_pascal_case_strict() == "a_b_c_d")
assert_eq!("ABCcD".to_snake_case_from_pascal_case_strict() == "a_b_cc_d")
This would be the exact inverse of to_pascal_case() for snake_case text, i.e.:
assert_eq!(text.to_snake_case().to_pascal_case().to_snake_case_from_pascal_case_strict() == text.to_snake_case())
Plaground link