list of name separated with white-space
No means function camel case and Yes means object camel case
the a camel case name
Examples: takeName and camelName
string name; auto some_description = "This is some description."; takeName(name, some_description); assert(name == "description"); assert(name.camelName == "description"); assert(name.camelName(Yes.BigCamel) == "Description"); takeName(name, some_description); assert(name == "some description"); assert(name.camelName == "someDescription"); assert(name.camelName(Yes.BigCamel) == "SomeDescription"); takeName(name, some_description); assert(name == "is some description"); assert(name.camelName == "isSomeDescription"); assert(name.camelName(Yes.BigCamel) == "IsSomeDescription"); takeName(name, some_description); assert(name == "This is some description"); assert(name.camelName == "thisIsSomeDescription"); assert(name.camelName(Yes.BigCamel) == "ThisIsSomeDescription");
Test of camelName with trailing white space
string name = " This is some description "; assert(name.camelName == "thisIsSomeDescription"); assert(name.camelName(Yes.BigCamel) == "ThisIsSomeDescription"); name = " This is some description . "; assert(name.camelName == "thisIsSomeDescription"); assert(name.camelName(Yes.BigCamel) == "ThisIsSomeDescription"); name = " the client is connected success fully "; assert(name.camelName == "theClientIsConnectedSuccessFully"); assert(name.camelName(Yes.BigCamel) == "TheClientIsConnectedSuccessFully");