Names constructor

Names(
  1. String raw
)

Creates snake_case, PascalCase, and camelCase variants from raw.

Throws a FormatException when raw is empty after normalization or when the normalized value starts with a number.

Implementation

Names(String raw)
    : snake = toSnakeCase(raw),
      pascal = toPascalCase(raw),
      camel = toCamelCase(raw);