Skip to content

Commit

Permalink
ICU-22371 Fix ULocale.getISOLanguages() API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gvictor authored and markusicu committed May 3, 2023
1 parent 00bb678 commit 530ca98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion icu4c/source/common/unicode/locid.h
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,10 @@ class U_COMMON_API Locale : public UObject {
static const char* const* U_EXPORT2 getISOCountries();

/**
* Gets a list of all available language codes defined in ISO 639. This is a pointer
* 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>. This is a pointer
* to an array of pointers to arrays of char. All of these pointers are owned
* by ICU-- do not delete them, and do not write through them. The array is
* terminated with a null pointer.
Expand Down
6 changes: 4 additions & 2 deletions icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java
Original file line number Diff line number Diff line change
Expand Up @@ -877,8 +877,10 @@ public static String[] getISOCountries() {
}

/**
* 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.]
Expand Down

0 comments on commit 530ca98

Please # to comment.