[][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

Example

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