toCaseOfLocale method

String toCaseOfLocale(
  1. CaseStyle style
)

de-DE will be interpreted as de,DE normally, it would be de,D,E which we do not want

Implementation

String toCaseOfLocale(CaseStyle style) {
  return this.toLowerCase().toCase(style);
}