[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search

CLDR Ticket #10756(accepted tools)

Opened 3 months ago

Last modified 8 weeks ago

clean up initial-titlecase code

Reported by: markus Owned by: mark
Component: other Data Locale:
Phase: rc Review:
Weeks: 0.05 Data Xpath:



Follow-up on ticket:10367 comment 7 on r13762.

  • call simpler apply() overload: return TO_TITLE_WHOLE_STRING_NO_LOWERCASE.apply(locale.toLocale(), null, str);
  • do not import CaseMap.Title and instead use "CaseMap.Title" explicitly; it makes for more readable code. private static final CaseMap.Title TO_TITLE_...
  • use Locale.ROOT for language-independent behavior, because it's more obviously self-documenting (it's functionally the same as Locale.ENGLISH)
  • maybe look for a CLDR utility class for a shared version of this code


Change History

comment:1 Changed 2 months ago by mark

  • Owner changed from anybody to mark
  • Status changed from new to accepted
  • Milestone changed from UNSCH to 32.1

comment:2 Changed 8 weeks ago by mark

  • Milestone changed from 32.0.1 to 33

Add a comment

Modify Ticket

as accepted

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.