Defined in header <cparse/Generator.hh>
virtual std::string convertLowerCaseCamel( std::string const& base ) const noexcept;
Applies convertUpperCaseCamel and then lower-cases the first character of the result, if any.
Parameters
| Parameter | Description |
|---|---|
base | The input string. Not mutated. |
Return value
A new string. For convertLowerCaseCamel("foo_bar_baz") the result is "fooBarBaz".
If the input is empty or the composed intermediate has no first character, returns an empty string.
Exceptions
noexcept.
Notes
The first-character lower-case is applied to the intermediate result of convertUpperCaseCamel, not to base. If base starts with a separator, the intermediate's first character comes from what followed the separator — that is the character lower-cased.
Example
convertLowerCaseCamel("state_machine") // → "stateMachine"
convertLowerCaseCamel("__leading") // → "leading"
convertLowerCaseCamel("") // → ""
See also
- Generator::convertUpperCaseCamel — the base transformation.

