PascalCaseNamingConvention

The pascal case naming convetion.

Members

Functions

convert
string convert(string flattened)

Convert from foo.bar.baz to fooBarBaz

convertBack
string convertBack(string pascalCase)

Convert from fooBarBaz to foo.bar.baz

Examples

static assert(PascalCaseNamingConvention().convert("foo.bar.baz") == "FooBarBaz");
static assert(PascalCaseNamingConvention().convertBack("FooBarBaz") == "foo.bar.baz");
static assert(PascalCaseNamingConvention().convert("foo") == "Foo");
static assert(PascalCaseNamingConvention().convertBack("Foo") == "foo");

Meta