spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
56.25k stars 37.98k forks source link

Capitalize strings with the correctly implementation [SPR-16827] #21367

Closed spring-projects-issues closed 4 years ago

spring-projects-issues commented 6 years ago

Allan Garcez opened SPR-16827 and commented

Hey everyone, 

I am a brazilian student and decide to use Spring as my main framework to developer my API's, so I find an inconsistency in StringUtils.capitalize. This method only capitalize the first letter of first word in string, when the "correctly way" is capitalize all first letter in all words (like in CSS text-transform property). So, I decide to code a solution for this, and add methods to my class sugestion. 

 

All unit tests in project are aprove and I hope you will accept and implement this class to the Spring ecosystem 


Reference URL: https://github.com/vandalvnl/capitalize-utils

poutsma commented 4 years ago

The goal of StringUtils is to provide string methods for internal use within the framework. And for our purposes, the current way capitalize work suffices.