]> granicus.if.org Git - icu/log
icu
6 years agoICU-20063 Make setSignificantDigitsUsed more friendly.
Shane Carr [Tue, 18 Sep 2018 08:30:31 +0000 (01:30 -0700)]
ICU-20063 Make setSignificantDigitsUsed more friendly.

6 years agoICU-20050 Fixing memory leaks in move and copy assignment in Number*Formatter.
Shane Carr [Tue, 18 Sep 2018 09:14:24 +0000 (02:14 -0700)]
ICU-20050 Fixing memory leaks in move and copy assignment in Number*Formatter.

6 years agoICU-20104 Fix lazy init in Indian Calendar. Now matches other calendars. (#108)
Andy Heninger [Tue, 18 Sep 2018 20:04:15 +0000 (13:04 -0700)]
ICU-20104 Fix lazy init in Indian Calendar. Now matches other calendars. (#108)

* ICU-20104 Fix lazy init in Indian Calendar. Now matches other calendars.

* ICU-20104 export class IndianCalendar for testing.

* ICU-20104 shot-in-the-dark Windows build experiment.

* ICU-20104 fix memory leak in added test.

6 years agoICU-20145 Allow passing locale in ICU4C "date" sample program for testing without...
Jeff Genovy [Tue, 18 Sep 2018 19:24:58 +0000 (12:24 -0700)]
ICU-20145 Allow passing locale in ICU4C "date" sample program for testing without using the environment variable "LC_ALL". (#125)

The ICU4C sample "date" program just uses the "default" ICU locale. This change lets you pass in an explicit locale argument for testing on platforms like Windows that don't have/use the environment variable "LC_ALL".

6 years agoICU-20140 Allow duplicated keys in U-extension per RFC 6067 (#136)
jungshik [Tue, 18 Sep 2018 17:23:12 +0000 (10:23 -0700)]
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.

6 years agoICU-20136 Check U_HAVE_TZ* values (#114)
Don [Tue, 18 Sep 2018 17:18:25 +0000 (10:18 -0700)]
ICU-20136 Check U_HAVE_TZ* values (#114)

* Add check for U_HAVE_TZSET

* Add check for U_HAVE_TZNAME

6 years agoICU-20119 BRS63 Currency numeric code data update - VES and UYW (#126)
Yoshito Umaoka [Tue, 18 Sep 2018 16:22:59 +0000 (12:22 -0400)]
ICU-20119 BRS63 Currency numeric code data update - VES and UYW (#126)

6 years agoICU-20075 For POSIX, increase correctedPOSIXLocale size for localeID expansion with...
pedberg-icu [Tue, 18 Sep 2018 16:21:45 +0000 (09:21 -0700)]
ICU-20075 For POSIX, increase correctedPOSIXLocale size for localeID expansion with @ (#112)

6 years agoICU-20058 Fix mimimum significant digits in engineering notation
Victor Chang [Fri, 14 Sep 2018 13:24:05 +0000 (14:24 +0100)]
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

6 years agoICU-20135 Use __has_declspec_attribute (#113)
Don [Tue, 18 Sep 2018 16:17:05 +0000 (09:17 -0700)]
ICU-20135 Use __has_declspec_attribute (#113)

> Clang comes with __has_declspec_attribute to detect whether the name of an attribute is implemented as a MS style __declspec.

> This adds __has_declspect_attribute to the list of clang compatibility macros and then uses that check to determine if __declspec(dllimport) and __declspec(dllexport) can be used.

6 years agoICU-20133 Undeprecate Transliterator.Position#hashCode (#119)
gvictor [Tue, 18 Sep 2018 15:54:41 +0000 (16:54 +0100)]
ICU-20133 Undeprecate Transliterator.Position#hashCode (#119)

Create a preper hash code with Objects.hash instead of returning 42

6 years agoICU-20119 BRS63RC Fix javac/javadoc/Eclipse errors/warnings (#132)
Yoshito Umaoka [Tue, 18 Sep 2018 05:31:03 +0000 (01:31 -0400)]
ICU-20119 BRS63RC Fix javac/javadoc/Eclipse errors/warnings (#132)

* ICU-20119 BRS63RC Fixing java compiler warnings

* ICU-20119 BRS63RC Fixing JavaDoc errors

6 years agoICU-13645 Remove redundant invocations of the Locale copy constructor.
Fredrik Roubert [Mon, 17 Sep 2018 19:56:43 +0000 (12:56 -0700)]
ICU-13645 Remove redundant invocations of the Locale copy constructor.

6 years agoICU-12973 Enable UWP version of ICU to use Environment variable ICU_ENABLE_TENTATIVE_...
Jeff Genovy [Mon, 17 Sep 2018 21:33:08 +0000 (14:33 -0700)]
ICU-12973 Enable UWP version of ICU to use Environment variable ICU_ENABLE_TENTATIVE_ERA for testing placeholder names (#124)

- Enable UWP version of ICU to use Environment variable ICU_ENABLE_TENTATIVE_ERA for testing placeholder era names.
- Use LocalArray<int32_t> for the Era Start Dates to simply memory management, so that goto can be removed.
- Also fix some minor typos in header file.

6 years agoICU-11276 Adding NumberRangeFormatter (#87)
Shane [Sun, 16 Sep 2018 09:07:37 +0000 (02:07 -0700)]
ICU-11276 Adding NumberRangeFormatter (#87)

Formats number ranges, including currencies and measurement units.

6 years agoICU-11276 Comment about getParameters() return type.
Shane Carr [Sat, 15 Sep 2018 04:23:52 +0000 (21:23 -0700)]
ICU-11276 Comment about getParameters() return type.

6 years agoICU-11276 Adding more test cases. Fixing minor issues with extended locales.
Shane Carr [Sat, 15 Sep 2018 04:20:13 +0000 (21:20 -0700)]
ICU-11276 Adding more test cases. Fixing minor issues with extended locales.

6 years agoICU-11276 Replying to Mark review feedback.
Shane Carr [Sat, 15 Sep 2018 02:03:01 +0000 (19:03 -0700)]
ICU-11276 Replying to Mark review feedback.

6 years agoICU-11276 Replying to Andy review feedback.
Shane Carr [Sat, 15 Sep 2018 01:08:41 +0000 (18:08 -0700)]
ICU-11276 Replying to Andy review feedback.

6 years agoICU-11276 int -> int32_t in number_compact.cpp
Shane Carr [Sat, 15 Sep 2018 00:59:12 +0000 (17:59 -0700)]
ICU-11276 int -> int32_t in number_compact.cpp

6 years agoICU-11276 Porting pluralRanges support to Java.
Shane Carr [Sat, 15 Sep 2018 00:54:51 +0000 (17:54 -0700)]
ICU-11276 Porting pluralRanges support to Java.

6 years agoICU-11276 Fixing pluralRanges data loading and adding more tests.
Shane Carr [Fri, 14 Sep 2018 23:33:22 +0000 (16:33 -0700)]
ICU-11276 Fixing pluralRanges data loading and adding more tests.

6 years agoICU-11276 ModifierStore wired up in LongNameHandler (C++).
Shane Carr [Fri, 14 Sep 2018 08:30:55 +0000 (01:30 -0700)]
ICU-11276 ModifierStore wired up in LongNameHandler (C++).

6 years agoICU-11276 Plural ranges loaded from data; first implementations of ModifierStore.
Shane Carr [Fri, 14 Sep 2018 07:53:32 +0000 (00:53 -0700)]
ICU-11276 Plural ranges loaded from data; first implementations of ModifierStore.

6 years agoICU-11276 Additional build.xml lines for pluralRanges.
Shane Carr [Fri, 14 Sep 2018 07:52:09 +0000 (00:52 -0700)]
ICU-11276 Additional build.xml lines for pluralRanges.

6 years agoICU-11276 Adding UChar* method in CharString.
Shane Carr [Fri, 14 Sep 2018 07:51:36 +0000 (00:51 -0700)]
ICU-11276 Adding UChar* method in CharString.

6 years agoICU-11276 Adding ModifierStore, groundwork for plural range support.
Shane Carr [Fri, 14 Sep 2018 05:16:29 +0000 (22:16 -0700)]
ICU-11276 Adding ModifierStore, groundwork for plural range support.

6 years agoICU-11276 Adding pluralRanges.txt data file.
Shane Carr [Fri, 14 Sep 2018 03:44:45 +0000 (20:44 -0700)]
ICU-11276 Adding pluralRanges.txt data file.

The code was already in NewLdml2IcuConverter, but it was not being called from ICU.

6 years agoICU-11276 Fixing ICU4J number range test failures.
Shane Carr [Fri, 7 Sep 2018 19:24:47 +0000 (12:24 -0700)]
ICU-11276 Fixing ICU4J number range test failures.

6 years agoICU-11276 One more attempt at fixing test failure.
Shane Carr [Fri, 7 Sep 2018 19:15:20 +0000 (12:15 -0700)]
ICU-11276 One more attempt at fixing test failure.

6 years agoICU-11276 Fixing test failure related to number range.
Shane Carr [Fri, 7 Sep 2018 14:41:19 +0000 (07:41 -0700)]
ICU-11276 Fixing test failure related to number range.

6 years agoICU-11276 Adding Java NumberRangeFormatter implementation.
Shane Carr [Fri, 7 Sep 2018 12:30:37 +0000 (05:30 -0700)]
ICU-11276 Adding Java NumberRangeFormatter implementation.

6 years agoICU-11276 Fixing ASAN issue related to number range formatting.
Shane Carr [Thu, 6 Sep 2018 09:03:52 +0000 (02:03 -0700)]
ICU-11276 Fixing ASAN issue related to number range formatting.

6 years agoICU-11276 Deleting impl object in destructor.
Shane Carr [Thu, 6 Sep 2018 06:47:58 +0000 (23:47 -0700)]
ICU-11276 Deleting impl object in destructor.

6 years agoICU-11276 Adding test cases and more API coverage.
Shane Carr [Thu, 6 Sep 2018 06:04:32 +0000 (23:04 -0700)]
ICU-11276 Adding test cases and more API coverage.

6 years agoICU-11276 Adding number range spacing heuristic and fixing data loading.
Shane Carr [Thu, 6 Sep 2018 04:46:37 +0000 (21:46 -0700)]
ICU-11276 Adding number range spacing heuristic and fixing data loading.

6 years agoICU-11276 Wiring SimpleFormatter logic into NumberRangeFormatter.
Shane Carr [Thu, 6 Sep 2018 03:44:27 +0000 (20:44 -0700)]
ICU-11276 Wiring SimpleFormatter logic into NumberRangeFormatter.

6 years agoICU-11276 Wiring new NumberRangeFormatterImpl code into the API.
Shane Carr [Thu, 6 Sep 2018 01:37:48 +0000 (18:37 -0700)]
ICU-11276 Wiring new NumberRangeFormatterImpl code into the API.

6 years agoICU-11276 Implementing new methods on Modifier.
Shane Carr [Thu, 6 Sep 2018 01:16:32 +0000 (18:16 -0700)]
ICU-11276 Implementing new methods on Modifier.

Also removes status code from two of the other methods; the status code was used only by MutablePatternModifier for the case of a malformed pattern; this error is better handled directly in the apply() method.

6 years agoICU-11276 Initial NumberRangeFormatter implementation. Needs data loading and implem...
Shane Carr [Thu, 6 Sep 2018 00:42:41 +0000 (17:42 -0700)]
ICU-11276 Initial NumberRangeFormatter implementation.  Needs data loading and implementation of new methods on Modifier.

6 years agoICU-11276 Move rounding into preProcess function since the micro generator could...
Shane Carr [Wed, 5 Sep 2018 23:25:10 +0000 (16:25 -0700)]
ICU-11276 Move rounding into preProcess function since the micro generator could have already applied rounding.

6 years agoICU-13645 Add C++11 move constructor and assign operator to Locale.
Fredrik Roubert [Sat, 15 Sep 2018 03:07:58 +0000 (20:07 -0700)]
ICU-13645 Add C++11 move constructor and assign operator to Locale.

6 years agoICU-11276 Rewriring NumberFormatterImpl to expose information needed for NumberRangeF...
Shane Carr [Wed, 5 Sep 2018 22:23:36 +0000 (15:23 -0700)]
ICU-11276 Rewriring NumberFormatterImpl to expose information needed for NumberRangeFormatter.

6 years agoICU-13645 Clean up implementation of Locale::operator=(const Locale&).
Fredrik Roubert [Sat, 15 Sep 2018 00:17:29 +0000 (17:17 -0700)]
ICU-13645 Clean up implementation of Locale::operator=(const Locale&).

Organizing the implementation like this instead will (hopefully) make it
more clear what's being done and make it possible to use analogous
control flow in the copy and move implementations of operator=().

6 years agoICU-11276 Replying to code review comments.
Shane Carr [Thu, 30 Aug 2018 23:20:13 +0000 (16:20 -0700)]
ICU-11276 Replying to code review comments.

6 years agoICU-13417 Add the Locale::get(Unicode)?Keywords() functions.
Fredrik Roubert [Sat, 15 Sep 2018 00:12:06 +0000 (17:12 -0700)]
ICU-13417 Add the Locale::get(Unicode)?Keywords() functions.

They are C++ template wrappers around Locale::createKeywords() and
Locale::createUnicodeKeywords() respectively, that write to any
container for which an STL style output iterator can be provided.

The simplest imaginable usage would just look like this:

    std::string keys[16];
    l.getKeywords<std::string>(keys, status);

The unit test has a more elaborate invocation, writing to an std::set<>.

6 years agoICU-11276 Fixing Javadoc warnings in NumberRangeFormatter.
Shane Carr [Thu, 30 Aug 2018 01:02:16 +0000 (18:02 -0700)]
ICU-11276 Fixing Javadoc warnings in NumberRangeFormatter.

6 years agoICU-13417 Add the Locale::(addLikely|minimize)Subtags() functions.
Fredrik Roubert [Thu, 13 Sep 2018 21:14:26 +0000 (14:14 -0700)]
ICU-13417 Add the Locale::(addLikely|minimize)Subtags() functions.

They are C++ wrappers of uloc_addLikelySubtags() and uloc_minimizeSubtags()
respectively, that take care of dynamic memory management.

6 years agoICU-11276 Feedback from ICU-TC. Fixing doxygen warnings.
Shane Carr [Thu, 30 Aug 2018 00:42:17 +0000 (17:42 -0700)]
ICU-11276 Feedback from ICU-TC. Fixing doxygen warnings.

6 years agoICU-13417 Add the Locale::(get|set)(Unicode)?KeywordValue() functions.
Fredrik Roubert [Fri, 14 Sep 2018 21:25:35 +0000 (14:25 -0700)]
ICU-13417 Add the Locale::(get|set)(Unicode)?KeywordValue() functions.

6 years agoICU-11276 Adding C++ base implementation of NumberRangeFormatter, including unit...
Shane Carr [Wed, 29 Aug 2018 08:22:21 +0000 (01:22 -0700)]
ICU-11276 Adding C++ base implementation of NumberRangeFormatter, including unit test.

6 years agoICU-13417 Improved error handling in Locale::create(Unicode)?Keywords().
Fredrik Roubert [Fri, 14 Sep 2018 20:16:59 +0000 (13:16 -0700)]
ICU-13417 Improved error handling in Locale::create(Unicode)?Keywords().

Follow-up from pull request #117:

Specify buffer size in only one place, explicitly check status before
proceeding and set status = U_MEMORY_ALLOCATION_ERROR if new fails.

6 years agoICU-11276 Fixing typos in numberformatter.h
Shane Carr [Wed, 29 Aug 2018 05:36:33 +0000 (22:36 -0700)]
ICU-11276 Fixing typos in numberformatter.h

6 years agoICU-13417 Add the Locale::createUnicodeKeywords() function.
Fredrik Roubert [Thu, 13 Sep 2018 23:08:29 +0000 (16:08 -0700)]
ICU-13417 Add the Locale::createUnicodeKeywords() function.

This is a wrapper of Locale::createKeywords() that under the hood calls
uloc_toUnicodeLocaleKey() for each key before returning it, so that the
caller won't have to do this.

6 years agoICU-11276 Assorted Java NumberRangeFormatter API improvements.
Shane Carr [Wed, 29 Aug 2018 05:36:09 +0000 (22:36 -0700)]
ICU-11276 Assorted Java NumberRangeFormatter API improvements.

6 years agoICU-20119 Small refactor to ICU4J travis file.
Shane Carr [Fri, 7 Sep 2018 23:01:46 +0000 (16:01 -0700)]
ICU-20119 Small refactor to ICU4J travis file.

6 years agoICU-11276 Adding initial header files for NumberRangeFormatter.
Shane Carr [Wed, 29 Aug 2018 05:34:38 +0000 (22:34 -0700)]
ICU-11276 Adding initial header files for NumberRangeFormatter.

6 years agoICU-13801 Clarify Javadoc for BreakIterator.setText() (#69)
Andy Heninger [Thu, 13 Sep 2018 19:46:17 +0000 (12:46 -0700)]
ICU-13801 Clarify Javadoc for BreakIterator.setText() (#69)

6 years agoICU-11276 Adding enums and more API docs.
Shane Carr [Wed, 29 Aug 2018 04:10:28 +0000 (21:10 -0700)]
ICU-11276 Adding enums and more API docs.

6 years agoICU-13417 Add the Locale::(for|to)LanguageTag() functions.
Fredrik Roubert [Thu, 13 Sep 2018 03:41:53 +0000 (20:41 -0700)]
ICU-13417 Add the Locale::(for|to)LanguageTag() functions.

They are C++ wrappers of uloc_forLanguageTag() and uloc_toLanguageTag()
respectively, that take care of dynamic memory management.

6 years agoICU-11276 Adding placeholder implementation and more API functions.
Shane Carr [Wed, 29 Aug 2018 03:34:41 +0000 (20:34 -0700)]
ICU-11276 Adding placeholder implementation and more API functions.

6 years agoICU-13417 Add the internal helper class CharStringByteSink.
Fredrik Roubert [Thu, 13 Sep 2018 03:40:14 +0000 (20:40 -0700)]
ICU-13417 Add the internal helper class CharStringByteSink.

This is an implementation of the public ICU ByteSink interface that
writes to the ICU internal class CharString.

6 years agoICU-11276 Adding initial Java NumberRangeFormatter boilerplate.
Shane Carr [Wed, 29 Aug 2018 02:50:55 +0000 (19:50 -0700)]
ICU-11276 Adding initial Java NumberRangeFormatter boilerplate.

6 years agoICU-20116 remove @deprecated from Edits.Iterator.toString() (#98)
Markus Scherer [Thu, 13 Sep 2018 03:11:26 +0000 (20:11 -0700)]
ICU-20116 remove @deprecated from Edits.Iterator.toString() (#98)

but keep @internal

6 years agoICU-12973 CLDR Japanese Era data and tentative Japanese new era support (#111)
Yoshito Umaoka [Wed, 12 Sep 2018 21:13:30 +0000 (17:13 -0400)]
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

6 years agoICU-13812 Define U_FALLTHROUGH for GCC 7+ for ICU4C. (#100)
Jeff Genovy [Wed, 12 Sep 2018 17:17:35 +0000 (10:17 -0700)]
ICU-13812 Define U_FALLTHROUGH for GCC 7+ for ICU4C. (#100)

Currently U_FALLTHROUGH is not defined for GCC, meaning that any switch case statements with fall-throughs will generate warnings when building ICU4C.

In GCC 7, they added support for: "_attribute_((fallthrough))" which we can now use for U_FALLTHROUGH, which eliminates many warnings when building with GCC.

6 years agoICU-13687 ICU4C Enable Windows UWP version to use TZ update/override files. (#31)
Jeff Genovy [Tue, 11 Sep 2018 16:42:49 +0000 (09:42 -0700)]
ICU-13687 ICU4C Enable Windows UWP version to use TZ update/override files. (#31)

Enable the Windows UWP version of ICU4C to use TZ update/override files (.res files) for out-of-band timezone data updates. Also use the *W version of the Windows APIs to avoid code-page conversion.

6 years agoICU-20098 Fix BCP47 validity check for extlang and privateuse singleton (#102)
jungshik [Tue, 11 Sep 2018 06:45:14 +0000 (23:45 -0700)]
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.

6 years agoICU-12979 Fix \Q...\E in UnicodeRegex#transform (#23)
David Corbett [Mon, 10 Sep 2018 22:19:10 +0000 (18:19 -0400)]
ICU-12979 Fix \Q...\E in UnicodeRegex#transform (#23)

6 years agoICU-13754 Add a ListFormatter FieldPositionIterator format method (#109)
Frank Tang [Mon, 10 Sep 2018 02:14:16 +0000 (19:14 -0700)]
ICU-13754 Add a ListFormatter FieldPositionIterator format method (#109)

ICU-13754 Reapply PR#106 after sffc rewinding master it.

6 years agoICU-20103 Using GetLocaleInfoEx to get user default locale instead of using language...
William Zhao [Fri, 7 Sep 2018 20:59:03 +0000 (13:59 -0700)]
ICU-20103 Using GetLocaleInfoEx to get user default locale instead of using language for UWP app. (#86)

This pull request is to remove COM dependency in ICU, so that ICU does not need to care about if the caller is a UWP or not.

6 years agoICU-13834 add pinCapacity() for safer output buffer capacity checking. (#105)
Andy Heninger [Fri, 7 Sep 2018 20:42:21 +0000 (13:42 -0700)]
ICU-13834 add pinCapacity() for safer output buffer capacity checking. (#105)

* ICU-13834 add pinCapacity() for safer output buffer capacity checking.

* ICU-13834 pinCapacity, fix typo in comment.

6 years agoICU-20086 C++ sets & maps for Unicode properties (#93)
Markus Scherer [Fri, 7 Sep 2018 20:40:19 +0000 (13:40 -0700)]
ICU-20086 C++ sets & maps for Unicode properties (#93)

also create ucpmap.h from renamed parts of ucptrie.h

6 years agoICU-20017 Fix line endings in Visual Studio *.props files. (#101)
Jeff Genovy [Fri, 7 Sep 2018 01:45:18 +0000 (18:45 -0700)]
ICU-20017 Fix line endings in Visual Studio *.props files. (#101)

6 years agoICU-20022 support quarter in RelativeDateTimeFormatter (#77)
Frank Tang [Thu, 6 Sep 2018 23:47:50 +0000 (16:47 -0700)]
ICU-20022 support quarter in RelativeDateTimeFormatter (#77)

also add UDAT_ABSOLUTE_QUARTER to UDateAbsoluteUnit

6 years agoICU-8151 Simplify Finnish Line Break Tailoring, move to root. (#99)
Andy Heninger [Thu, 6 Sep 2018 21:23:28 +0000 (14:23 -0700)]
ICU-8151 Simplify Finnish Line Break Tailoring, move to root. (#99)

6 years agoICU-13754 Move listformatter from common to i18n (#96)
Frank Tang [Thu, 6 Sep 2018 20:31:40 +0000 (13:31 -0700)]
ICU-13754 Move listformatter from common to i18n (#96)

6 years agoICU-20027 Support parallel builds with MSYS/MSVC and Cygwin/MSVC (#104)
Paul Smith [Thu, 6 Sep 2018 19:20:43 +0000 (15:20 -0400)]
ICU-20027 Support parallel builds with MSYS/MSVC and Cygwin/MSVC (#104)

6 years agoICU-13808 Document ArithmeticException thrown by DecimalFormat
Victor Chang [Fri, 24 Aug 2018 14:53:15 +0000 (15:53 +0100)]
ICU-13808 Document ArithmeticException thrown by DecimalFormat

- Document the exception in the following methods
setMultiplier, setMathContext, setMathContextICU
- Add test to check the documented behavior

6 years agoICU-20110 Adding const to FormattedNumber#appendTo
Shane Carr [Thu, 30 Aug 2018 22:53:35 +0000 (15:53 -0700)]
ICU-20110 Adding const to FormattedNumber#appendTo

6 years agoICU-8966 ICU-12850 add API/data/code for text layout properties InPC, InSC, vo (#92)
Markus Scherer [Sat, 1 Sep 2018 02:23:52 +0000 (19:23 -0700)]
ICU-8966 ICU-12850 add API/data/code for text layout properties InPC, InSC, vo (#92)

ICU-8966: Indic_Positional_Category & Indic_Syllabic_Category

ICU-12850: Vertical_Orientation

6 years agoICU-13712 ICU4C does not report OOM if it fails to memory map the data file(s) (#30)
Jeff Genovy [Thu, 30 Aug 2018 01:50:50 +0000 (18:50 -0700)]
ICU-13712 ICU4C does not report OOM if it fails to memory map the data file(s) (#30)

ICU does not report Out-Of-Memory (OOM) if it fails to memory map the data file(s) when calling the various platform API(s) to do so.

When you are using ICU with memory-mapped data file(s), and ICU fails to map the data file due to being out-of-memory, it does not bubble this failure up to the API that was called. You will instead get back the error U_MISSING_RESOURCE_ERROR, rather than U_MEMORY_ALLOCATION_ERROR, which might be a bit surprising to the caller of the API. This can lead to the application thinking that there are no resources for "en_US" or "en" (or even "root").

This change modifies ICU4C so that it will report back U_MEMORY_ALLOCATION_ERROR if OOM happens when attempting to load the data files.

6 years agoICU-20092 Merge pull request #75 from gnrunge/langmatcher
gnrunge [Wed, 29 Aug 2018 23:24:40 +0000 (16:24 -0700)]
ICU-20092 Merge pull request #75 from gnrunge/langmatcher

ICU-20092 Integrates new languagematcher enhancements into ICU4J.

6 years agoICU-20006 Parameterize the TestSourceTargetSet2 test case.
Fredrik Roubert [Thu, 26 Jul 2018 18:15:45 +0000 (20:15 +0200)]
ICU-20006 Parameterize the TestSourceTargetSet2 test case.

By extracting this test case into a separate class and separating the
complex and time consuming building of the UnicodeSet disorderedMarks
data structure into an @BeforeClass shared setup method it becomes
possible to test the 18 different transliteration rules as a
parameterized test case.

This will lower the running time per test case and also aid in debugging
as it will make it immediately obvious which transliteration rules cause
test failures (and which don't).

6 years agoICU-20092 Integrates new languagematcher enhancements into ICU4J.
Norbert Runge [Thu, 23 Aug 2018 20:31:30 +0000 (13:31 -0700)]
ICU-20092 Integrates new languagematcher enhancements into ICU4J.

6 years agoICU-13483 Use a real time zone to make tests work in Android.
Fredrik Roubert [Thu, 5 Jul 2018 19:48:13 +0000 (21:48 +0200)]
ICU-13483 Use a real time zone to make tests work in Android.

When running in Android, java.util.TimeZone.getDefault() will only
return a TimeZone object for a time zone that actually exists, so when
passing a bogus test TimeZone object to setDefault() and afterwards
calling getDefault() it won't return that same time zone.

Changing our tests to instead use a real existing (but otherwise unused)
time zone instead makes the tests work in Android as well.

Neither of these tests was testing the ability to set an arbitrarily
made up time zone as the default, so no test coverage is lost.

6 years agoICU-13530 fix doxygen warnings: hide internals, hide struct/enum typedefs, avoid...
Markus Scherer [Tue, 28 Aug 2018 22:07:03 +0000 (15:07 -0700)]
ICU-13530 fix doxygen warnings: hide internals, hide struct/enum typedefs, avoid fwd+real struct decl (#84)

6 years agoICU-13334 add test for reported word break behavior issue, not reproducable. (#74)
Andy Heninger [Thu, 23 Aug 2018 18:49:10 +0000 (11:49 -0700)]
ICU-13334 add test for reported word break behavior issue, not reproducable. (#74)

6 years agoICU-13530 fix bugs, add tests, clarify docs (#83)
Markus Scherer [Tue, 28 Aug 2018 19:53:34 +0000 (12:53 -0700)]
ICU-13530 fix bugs, add tests, clarify docs (#83)

* ICU-13530 test & fix cptrie.getRange() when small null data block matches the start of a non-null fast data block

* ICU-13530 fix test bug

* ICU-13530 test & fix bug calculating worst-case data array capacity at start of compaction

* ICU-13530 docs: clarify buildImmutable() discards upper bits, trie then returns unsigned ints; range iteration slower than if ranges were stored directly

* ICU-13530 accept feedback on docs

6 years agoICU-20083 Merge pull request #70 from aheninger/ICU-20083
Andy Heninger [Wed, 22 Aug 2018 17:28:54 +0000 (10:28 -0700)]
ICU-20083 Merge pull request #70 from aheninger/ICU-20083

ICU-20083 Enable Address sanitizer in ICU4C builds.

6 years agoICU-13844 Regex unicode properties, add IsXXX forms for Java compatib… (#61)
Andy Heninger [Tue, 28 Aug 2018 18:15:51 +0000 (11:15 -0700)]
ICU-13844 Regex unicode properties, add IsXXX forms for Java compatib… (#61)

* ICU-13844 Regex unicode properties, add IsXXX forms for Java compatibility.

* ICU-13844 Regex Property Review fixes from Markus.

6 years agoICU-20061 fix 'rm: cannot remove 'current'' warning during build (#65)
sav-ix [Tue, 21 Aug 2018 18:07:01 +0000 (21:07 +0300)]
ICU-20061 fix 'rm: cannot remove 'current'' warning during build (#65)

need to use force removal in order to not make noise in stderr.

6 years agoICU-20083 Enable Address Sanitizer for ICU4C Build.
Andy Heninger [Tue, 21 Aug 2018 19:56:10 +0000 (12:56 -0700)]
ICU-20083 Enable Address Sanitizer for ICU4C Build.

6 years agoICU-13530 add ucptrie.h & umutablecptrie.h to docmain.h (#72)
Markus Scherer [Mon, 27 Aug 2018 21:57:22 +0000 (14:57 -0700)]
ICU-13530 add ucptrie.h & umutablecptrie.h to docmain.h (#72)

6 years agoICU-20051 fix 'goods=: command not found' warning during build (#64)
sav-ix [Tue, 21 Aug 2018 18:06:32 +0000 (21:06 +0300)]
ICU-20051 fix 'goods=: command not found' warning during build (#64)

a typo 'test/Makefile.in' made noise in stderr.

additionally brought similar code to the common view.

6 years agoICU-13530 CodePointMap docs fix s/trie/map/ (#73)
Markus Scherer [Mon, 27 Aug 2018 21:41:13 +0000 (14:41 -0700)]
ICU-13530 CodePointMap docs fix s/trie/map/ (#73)

6 years agoICU-13696 Parse local currency ISO codes as case-insensitive. (#62)
Shane [Tue, 21 Aug 2018 00:41:36 +0000 (17:41 -0700)]
ICU-13696 Parse local currency ISO codes as case-insensitive. (#62)

6 years agoICU-11637 Thread sanitizer added to Travis build. (#81)
Andy Heninger [Sat, 25 Aug 2018 00:45:22 +0000 (17:45 -0700)]
ICU-11637 Thread sanitizer added to Travis build. (#81)

6 years agoICU-20079 integer overflow & divide by zero sanitizer fixes. (#67)
Andy Heninger [Mon, 20 Aug 2018 23:40:46 +0000 (16:40 -0700)]
ICU-20079 integer overflow & divide by zero sanitizer fixes. (#67)

6 years agoICU-13664 Merge pull request #80 from aheninger/ICU-13664
Andy Heninger [Fri, 24 Aug 2018 23:27:10 +0000 (16:27 -0700)]
ICU-13664 Merge pull request #80 from aheninger/ICU-13664

ICU-13664 RBBI, add regression test for reported problem. #80