add C++ Collator methods for UCollator capabilities

Description

C++ Collator/RuleBasedCollator seems to be missing the following methods that are available for UCollator (ucol.h):

  • ucol_getContractionsAndExpansions()

  • ucol_getShortDefinitionString()

  • ucol_nextSortKeyPart()

  • ucol_getUCAVersion()

If there is demand for these functions in C++, then we could add equivalent functions on the Collator and/or RuleBasedCollator classes. Alternatively, we could just add conversion functions (like toUCollator, see new ICU 4.2 UnicodeSet functions for converting to/from USet) so that users can get the UCollator and call the C API functions.

The following are available in C, not in C+, but don't take a UCollator object, which means that they can be used from C+ already:

  • ucol_normalizeShortDefinitionString()

  • ucol_mergeSortkeys()

Status

Assignee

Markus Scherer

Reporter

Markus Scherer

Labels

None

Reviewer

None

Time Needed

Days

Start date

None

Components

Priority

assess