takes a camel cased identifier name and returns an underscore separated name.
takes a camel cased identifier name and returns an underscore separated name.
for example:
camelToUnderscores("ThisIsA1Test") == "this_is_a_1_test"
copied from https://gist.github.com/sidharthkuruvila/3154845
returns a full type name for a type
returns a simple type name for a type
returns a type name prefix for a type
returns this string with first character converted to lower case.
returns this string with first character converted to lower case. if the first character of the string is lower case, the string is returned unchanged.
based on function capitalize in scala library StringLike.scala
takes an underscore separated identifier name and returns a camel cased one.
takes an underscore separated identifier name and returns a camel cased one.
for example:
underscoreToCamel("this_is_a_1_test") == "thisIsA1Test"
copied from https://gist.github.com/sidharthkuruvila/3154845
generally useful utility functions for working with strings