[][src]Function voca_rs::case::decapitalize

pub fn decapitalize(subject: &str, rest_to_lower: bool) -> String

Converts the first character of subject to lower case. If restToLower is true, convert the rest of subject to lower case.

Arguments

  • subject - The string to decapitalize.
  • rest_to_lower - Convert the rest of subject to lower case.

Example

use voca_rs::*;
case::decapitalize("Green", true);
// => "green"
case::decapitalize("Say Hello to ME", false);
// => "say Hello to ME"