New API for ULocale.canonicalize()

Description

Current ULocale.canonicalize() takes a String for both input and output:

http://icu-project.org/apiref/icu4j/com/ibm/icu/util/ULocale.html#canonicalize-java.lang.String-

It would be convenient with a new API that instead used ULocale for both input and output.

Activity

Show:
Fredrik Roubert
March 10, 2020, 7:17 PM

Such a function was added as public static ULocale createCanonical(ULocale locale) in commit 6ea0fc7 for ICU-20834.

Assignee

Fredrik Roubert

Reporter

Fredrik Roubert

Components

Labels

None

Reviewer

None

Priority

medium

Time Needed

Hours

Fix versions

Configure