Skip to main content

camel_case_to_hyphen_checked

Function camel_case_to_hyphen_checked 

Source
pub fn camel_case_to_hyphen_checked(
    text: &str,
    replacement: &str,
) -> Result<String>
Expand description

camel_case_to_hyphen with music21’s checks on the replacement: one character, and not a capital, which the result would lose.

§Errors

A replacement of more or less than one character, or a capital.