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

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: &str - The string to decapitalize.
  • rest_to_lower: &bool - 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"