diff options
author | Victor Chang <vichang@google.com> | 2021-01-19 10:19:06 +0000 |
---|---|---|
committer | Victor Chang <vichang@google.com> | 2022-11-15 15:01:05 +0000 |
commit | d6c7385da546d31349b793794c964dce25c6e707 (patch) | |
tree | b8fe4793fc9208dc91e680a8685f22f38b16a3b3 /icu4j | |
parent | a91792696867f9ef27cc2f2235a2e2a9f98a3bb5 (diff) | |
download | icu-d6c7385da546d31349b793794c964dce25c6e707.tar.gz |
Android patch: Add @IntraCoreApi in DateFormatSymbols required by libcore.icu.LocaleData
The original patch can be found:
https://r.android.com/1250480
Bug: 138994281
Test: m droid
Change-Id: Idca99bc73d29ebd77a08397ba78b81ff7e6fd139
Diffstat (limited to 'icu4j')
-rw-r--r-- | icu4j/main/classes/core/src/com/ibm/icu/text/DateFormatSymbols.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/DateFormatSymbols.java b/icu4j/main/classes/core/src/com/ibm/icu/text/DateFormatSymbols.java index 6eba0d957..16f7bc73b 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/DateFormatSymbols.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/DateFormatSymbols.java @@ -1330,6 +1330,17 @@ public class DateFormatSymbols implements Serializable, Cloneable { ampms = duplicate(newAmpms); } + // BEGIN Android-added: Add a getter for ampmsNarrow + /** + * Returns narrow am/pm strings. For example: "a" and "p". + * @return narrow ampm strings + * @internal + */ + public String[] getAmpmNarrowStrings() { + return duplicate(ampmsNarrow); + } + // END Android-added: Add a getter for ampmsNarrow + /** * Returns the time separator string. For example: ":". * @return the time separator string. |