Convert Case Extras
Extra patterns, boundaries, cases, and utilities on top of convert_case.
Changelog
convert-case-extras v0.2.0
is_case(s, case): checks if a string matches a specified caseCaseDetector: a builder-pattern struct for detecting which cases a string matchesCaseDetector::new(): creates an empty detectorCaseDetector::default(): creates a detector with all standard cases.add_case()/.add_cases(): add cases to the detection pool.remove_case()/.remove_cases(): remove cases from the pool.detect_cases(s): returns all cases from the pool that match the string
tr# convert-case-extras v0.1.0
case::TOGGLE: words start with lower case and remainder are upper casecase::ALTERNATING: words alternate between upper and lower caserandomfeature:case::RANDOM: letters are randomly lower case or upper casecase::PSEUDO_RANDOM: pairs of letters are randomly lower-upper, or upper-lower