camelCaseToSnakeCase static method

String camelCaseToSnakeCase(
  1. String input
)

Convert camel case to snake case.

  • This is useful when converting a class field name to a suitable SQL column name.

Implementation

static String camelCaseToSnakeCase(String input)
{
  return new _CamelCaseToSnakeCase().convert(input);
}