Closed GoogleCodeExporter closed 9 years ago
FYI, in upper camel case (at least using the style we recommend for
Java--obviously there are other views on this), an acronym like ISBN should be
written "Isbn", in which case you get "ISBN" as desired. In lower camel case,
it'd just be "isbn".
Whether or not we want to change the behavior is a different story, though my
inclination is somewhat against it unless we're sure it's harmless to existing
usages.
Original comment by cgdecker@google.com
on 16 Jun 2014 at 3:42
I know It should be the case but even java api is not consistent with acronyms
in camel case (ex: URL,HttpHeaders,..).
Forget about this, it might broke for sure existing usage, and a found a way
around by having a pre-treatment where i convert acronym to real camel case
using the following pattern:
/(?<=\p{Lower}|\A)(\p{Upper}+)(?=(\p{Upper}\p{Lower})|\Z)/ (groovy string)
:)
Original comment by abecc...@mantano.com
on 18 Jun 2014 at 12:12
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<issue id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:08
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:17
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:07
Original issue reported on code.google.com by
abecc...@mantano.com
on 16 Jun 2014 at 2:48