toCamelCase

string
toCamelCase
@property pure @trusted
(
in string str
,
bool first_capitalize = true
)

Examples

1 assertEq( "some_class".toCamelCase, "SomeClass" );
2 assertEq( "_some_class".toCamelCase, "SomeClass" );
3 assertEq( "some_func".toCamelCase(false), "someFunc" );
4 assertEq( "_some_func".toCamelCase(false), "someFunc" );
5 assertEq( "a_r_b".toCamelCase, "ARB" );
6 assertEq( toCamelCase( "program_build" ), "ProgramBuild" );
7 assertEq( toCamelCase( "program__build" ), "ProgramBuild" );
8 
9 assertEq( toCamelCase( "program__build", false ), toCamelCaseBySep( "program__build", "_", false ) );

Meta