diff options
author | Victor Chang <vichang@google.com> | 2023-04-25 15:57:58 +0100 |
---|---|---|
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | 2023-05-04 14:16:27 +0000 |
commit | 3d7a790830bdb6289915b5d48a2d7aa89b8bb7e1 (patch) | |
tree | ab9e0255acf875468c45eb312db0807bc5a980a6 /icu4j | |
parent | f174780b5be227b0fff8722b2493b00202830e53 (diff) | |
download | icu-3d7a790830bdb6289915b5d48a2d7aa89b8bb7e1.tar.gz |
Cherry-pick: ICU-22371 Fix ULocale.getISOLanguages() API docs
Upstream commit:
https://github.com/unicode-org/icu/commit/530ca9817641c6a90c9c8c5028996de1d559e4a8
Upstream bug:
https://unicode-org.atlassian.net/browse/ICU-22371
Bug: 277929411
Test: m droid
(cherry picked from https://android-review.googlesource.com/q/commit:2dd2d2ae9e2dd18d2786c93198568489da33caa6)
Merged-In: I5cbf2ba18d0d9f2bff89231ec87ecd1eae8c2057
Change-Id: I5cbf2ba18d0d9f2bff89231ec87ecd1eae8c2057
Diffstat (limited to 'icu4j')
-rw-r--r-- | icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java b/icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java index 89d1baa45..0f3591c98 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java @@ -877,8 +877,10 @@ public final class ULocale implements Serializable, Comparable<ULocale> { } /** - * Returns a list of all 2-letter language codes defined in ISO 639. - * Can be used to create Locales. + * Returns a list of all unique language codes defined in ISO 639. + * They can be 2 or 3 letter codes, as defined by + * <a href="https://www.ietf.org/rfc/bcp/bcp47.html#section-2.2.1"> + * BCP 47, section 2.2.1</a>. Can be used to create Locales. * [NOTE: ISO 639 is not a stable standard-- some languages' codes have changed. * The list this function returns includes both the new and the old codes for the * languages whose codes have changed.] |