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

CLDR Ticket #10756(closed tools: fixed)

Opened 7 months ago

Last modified 3 months ago

clean up initial-titlecase code

Reported by: markus Owned by: markus
Component: other Data Locale:
Phase: rc Review: mark
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 6 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 6 months ago by mark

  • Milestone changed from 32.0.1 to 33

comment:3 Changed 3 months ago by markus

  • Owner changed from mark to markus

comment:4 Changed 3 months ago by markus

  • Status changed from accepted to reviewing
  • Review set to mark

comment:5 Changed 3 months ago by mark

  • Status changed from reviewing to closed
  • Resolution set to fixed

Add a comment

Modify Ticket

as closed
Next status will be 'new'
Next status will be 'closed'

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

Note: See TracTickets for help on using tickets.