LowerUnderscoreNamingConvention

The lower undescore naming convetion.

Members

Functions

convert
string convert(string flattened)

Convert from foo.bar.baz to fooBarBaz

convertBack
string convertBack(string lowerUnder)

Convert from fooBarBaz to foo.bar.baz

Examples

static assert(LowerUnderscoreNamingConvention().convert("foo.bar.baz") == "foo_bar_baz");
static assert(LowerUnderscoreNamingConvention().convertBack("foo_bar_baz") == "foo.bar.baz");
static assert(LowerUnderscoreNamingConvention().convert("foo") == "foo");
static assert(LowerUnderscoreNamingConvention().convertBack("foo") == "foo");

Meta