How do I convert a character into Unicode title case?
This seems like a simple question, but consider the following:
- Title case differs from upper case for some characters (reference).
Character.toTitleCase(char c)
only handles 1:1 mappings (e.g. doesn't work for characters like the German 'ß', which should map to 'SS').- Java's
String
class only offers conversion to upper case (not title case).
Have I missed something in the core libraries that allow this transformation?