Description
The below also applies to uncapitalize.
Currently the javadocs say:
Capitalizes a String changing the first letter to title case as per Character.toTitleCase(char). No other letters are changed.
A more accurate description would be:
Capitalizes a String changing the first character to title case as per Character.toTitleCase(char). No other letters are changed.
capitalize("'word'") is an example where the current docs are false (note single-quote is first character but not first letter and nothing gets capitalized)
This may in fact be a bug if the current docs are correct.
Attachments
Issue Links
- is related to
-
LANG-1142 StringUtils#capitalize: Javadoc says toTitleCase; code uses toUpperCase
- Closed