introduce Locale base class: only identifier, no display names

Description

We should introduce a new base class underneath Locale/ULocale with just the identifier-related functionality and without display names. The base class should be in the ICU "core" and not drag in any significant data. We can then try to broaden some APIs to work with the base class instead of the larger one.

Activity

Show:
TracBot
June 30, 2018, 11:35 PM
Trac Comment 1 by —2010-01-07T21:53:48.000Z

It might be sufficient (and would be simpler and less disruptive) to not actually split the Locale/ULocale API but achieve the code modularization via Java reflection (which Doug introduced with his recent display name work) and splitting the .c/.cpp files between locale ID and display name functionality.

TracBot
June 30, 2018, 11:35 PM
Trac Comment 2 by —2010-02-25T22:33:03.000Z

Good enough, I think:

In Java, Doug rewrote the display names code to use the new LocaleDisplayNames API and implementation. When no display names are accessed, then that class and its associated data should not be loaded.

In C, I just split the locid.cpp and uloc.c files into multiple files so that core locale ID .c/.cpp files (hopefully) do not depend on resource bundle code or data any more.

TracBot
June 30, 2018, 11:35 PM
Trac Comment 4 by —2010-02-27T01:45:38.000Z

I don't see the new files in the changelist. Were they added under some other ticket?

Fixed

Assignee

Markus Scherer

Reporter

Markus Scherer

Components

Labels

None

Reviewer

None

Priority

medium

Time Needed

Hours

Fix versions