Commit graph

8187 commits

Author SHA1 Message Date
Markus Scherer
c75e0aba01
ICU-20119 pool bundles for ICU 63/CLDR 34 (#173) 2018-09-25 16:58:26 -07:00
Fredrik Roubert
8d9d3b58ae ICU-20085 Revert workaround for pseudolocale region codes for display names.
This reverts commit 1dccd7472e.
2018-09-24 17:19:55 +02:00
pedberg-icu
e8159dee5b
Merge pull request #162 from pedberg-icu/cldr34a-integration
ICU-20119 Integrate CLDR release-34-alpha2, adjust code & test, update MeasureUnit
2018-09-21 18:29:38 -07:00
Shane F. Carr
15c750d714
ICU-11319 Add tests for compact decimal in zh-Hant and zh-Hant-HK. (#166) 2018-09-21 18:18:48 -07:00
Markus Scherer
881c504f89
ICU-20125 numeric values of level constants will not change; fix/update some docs (#159) 2018-09-21 16:53:20 -07:00
Shane F. Carr
d16724e4b0
ICU-11276 Apply the approximately pattern inside of the unit string. (#148) 2018-09-21 15:19:16 -07:00
Andy Heninger
3bf69332b0 ICU-20119 Fix NumberFormat failures (by shane) 2018-09-21 13:59:10 -07:00
Peter Edberg
c087b6f123 ICU-20119 63rc BRS, merge current unicode-icu master (Sep 21) into cldr34a-integration branch 2018-09-21 11:20:50 -07:00
Mihai Nita
5a6660a060 ICU-20142 Document the skeleton for MessageFormat number arguments (#121) 2018-09-20 18:11:01 -07:00
Peter Edberg
c1549de8a4 ICU-20119 63rc BRS, cldr 34-alpha2 part 3: icu4j code for region,pluralRange; tests for pluralRange,serialization 2018-09-20 15:24:42 -07:00
Shane
26b82e0f64
ICU-20073 Do not parse stray percent sign in strict mode. (#145) 2018-09-20 14:47:25 -07:00
Shane
056b3bd567
ICU-13266 Clarifying documentation for NumberFormat#equals(). (#146) 2018-09-20 14:47:10 -07:00
Shane
f6838b8b82
ICU-13824 Fixing MeasureFormat#getWidth() to not return @internal value. (#143) 2018-09-20 14:46:48 -07:00
Shane
b4ffbdd6b9
ICU-13830 Fixing CurrencyDisplayNames boolean attribute behavior. (#141) 2018-09-20 14:46:32 -07:00
Yoshito Umaoka
e03dd0c13f
ICU-20153 Make ICU4J JapaneseCalendar constants non-inlineable. (#155) 2018-09-20 04:00:47 -04:00
Peter Edberg
45509ed8bc ICU-20119 63rc BRS, cldr 34-alpha2 part 2: 10 locales, MeasUnit updates, icu4j tests with serialization fails 2018-09-19 23:37:10 -07:00
Markus Scherer
8a2d66d5f6
ICU-13832 Transliterator: move rule syntax docs from internal class to public (#150) 2018-09-19 21:51:49 -07:00
Yoshito Umaoka
25cbfb090d
ICU-20150 API status of equals()/hashCode() should match the ICU class's status (#153)
- Updated API status of java.lang.Object method overrides (equals/hashCode/toString/clone) to match status of declaring class. There are some API comments that is insufficient, or incorrect, or not appropriate after the change. Most of these issues were fixed.

- APIStatusConsistencyChecker and ant tasks invoking the check, designed for checking this requirement. For now, Normalizer#clone() does not satisfy the requirement, but unchanged on purpose. The tool can accept exception.

- DeprecatedAPIChecker had a problem for handling non-static inner class's constructor. CodePointMap$StringIterator is the very first instance of such class in ICU4J. The problem was fixed by removing the implicit param scanned by reflection.

- This commit includes a lot of changes made by Eclipse project configuration - removing spaces in blank lines/end of statement, and removeal of redundant generics type declaration.
2018-09-19 19:02:49 -04:00
Jeff Genovy
f6c813f6f4
ICU-20119 BRS63rc Update version number for ICU4C and ICU4J. Update readme files. (#144)
BRS: Update version number for ICU 63 RC for ICU4J and ICU4C, also update readme files.
2018-09-19 11:36:48 -07:00
Shane
4ce6db875a
ICU-20037 Fixing ScientificMatcher integer overflow. (#138)
Also restricts parsing to read only one exponent per string.
2018-09-18 18:10:38 -07:00
Shane Carr
e1722ae821 ICU-20063 Make setSignificantDigitsUsed more friendly. 2018-09-18 15:48:25 -07:00
jungshik
1ad1ce7921 ICU-20140 Allow duplicated keys in U-extension per RFC 6067 (#136)
* ICU-20140 Allow duplicated keys in U-extension per RFC 6067

RFC 6067 [1] does allow duplicate keywords, but ICU4C's
uloc_forLanguageCode rejects it as invalid.

Change it to accept duplicate keywords and honor only the
1st one while ignoring subsequent ones per RFC 6067.

[1] Unicode extension to BCP 47:
    https://tools.ietf.org/html/rfc6067

* ICU-20140 Add ICU4J test and tweak ICU4C test

ICU4J test diverges from ICU4C tests:

1. Handling of duplicate variants in ICU4J seem to be wrong:
   https://unicode-org.atlassian.net/browse/ICU-20148
2. ULocale.forLanguageTag only throws NullPointException so
   that ICU4C's test for duplicate attributes cannot be ported.
2018-09-18 13:23:12 -04:00
Yoshito Umaoka
134459ef45
ICU-20119 BRS63 Currency numeric code data update - VES and UYW (#126) 2018-09-18 12:22:59 -04:00
Victor Chang
8bdc5b5992 ICU-20058 Fix mimimum significant digits in engineering notation
- Follow the spec to calculate the mimimum significant digits in engineering notation
- The bug is regression since ICU 58. The new test still passes on
ICU58-based DecimalFormat
- Maximum significant digits is not changed
2018-09-18 17:20:53 +01:00
gvictor
47f1e7cdbb ICU-20133 Undeprecate Transliterator.Position#hashCode (#119)
Create a preper hash code with Objects.hash instead of returning 42
2018-09-18 11:54:41 -04:00
Yoshito Umaoka
4ff55f92f0
ICU-20119 BRS63RC Fix javac/javadoc/Eclipse errors/warnings (#132)
* ICU-20119 BRS63RC Fixing java compiler warnings

* ICU-20119 BRS63RC Fixing JavaDoc errors
2018-09-18 01:31:03 -04:00
Shane Carr
432f7ecc95 ICU-11276 Adding more test cases. Fixing minor issues with extended locales. 2018-09-14 21:20:13 -07:00
Shane Carr
39fa9d9192 ICU-11276 Replying to Mark review feedback. 2018-09-14 19:09:23 -07:00
Shane Carr
5df07d73a3 ICU-11276 Replying to Andy review feedback. 2018-09-14 19:09:23 -07:00
Shane Carr
ae6757d27c ICU-11276 Porting pluralRanges support to Java. 2018-09-14 19:09:23 -07:00
Shane Carr
33af52e76d ICU-11276 Fixing ICU4J number range test failures. 2018-09-14 19:08:11 -07:00
Shane Carr
65f9a6bb0a ICU-11276 One more attempt at fixing test failure. 2018-09-14 19:08:11 -07:00
Shane Carr
b41664eb32 ICU-11276 Fixing test failure related to number range. 2018-09-14 19:08:11 -07:00
Shane Carr
2c6b138e4e ICU-11276 Adding Java NumberRangeFormatter implementation. 2018-09-14 19:08:11 -07:00
Shane Carr
25cdf71e5c ICU-11276 Replying to code review comments. 2018-09-14 19:08:11 -07:00
Shane Carr
4821f614a4 ICU-11276 Fixing Javadoc warnings in NumberRangeFormatter. 2018-09-14 19:08:11 -07:00
Shane Carr
33c681cb44 ICU-11276 Feedback from ICU-TC. Fixing doxygen warnings. 2018-09-14 19:08:11 -07:00
Shane Carr
a474b70ad2 ICU-11276 Adding C++ base implementation of NumberRangeFormatter, including unit test. 2018-09-14 19:08:11 -07:00
Shane Carr
ba0f540ea7 ICU-11276 Assorted Java NumberRangeFormatter API improvements. 2018-09-14 19:05:13 -07:00
Shane Carr
62c804f8f7 ICU-11276 Adding enums and more API docs. 2018-09-14 19:05:13 -07:00
Shane Carr
9c4c5268fd ICU-11276 Adding placeholder implementation and more API functions. 2018-09-14 19:05:13 -07:00
Shane Carr
97ee695614 ICU-11276 Adding initial Java NumberRangeFormatter boilerplate. 2018-09-14 19:05:13 -07:00
Andy Heninger
3605117c21
ICU-13801 Clarify Javadoc for BreakIterator.setText() (#69) 2018-09-13 12:46:17 -07:00
Markus Scherer
45364cbe77
ICU-20116 remove @deprecated from Edits.Iterator.toString() (#98)
but keep @internal
2018-09-12 20:11:26 -07:00
Yoshito Umaoka
61d446f710
ICU-12973 CLDR Japanese Era data and tentative Japanese new era support (#111)
* Updated era data format in supplementalData.

* Include tentative era names in data. Implemented Japanese era loaded from CLDR data in ICU4J.

* ICU4C implementation, ICU4C refactoring. WIP.

* VS project updates and some bug fixes

Also added API comments.

* Review feedback and bug fixes

- NULL to nullptr
- use of LocalUResourceBundlePointer
- TYPO "name" to "named"
- env var checking stricmp() == 0

* API comment correction based on feedback

* Duplicate the comment in ucal.h to calendar.h

* Fixed spelling errors in API comment
2018-09-12 17:13:30 -04:00
jungshik
f64725cc75 ICU-20098 Fix BCP47 validity check for extlang and privateuse singleton (#102)
* ICU-20098 Fix the validty check for extlang in uloc_forLanguageTag

BCP 47 has the following for language. extlang subtag can only be
preceded by 2*3ALPHA. Add a check for the length of language subtag
before extlang subtag.

language      = 2*3ALPHA            ; shortest ISO 639 code
                 ["-" extlang]       ; sometimes followed by
                                     ; extended language subtags
               / 4ALPHA              ; or reserved for future use
               / 5*8ALPHA            ; or registered language subtag

 extlang       = 3ALPHA              ; selected ISO 639 codes
                 *2("-" 3ALPHA)      ; permanently reserved}}

With this change, 'hant-cmn-CN' would drop '-cmn-CN' keeping only
'hant'.

* ICU-20098 Fix the validty check for extlang for ICU4J

* ICU-20098 Fix the compiler failure for ICU4J

* ICU-20098 Fix a compile error and test.

* ICU-20098 Add a test for invalid private use  singleton

ICU4C's check for private use singleton subtag ('x') is wrong and
treats invalid language tags as valid.

ICU4J's check is correct and does not require any change.

Fix that and add tests to both ICU4C and ICU4J.
2018-09-11 02:45:14 -04:00
David Corbett
185ef18550 ICU-12979: Fix \Q...\E in UnicodeRegex#transform (#23) 2018-09-10 15:19:10 -07:00
Markus Scherer
5e3cdcc028
ICU-20086 C++ sets & maps for Unicode properties (#93)
also create ucpmap.h from renamed parts of ucptrie.h
2018-09-07 13:40:19 -07:00
Andy Heninger
e126a2c42b
ICU-8151 Simplify Finnish Line Break Tailoring, move to root. (#99) 2018-09-06 14:23:28 -07:00
Victor Chang
ad15cb3d00 ICU-13808 Document ArithmeticException thrown by DecimalFormat
- Document the exception in the following methods
setMultiplier, setMathContext, setMathContextICU
- Add test to check the documented behavior
2018-09-06 12:01:59 -07:00