]> granicus.if.org Git - icu/log
icu
4 years agoICU-21249 BRS68rc update urename.h
Peter Edberg [Wed, 23 Sep 2020 21:56:31 +0000 (14:56 -0700)]
ICU-21249 BRS68rc update urename.h

4 years agoICU-20846 remove header guard from .cpp file
Markus Scherer [Wed, 23 Sep 2020 21:22:28 +0000 (14:22 -0700)]
ICU-20846 remove header guard from .cpp file

4 years agoICU-21236 better document UniqueCharStrings
Markus Scherer [Tue, 22 Sep 2020 01:59:50 +0000 (18:59 -0700)]
ICU-21236 better document UniqueCharStrings

4 years agoICU-21282 Fixup date patterns and date field symbols display
Jacob [Sat, 12 Sep 2020 22:36:05 +0000 (18:36 -0400)]
ICU-21282 Fixup date patterns and date field symbols display

No content changes.  This make the display of date patterns, date field symbols, and skeletons consistent.
- Date field symbols are in a code block (e.g. `y` or `yyyy`)
- Date patterns are quoted in a code block (e.g. `"y"` or `"MMMM d 'at' h:mm a"`)
- Skeletons are the same as date patterns (e.g. `"MMMMdjmm"`)
- Strings that might be the result of a date pattern are quoted (e.g. "April 2 at 5:00 PM")
Thus `"y"` denotes the date pattern containing the date field symbol `y`

4 years agoICU-21249 BRS68RC: Fix ICU4C Samples.
Jeff Genovy [Thu, 17 Sep 2020 00:34:23 +0000 (17:34 -0700)]
ICU-21249 BRS68RC: Fix ICU4C Samples.

- Changes for TRUE/FALSE macros.
- Samples: Add casts
- Samples: Clean up ufortune and ugrep vcxproj files.
- Set codepage to UTF-8 in samplecheck.bat

4 years agoICU-21034 Convert part of ICU4C Readme info to User Guide
Elango Cheran [Sun, 30 Aug 2020 03:29:09 +0000 (20:29 -0700)]
ICU-21034 Convert part of ICU4C Readme info to User Guide

4 years agoICU-20568 Fix "1 foot 12 inches" behaviour
Hugo van der Merwe [Sat, 19 Sep 2020 11:45:33 +0000 (11:45 +0000)]
ICU-20568 Fix "1 foot 12 inches" behaviour

See #1337

4 years agoICU-20590 Ensure time format consistency for SHORT vs j patterns if no locale data cldr/2020-09-22
Peter Edberg [Tue, 22 Sep 2020 17:10:30 +0000 (10:10 -0700)]
ICU-20590 Ensure time format consistency for SHORT vs j patterns if no locale data

4 years agoICU-21270 Update FixedDecimal in Java to support exponent
Elango Cheran [Tue, 22 Sep 2020 08:19:29 +0000 (01:19 -0700)]
ICU-21270 Update FixedDecimal in Java to support exponent

4 years agoICU-21028 Modifies ICU data generator so that the CLDR version is
gnrunge [Tue, 22 Sep 2020 23:26:26 +0000 (16:26 -0700)]
ICU-21028 Modifies ICU data generator so that the CLDR version is
no longer added to the .txt data files with the exception of the
root.txt files. This will drastically limit the number of changed
files during a version upgrade because the version change is the
only change in many of the data files.

ICU-21028 Fixed an indent.

ICU-21028 Factor in feedback from review.

4 years agoICU-21259 Adds a filter to pseudolocale generator to switch a particular
gnrunge [Tue, 22 Sep 2020 19:32:26 +0000 (12:32 -0700)]
ICU-21259 Adds a filter to pseudolocale generator to switch a particular
datetime pattern item from 12 hrs to 24 hrs format to prevent a unit
test failure.

ICU-21259 Disables pseudolocale generation in ICU data generation script.
Should not have stayed enabled in the earlier commit.

ICU-21259 Fix indents.

ICU-21259 Modify changes according to review feedback.

4 years agoICU-21190 Adding PluralRules select for number ranges
Shane F. Carr [Tue, 22 Sep 2020 00:02:27 +0000 (00:02 +0000)]
ICU-21190 Adding PluralRules select for number ranges

See #1309

4 years agoICU-21236 Correct Locale canonicalization
Frank Tang [Mon, 21 Sep 2020 23:13:23 +0000 (23:13 +0000)]
ICU-21236 Correct Locale canonicalization

See #1254

4 years agoICU-21251 release icu4j.jar/utilities.jar to GH Maven
Steven R. Loomis [Tue, 15 Sep 2020 17:19:48 +0000 (12:19 -0500)]
ICU-21251 release icu4j.jar/utilities.jar to GH Maven

- on a release (created from Github), publish to
<https://github.com/unicode-org/icu/packages> as
    1. icu4j-for-cldr
    2. utilities-for-cldr
- also fix a doc bug in DecimalFormat
- this is intended for CLDR use.
- a tag such as 'cldr/2019-09-15' will turn into a
maven version '68.1-SNAPSHOT-cldr-2019-09-15'

4 years agoICU-21191 Fixing testtagsguards.sh
Shane Carr [Sat, 19 Sep 2020 06:50:15 +0000 (23:50 -0700)]
ICU-21191 Fixing testtagsguards.sh

4 years agoICU-21249 add hide-draft guards for some @draft ICU 68 API
Markus Scherer [Sat, 19 Sep 2020 17:27:16 +0000 (10:27 -0700)]
ICU-21249 add hide-draft guards for some @draft ICU 68 API

4 years agoICU-20568 Add .unit().usage() support to ICU4J NumberFormatter (2/2)
Hugo van der Merwe [Wed, 16 Sep 2020 17:39:13 +0000 (19:39 +0200)]
ICU-20568 Add .unit().usage() support to ICU4J NumberFormatter (2/2)

* Throw UnsupportedOperationException for "unsanctioned units"
* Deal with the parent issue for LongNameMultiplexer
* Fix NullPointerException: UnitConversionHandler.processQuantity must
  call fParent.processQuantity
* toSkeleton not supported for not-built-in units
* Add and use interface
  LongNameMultiplexer.ParentlessMicroPropsGenerator
* Match up C++ and Java unit tests in NumberFormatterApiTest.java
* Permit user-override of precision() for usage(), closes icu-units#95
* Use BogusRounder to propagate mathContext.
* Port C++ change from PR #1322, commit c84ded050a, to Java.
* Test the usage-without-unit error. Document it in
  NumberFormatterSettings.java
* General review and corrections.

4 years agoICU-20568 Add .unit().usage() support to ICU4J NumberFormatter (1/2)
younies [Thu, 3 Sep 2020 13:26:46 +0000 (15:26 +0200)]
ICU-20568 Add .unit().usage() support to ICU4J NumberFormatter (1/2)

4 years agoICU-21248 Adds source file check (UTF-8 and absence of BOM) to
gnrunge [Thu, 17 Sep 2020 21:55:00 +0000 (14:55 -0700)]
ICU-21248 Adds source file check (UTF-8 and absence of BOM) to
Travis Continued Integration.

ICU-21248 Factors in review comments.

ICU-21248 Changes: no more filtering of markdown files, moved the
script to icu/tools/script/ directory, removed BOM from one
README.md file.

ICU-21248 Adjusts path to the icu-file-utf8-check script.

ICU-21248 Extends coverage of UTF-8/BOM check to all of icu/ directory.

4 years agoICU-21291 Increase the timeout for the Exhaustive Test CI builds
Jeff Genovy [Thu, 17 Sep 2020 18:56:13 +0000 (11:56 -0700)]
ICU-21291 Increase the timeout for the Exhaustive Test CI builds

4 years agoICU-21249 Adds !UCONFIG_NO_BREAK_ITERATION around selected test data items.
gnrunge [Wed, 16 Sep 2020 20:24:25 +0000 (13:24 -0700)]
ICU-21249 Adds !UCONFIG_NO_BREAK_ITERATION around selected test data items.
The corresponding code that implements the feature under test is likewise
enclosed.

4 years agoICU-21283 Fix Java for calendar bugs
Frank Tang [Thu, 17 Sep 2020 03:22:51 +0000 (20:22 -0700)]
ICU-21283 Fix Java for calendar bugs

This is the java port of ICU-21043 (for C++)
This PR fixes
ICU-21043 Erroneous date display in indian calendar of all dates prior to 0001-01-01.
ICU-21044 Hebrew Calendar calculation is incorrect when the year < 1
ICU-21045 Erroneous date display in islamic and islamic-rgsa calendars of all dates prior to 0622-07-18.
ICU-21046 Erroneous date display in islamic-umalqura calendar of all dates prior to -195366-07-23.

The problem in the IndianCalendarl is
ICU-21043 the gregorian/julain convesion is wrong. Swith to use the
calculation function in the Calendar class.

The problem in the HebrewCalendar is
ICU-21044 the use of bulit in / is wrong when the year or month could be < 1.

The problem in the IslamicCalendar is

ICU-21045: The math of % negative number for year and month is wrong.
Also add tests to exhaust test 8000 years for all calendar. In quick
mode, only test 2.5 years.

reduce the number of date in quick mode

4 years agoICU-21249 Bump ant from 1.10.6 to 1.10.8 in /tools/cldr/cldr-to-icu
dependabot[bot] [Mon, 14 Sep 2020 18:22:04 +0000 (18:22 +0000)]
ICU-21249 Bump ant from 1.10.6 to 1.10.8 in /tools/cldr/cldr-to-icu

Bumps ant from 1.10.6 to 1.10.8.

Signed-off-by: dependabot[bot] <support@github.com>
4 years agoICU-20717 move small files out of lfs: .dat, .gz, .gif
Steven R. Loomis [Wed, 16 Sep 2020 16:47:43 +0000 (11:47 -0500)]
ICU-20717 move small files out of lfs: .dat, .gz, .gif

4 years agoICU-20568 Have macrosToMicroGenerator do input unit calculation.
Hugo van der Merwe [Thu, 10 Sep 2020 14:27:20 +0000 (16:27 +0200)]
ICU-20568 Have macrosToMicroGenerator do input unit calculation.

This moves input unit calculation out of UnitConversionHandler making
it simpler and clearer, and localises the "MacroProps interpretation"
work in macrosToMicroGenerator, where it belongs.

4 years agoICU-21280 Correct source bytes counting in UTF8->UTF8 conversion
Roman Savchenko [Fri, 11 Sep 2020 12:50:41 +0000 (15:50 +0300)]
ICU-21280 Correct source bytes counting in UTF8->UTF8 conversion

4 years agoICU-20568 Improve MacroProps error handling.
Hugo van der Merwe [Thu, 10 Sep 2020 22:03:31 +0000 (00:03 +0200)]
ICU-20568 Improve MacroProps error handling.

In particular: actually handle Usage memory allocation errors.
Also: correct Scale's error condition.

4 years agoICU-21249 integrate CLDR release-38-alpha2 to ICU trunk
Peter Edberg [Sat, 12 Sep 2020 23:48:36 +0000 (16:48 -0700)]
ICU-21249 integrate CLDR release-38-alpha2 to ICU trunk

4 years agoICU-21287 Enable asserts for 'ant checkTest'
Hugo van der Merwe [Tue, 15 Sep 2020 21:18:37 +0000 (23:18 +0200)]
ICU-21287 Enable asserts for 'ant checkTest'

4 years agoICU-21163 Update URL to lao-dictionary project in LICENSE
Eberhard Beilharz [Fri, 12 Jun 2020 18:29:34 +0000 (20:29 +0200)]
ICU-21163 Update URL to lao-dictionary project in LICENSE

4 years agoICU-21249 Adds #if !UCONFIG_NO_FORMATTING around all code in number_symbolswrapper...
gnrunge [Tue, 15 Sep 2020 20:34:10 +0000 (13:34 -0700)]
ICU-21249 Adds #if !UCONFIG_NO_FORMATTING around all code in number_symbolswrapper.cpp.
If UCONFIG_NO_FORMATTING is set to 1 in uconfig.h nothing in
number_symbolswrapper.cpp compiles. Note, for example, that the entirety
of the included numberformatter.h header file is inclosed in
!UCONFIG_NO_FORMATTING.

ICU-21249 Properly arrange #if !UCONFIG_NO_FORMATTING.

4 years agoICU-21249 Adds #if !UCONFIG_NO_BREAK_ITERATOR to prevent compilation
gnrunge [Tue, 15 Sep 2020 18:38:20 +0000 (11:38 -0700)]
ICU-21249 Adds #if !UCONFIG_NO_BREAK_ITERATOR to prevent compilation
error (toTitle() not found) when this configuration flag is set.

4 years agoICU-20568 Cleanup: drop declaration for no longer existing factory.
Hugo van der Merwe [Wed, 16 Sep 2020 09:03:49 +0000 (11:03 +0200)]
ICU-20568 Cleanup: drop declaration for no longer existing factory.

4 years agoICU-21021 Changing MeasureUnit::splitToSingleUnits to return std::pair
Shane F. Carr [Tue, 15 Sep 2020 01:38:32 +0000 (20:38 -0500)]
ICU-21021 Changing MeasureUnit::splitToSingleUnits to return std::pair

4 years agoICU-21249 Fix TODOs to reference ICU-21284 instead of ICU-20920
Shane F. Carr [Tue, 15 Sep 2020 02:00:32 +0000 (21:00 -0500)]
ICU-21249 Fix TODOs to reference ICU-21284 instead of ICU-20920

4 years agoICU-21249 Remove obsolete TODO for ICU-13591
Shane F. Carr [Tue, 15 Sep 2020 01:52:38 +0000 (20:52 -0500)]
ICU-21249 Remove obsolete TODO for ICU-13591

4 years agoICU-21249 Fix logKnownIssue for ICU-13574
Shane F. Carr [Tue, 15 Sep 2020 01:48:40 +0000 (20:48 -0500)]
ICU-21249 Fix logKnownIssue for ICU-13574

4 years agoICU-21248 Adds internal header check to Travis Continued Integration.
gnrunge [Fri, 11 Sep 2020 21:59:35 +0000 (21:59 +0000)]
ICU-21248 Adds internal header check to Travis Continued Integration.

See #1325

4 years agoICU-20568 Implementation of UnitConverter, ComplexUnitConverter and UnitsRouter
younies [Tue, 15 Sep 2020 15:22:41 +0000 (15:22 +0000)]
ICU-20568 Implementation of UnitConverter, ComplexUnitConverter and UnitsRouter

See #1279

4 years agoICU-20775 Complete set of toDecimalNumber functions in ICU4C
Shane F. Carr [Sat, 12 Sep 2020 00:18:33 +0000 (00:18 +0000)]
ICU-20775 Complete set of toDecimalNumber functions in ICU4C

See #1310

4 years agoICU-20568 Correct the numberformatter.h docs for usage()
Hugo van der Merwe [Mon, 14 Sep 2020 09:12:04 +0000 (11:12 +0200)]
ICU-20568 Correct the numberformatter.h docs for usage()

4 years agoICU-21196 Clarify API docs that input strings must out-live the object in ucoleiter...
Jeff Genovy [Thu, 10 Sep 2020 05:01:00 +0000 (22:01 -0700)]
ICU-21196 Clarify API docs that input strings must out-live the object in ucoleiter.h and usearch.h

4 years agoICU-21010 MeasureUnit extension in Java
younies [Mon, 14 Sep 2020 16:28:03 +0000 (16:28 +0000)]
ICU-21010 MeasureUnit extension in Java

See #1275

4 years agoICU-21225 Conflicting documentation for stand alone quarter
Robert Melo [Sat, 29 Aug 2020 17:29:27 +0000 (14:29 -0300)]
ICU-21225 Conflicting documentation for stand alone quarter

4 years agoICU-20651 add setContext/getContext for [U]DateIntervalFormat
Peter Edberg [Wed, 9 Sep 2020 07:07:25 +0000 (00:07 -0700)]
ICU-20651 add setContext/getContext for [U]DateIntervalFormat

4 years agoICU-21277 Update kramdown version in Gemfile.lock (User Guide) for CVE.
Jeff Genovy [Wed, 9 Sep 2020 21:48:35 +0000 (14:48 -0700)]
ICU-21277 Update kramdown version in Gemfile.lock (User Guide) for CVE.

4 years agoICU-21249 Fix common/uniquecharstr.h to pass the internal header check: include uasse...
gnrunge [Thu, 10 Sep 2020 20:52:58 +0000 (13:52 -0700)]
ICU-21249 Fix common/uniquecharstr.h to pass the internal header check: include uassert.h needed.

4 years agoICU-21267 stop using FALSE & TRUE macros in most library-internal headers
Markus Scherer [Thu, 10 Sep 2020 20:11:13 +0000 (13:11 -0700)]
ICU-21267 stop using FALSE & TRUE macros in most library-internal headers

4 years agoICU-20568 Support smart units / unit contexts / preferences
Hugo van der Merwe [Tue, 11 Aug 2020 15:54:10 +0000 (17:54 +0200)]
ICU-20568 Support smart units / unit contexts / preferences

Explore Usage-related error codes, address icu-units/icu#36.
PR: https://github.com/icu-units/icu/pull/56
Commit: d5d7fdccfef887bb1af180bba3e2a0286dc32135

Implement Precision handling in UsagePrefsHandler::processQuantity
PR: https://github.com/icu-units/icu/pull/61
Commit: 16547f32986600a46e4adf20a6870c1708dd1c75

Support Mixed Units in NumberFormatter when using usage()
PR: https://github.com/icu-units/icu/pull/52
Commit: cc5a12202133855e15ffba889acffc10aad2d46b

For MixedUnits, use the correct ListFormatter styles.
PR: https://github.com/icu-units/icu/pull/66
Commit: 77bb747002d36626386f18e45c68c44b276cf575

Read the CLDR testData test files from the new location.
PR: https://github.com/icu-units/icu/pull/68
Commit: 6eb992e2b3c0bbe4870b554a5aa855b3636566d4

Fix double-precision maths in unit conversions
PR: https://github.com/icu-units/icu/pull/71
Commit: 78e88fbddef0f6817654d58c9c5dfeb6606324b9

Support .unit(MIXED_UNIT) without .usage(...).
PR: https://github.com/icu-units/icu/pull/72
Commit: 56ac7959375b8c9363ff022185165e52490c6c00

More commits:
- Reorder numbertest_api.cpp tests for consistent order.
- NumberFormatterApiTest: fold unitPipeline() into unitCompoundMeasure()
- Add some 'template class' instantiations for MSVC.
- Make trimField handle all whitespace, improve test messages
- Drop templated 'appendAll': it requires copy constructor
- Add protected MaybeStackArray::copyFrom()
- Add TODO(icu-units#67) and commented-out test case: use kUndefinedField for now
- Provide correct output order for units like "inch-and-foot"
- MSVC: export MaybeStackVector<MeasureUnit>
- Code review feedback: dependencies.txt and doc comments
- Consistent naming for code files: units_*

4 years agoICU-20568 Use `Impl` libraries, add precision UnitsRouter#route output
younies [Tue, 23 Jun 2020 12:46:50 +0000 (14:46 +0200)]
ICU-20568 Use `Impl` libraries, add precision UnitsRouter#route output

Add precision to the output of UnitsRouter#route
PR: https://github.com/icu-units/icu/pull/10
Commit: 030bda3ec86a02b190a83798a7c9be530a335067

Use `Impl` libraries for all internal libraries
PR: https://github.com/icu-units/icu/pull/15
Commit: cc786cfb3bee3c72e78a928da8b9a6fd58f31b04

Sort the units in ComplexUnitConverter
PR: https://github.com/icu-units/icu/pull/6
Commit: f65b181c4447bb4eb9eef5dc20ea1b296d053ffa

4 years agoICU-20568 Implement Usage "Glue Code" and skeleton support. Tests.
Hugo van der Merwe [Thu, 30 Apr 2020 10:54:11 +0000 (12:54 +0200)]
ICU-20568 Implement Usage "Glue Code" and skeleton support. Tests.

CLDR-13488: Samples of intermediate source/data/misc/units.txt
PR: https://github.com/icu-units/icu/pull/5
Commit: 08132e7a3388e055590e5ba60ba37c9b5a87b900

Unit test improvements (the rest of PR already upstreamed).
PR: https://github.com/sffc/icu/pull/40
Commit: e92a2fcffbbcb92868954f28e3366568e6b3cc7c

Use namespace ::icu::units::impl for units-related code.
PR: https://github.com/icu-units/icu/pull/16
Commit: 57b35a8a93e751aa73a190e63da494d24fd67bef

Export addSingleFactorConstant in header file
PR: https://github.com/icu-units/icu/pull/17
Commit: f357b5558ebc2f0aab53886492beae7f17d9c3cc

Fix MeasureUnit identifiers to be spec-compliant.
PR: https://github.com/icu-units/icu/pull/18
Commit: 69c087154b871b53fdba978bfa1b1ba4c4e71594

Cleanup: IWYU headers (with some exceptions), SigNum -> Signum
PR: https://github.com/icu-units/icu/pull/19
Commit: 1c29a6bcc74c113a7d51b008a93cd7986437c841

Test that addSingleFactorConstant knowns all unitConstants.
PR: https://github.com/icu-units/icu/pull/20
Commit: 6c0c3bb64080354ea109d1356b98ac7a3a97f443

Add Unit Usage support to Number Skeletons.
PR: https://github.com/icu-units/icu/pull/33
Commit: 3cf23222ca8c7fa394e3ed37ec8333f5e86c6807

Fix some compiler warnings
PR: https://github.com/icu-units/icu/pull/43
Commit: be11edb0bd70a6857ea24e7427725b803263481d

4 years agoICU-20568 UnitsRouter, ComplexUnitConverter, numberformatter.h
younies [Wed, 11 Mar 2020 22:11:23 +0000 (23:11 +0100)]
ICU-20568 UnitsRouter, ComplexUnitConverter, numberformatter.h

add usage to number formatter settings header
PR: https://github.com/sffc/icu/pull/23
Commit: 6d78a95d6dbe0ef946624e7253f57d414168c77a

Implementation of UnitsRouter and ComplexUnitConverter.
PR: https://github.com/sffc/icu/pull/30
Commit: 1ae7190d1950377d5fdab822bb65eb67a8891104

4 years agoICU-20568 getPreferencesFor() and getUnitCategory()
Hugo van der Merwe [Thu, 23 Jul 2020 15:19:51 +0000 (17:19 +0200)]
ICU-20568 getPreferencesFor() and getUnitCategory()

UnitPreferences class in unitsdata.cpp
PR: https://github.com/sffc/icu/pull/42
Commit: 24494d985e1eeb60e5daa450e26f7f0c3437a246

Add getUnitCategory()
PR: https://github.com/sffc/icu/pull/43
Commit: d406b915c4985e541b0d4cd8c324bcfdb0b7f194

Support usage component dropping, and more
PR: https://github.com/sffc/icu/pull/45
Commit: 6b14d7f1a0fa16fc6f80ca4fc87f17a8c687cb28

Add six more unit tests for getPreferencesFor.
PR: https://github.com/sffc/icu/pull/46
Commit: 5e4f8d4fe490ab82682ba233e0e6d38e8bf570a0

Change getPreferencesFor parameters from char* to StringPiece.
PR: https://github.com/sffc/icu/pull/47
Commit: a7ca496f9e60ad22dc9526259873b6f2bf52dd86

4 years agoICU-20568 Add unit converter.
younies [Tue, 31 Mar 2020 15:16:32 +0000 (17:16 +0200)]
ICU-20568 Add unit converter.

Add unit converter.
PR: https://github.com/sffc/icu/pull/21
Commit: 9bcc4b698ff4b2afbf321188bceff809a27342f2

add comment about ratesInfo param in UnitConverter
PR: https://github.com/icu-units/icu/pull/55
Commit: cbed63622771dfc3b3e3c44346f1e530f1b86b65

4 years agoICU-20568 testConversions: test convertibility of unitsTest.txt test cases.
Hugo van der Merwe [Tue, 28 Apr 2020 19:48:28 +0000 (21:48 +0200)]
ICU-20568 testConversions: test convertibility of unitsTest.txt test cases.

PR: https://github.com/sffc/icu/pull/39
Commit: 3202693e542e300e235096557777d4892548d676

4 years agoICU-20568 Check convertible units
younies [Mon, 30 Mar 2020 12:43:50 +0000 (14:43 +0200)]
ICU-20568 Check convertible units

PR: https://github.com/sffc/icu/pull/32
Commit: 3bf35258f42f8aca893f6ebfb9a019c2e1ee5563

4 years agoICU-20568 unitsdata.cpp/.h and associated tests
Hugo van der Merwe [Thu, 5 Mar 2020 15:33:08 +0000 (16:33 +0100)]
ICU-20568 unitsdata.cpp/.h and associated tests

Read unitsTest.txt, prepare to run unit tests.
PR: https://github.com/sffc/icu/pull/20
Commit: 9f65f41f183ded57efdf4f7c0cdf56c02e441024

No-op/cosmetic: reformat with clang-format ident:4 line-length:105.
PR: https://github.com/sffc/icu/pull/25
Commit: 4be0a2bc55fc3567f790a53cc988abd4c3508419

Parse unitPreferencesTest.txt preparing to run data-driven tests
PR: https://github.com/sffc/icu/pull/26
Commit: 9e021f9b6fbee06283ef4c45dbfe5c7b3abd2dbf

Improve test output: no more fprintfs.
PR: https://github.com/sffc/icu/pull/34
Commit: 12a5289238d68e3aa184727d7d7af55d386613c7

Update to latest CLDR test files: b7a23f3f41 CLDR-13587.
PR: https://github.com/sffc/icu/pull/33
Commit: 44e9afb32187529a4599548c42f70c7deb3e46bf

Add unitsdata.cpp, getConversionRatesInfo, and unit tests.
PR: https://github.com/sffc/icu/pull/31
Commit: ca34233e0804c1175f210e5557bb984da2eab244

Update unitsTest.txt and unitPreferencesTest.txt from current CLDR master
PR: https://github.com/sffc/icu/pull/41
Commit: be7f69941ddf4373e9d66149e95f5b8345d7de5d

4 years agoICU-20568 Skeleton for Testing Units
younies [Thu, 16 Jan 2020 16:16:19 +0000 (17:16 +0100)]
ICU-20568 Skeleton for Testing Units

PR: https://github.com/sffc/icu/pull/6
Commit: 9b3ca66937c40044055bf9a8e13db57bcdc75fec

4 years agoICU-21272 Add Windows ARM64 Debug build to CI build configuration.
Jeff Genovy [Wed, 9 Sep 2020 20:19:57 +0000 (13:19 -0700)]
ICU-21272 Add Windows ARM64 Debug build to CI build configuration.

4 years agoICU-9961 replace U_DRAFT/U_STABLE/U_INTERNAL with U_CAPI
Markus Scherer [Wed, 9 Sep 2020 23:08:00 +0000 (16:08 -0700)]
ICU-9961 replace U_DRAFT/U_STABLE/U_INTERNAL with U_CAPI

4 years agoICU-21272 Making changes in makedata.mak to fix Debug cross-build for ARM & ARM64
shaobero [Thu, 10 Sep 2020 10:14:48 +0000 (10:14 +0000)]
ICU-21272 Making changes in makedata.mak to fix Debug cross-build for ARM & ARM64

4 years agoICU-21043 Fix calendar problems
Frank Tang [Fri, 4 Sep 2020 21:42:10 +0000 (14:42 -0700)]
ICU-21043 Fix calendar problems

This PR fixes
ICU-21043 Erroneous date display in indian calendar of all dates prior to 0001-01-01.
ICU-21044 Hebrew Calendar calculation is incorrect when the year < 1
ICU-21045 Erroneous date display in islamic and islamic-rgsa calendars of all dates prior to 0622-07-18.
ICU-21046 Erroneous date display in islamic-umalqura calendar of all dates prior to  -195366-07-23.

The problem in the indiancal.cpp is
* ICU-21043 the gregorian/julain convesion is wrong. Swith to use
i18n/gregoimp.h fix the problem.

The problem in the hebrwcal.cpp is
* ICU-21044 Use ClockMath::floorDivid to replace x / y for x maybe <  0
also need to fix incorrect value in test file

The problem in the islamcal.cpp:
* ICU-21045: The math of % negative number for year and month is wrong.
* ICU-21046: Not use int64_t methods and caused int32_t overflow while the year is a
huge negative number. Cast to int64_t to force using the int64_t version
for the math fix the problem.

Also add tests to exhaust test 8000 years for all calendar. In quick
mode, only test 2.5 years.

Switch to 0-based month. fix TZ for test.

4 years agoICU-21268 Adds NULL string checks to assert statements to prevent
gnrunge [Wed, 9 Sep 2020 20:46:35 +0000 (13:46 -0700)]
ICU-21268 Adds NULL string checks to assert statements to prevent
segmentation faults when unit tests run without ICU data.

ICU-21268 Fix value type: char* is not ompatible with u'..' value.

4 years agoICU-21267 stop defining & using FALSE & TRUE macros in public headers
Markus Scherer [Tue, 8 Sep 2020 17:58:37 +0000 (17:58 +0000)]
ICU-21267 stop defining & using FALSE & TRUE macros in public headers

See #1282

4 years agoICU-21106 avoid buffer overflow in u_fopen_u, fix WIN32_API fclose(NULL)
Peter Edberg [Mon, 7 Sep 2020 04:14:29 +0000 (21:14 -0700)]
ICU-21106 avoid buffer overflow in u_fopen_u, fix WIN32_API fclose(NULL)

4 years agoICU-21268 Add error checks to avoid segmentation faults if tests run with stubdata...
gnrunge [Thu, 3 Sep 2020 23:28:38 +0000 (16:28 -0700)]
ICU-21268 Add error checks to avoid segmentation faults if tests run with stubdata only.

ICU-21268 Use 'nullptr' instead of NULL when checking for pointer value.

ICU-21268: Fixes error message.

ICU-21268 Style fixes (space before '{').

4 years agoICU-21264 Re-enable optimizations for various functions on MSVC for VS2019 and above.
Jeff Genovy [Fri, 4 Sep 2020 18:58:40 +0000 (11:58 -0700)]
ICU-21264 Re-enable optimizations for various functions on MSVC for VS2019 and above.

4 years agoICU-21108 Add build using VS2015 toolset, fix job names.
Jeff Genovy [Fri, 4 Sep 2020 19:35:50 +0000 (12:35 -0700)]
ICU-21108 Add build using VS2015 toolset, fix job names.

4 years agoICU-21271 Fix valgrind failure in dtptngen.cpp
Jeff Genovy [Fri, 4 Sep 2020 19:15:20 +0000 (12:15 -0700)]
ICU-21271 Fix valgrind failure in dtptngen.cpp

4 years agoICU-21174 Drop MaybeStackVector::appendAll because it requires copy constructor
Hugo van der Merwe [Sat, 5 Sep 2020 11:54:36 +0000 (13:54 +0200)]
ICU-21174 Drop MaybeStackVector::appendAll because it requires copy constructor

4 years agoICU-21249 integrate CLDR release-38-alpha1 to ICU trunk
Peter Edberg [Fri, 4 Sep 2020 18:41:11 +0000 (11:41 -0700)]
ICU-21249 integrate CLDR release-38-alpha1 to ICU trunk

4 years agoICU-21164 Fixed bug in OlsonTimeZone constructor that could leave the object in a...
Rich Gillam [Wed, 26 Aug 2020 00:33:33 +0000 (17:33 -0700)]
ICU-21164 Fixed bug in OlsonTimeZone constructor that could leave the object in a not-fully-initialized state.

4 years agoICU-21257 remove #License fragment from license URLs
Markus Scherer [Fri, 4 Sep 2020 00:36:36 +0000 (17:36 -0700)]
ICU-21257 remove #License fragment from license URLs

4 years agoICU-21265 Increase git fetch depth on CI builds to allow rebuilding older commits.
Jeff Genovy [Thu, 3 Sep 2020 01:53:25 +0000 (18:53 -0700)]
ICU-21265 Increase git fetch depth on CI builds to allow rebuilding older commits.

4 years agoICU-21258 Refactor code and tests for compact data known issue
Shane F. Carr [Thu, 3 Sep 2020 02:02:45 +0000 (21:02 -0500)]
ICU-21258 Refactor code and tests for compact data known issue

4 years agoICU-21155 Add support for all hour and day-period skeleton characters to DateInterval...
Rich Gillam [Wed, 2 Sep 2020 22:11:49 +0000 (15:11 -0700)]
ICU-21155 Add support for all hour and day-period skeleton characters to DateIntervalFormat

4 years agoICU-20826 Updating C++ ListFormatter impl to be more like Java
Shane F. Carr [Fri, 14 Aug 2020 10:48:42 +0000 (05:48 -0500)]
ICU-20826 Updating C++ ListFormatter impl to be more like Java

4 years agoICU-21035 Delete meaningless calls to uloc_getKeywordValue().
Fredrik Roubert [Wed, 2 Sep 2020 19:15:56 +0000 (21:15 +0200)]
ICU-21035 Delete meaningless calls to uloc_getKeywordValue().

These two calls to uloc_getKeywordValue() write to the buffer "id" which
then immediately after is overwritten by calls to idForLocale() so they
can simply be removed without any loss of functionality.

4 years agoICU-21035 Update locale implementation to use ulocimp_getKeywordValue().
Fredrik Roubert [Wed, 2 Sep 2020 19:24:36 +0000 (21:24 +0200)]
ICU-21035 Update locale implementation to use ulocimp_getKeywordValue().

4 years agoICU-21262 add br collation for cldr-to-icu build
Peter Edberg [Thu, 3 Sep 2020 07:13:10 +0000 (00:13 -0700)]
ICU-21262 add br collation for cldr-to-icu build

4 years agoICU-21254 Add plural rule parsing for exponent operand in C++
Elango Cheran [Tue, 1 Sep 2020 23:06:51 +0000 (16:06 -0700)]
ICU-21254 Add plural rule parsing for exponent operand in C++

4 years agoICU-21249 Update instructions in StaticUnicodeSetsTest
Shane F. Carr [Thu, 3 Sep 2020 01:23:17 +0000 (20:23 -0500)]
ICU-21249 Update instructions in StaticUnicodeSetsTest

4 years agoICU-21249 Patch for failing exhastive unit tests
Shane F. Carr [Thu, 3 Sep 2020 01:13:06 +0000 (20:13 -0500)]
ICU-21249 Patch for failing exhastive unit tests

4 years agoICU-21035 Pass ByteSink from Locale::getKeywordValue() to uloc_getKeywordValue().
Fredrik Roubert [Wed, 2 Sep 2020 15:04:58 +0000 (17:04 +0200)]
ICU-21035 Pass ByteSink from Locale::getKeywordValue() to uloc_getKeywordValue().

This eliminates the need for a scratch buffer in Locale::getKeywordValue()
and also the need for counting bytes required in uloc_getKeywordValue(),
something that ByteSink will now handle correctly.

4 years agoICU-21249 Update numberpermutationtest.txt
Shane F. Carr [Wed, 2 Sep 2020 21:25:27 +0000 (16:25 -0500)]
ICU-21249 Update numberpermutationtest.txt

4 years agoICU-21236 Refactor UniqueCharStrings / CharStringMap
Frank Tang [Wed, 2 Sep 2020 01:17:44 +0000 (18:17 -0700)]
ICU-21236 Refactor UniqueCharStrings / CharStringMap

Move them UniqueCharStrings and CharStringMap from
loclikelysubtags.{h,cpp} to separate header files
so so we can reuse them to implement
https://github.com/unicode-org/icu/pull/1254

4 years agoICU-21108 Update to use/support VS2019, and add extra CI builds for VS2017 and VS2019.
Jeff Genovy [Wed, 2 Sep 2020 00:53:58 +0000 (17:53 -0700)]
ICU-21108 Update to use/support VS2019, and add extra CI builds for VS2017 and VS2019.

Change to use the Windows 10 SDK for Win32 (Win7) builds on the VS2019 ADO images.
The Windows 10 SDK is backwards compatible to Windows 7, if WINVER and
_WIN32_WINNT are set before compiling.

Clean up the vcxproj files from VC7.1

4 years agoICU-21261 Adds 'units' data to pseudolocale data generation. Also corrects the docume...
gnrunge [Tue, 1 Sep 2020 22:34:20 +0000 (15:34 -0700)]
ICU-21261 Adds 'units' data to pseudolocale data generation. Also corrects the documentation in a few places.

4 years agoICU-21249 integrate CLDR release 38 alpha0 to ICU trunk
Peter Edberg [Tue, 1 Sep 2020 06:22:03 +0000 (23:22 -0700)]
ICU-21249 integrate CLDR release 38 alpha0 to ICU trunk

4 years agoICU-20088 fix broken links (format_parse)
Robert Melo [Mon, 31 Aug 2020 23:28:27 +0000 (20:28 -0300)]
ICU-20088 fix broken links (format_parse)

4 years agoICU-20963 Add .clang-format file to icu4c/source
younies [Sat, 27 Jun 2020 07:26:28 +0000 (07:26 +0000)]
ICU-20963 Add .clang-format file to icu4c/source

See #1143

4 years agoICU-21051 Add copyright Remove License from sh
Frank Tang [Mon, 31 Aug 2020 22:14:37 +0000 (22:14 +0000)]
ICU-21051 Add copyright Remove License from sh

See #1281

4 years agoICU-20923 Fix compact notation with percent.
Shane F. Carr [Fri, 14 Aug 2020 06:44:02 +0000 (01:44 -0500)]
ICU-20923 Fix compact notation with percent.

4 years agoICU-13727 limit length of input for Punycode encode/decode
Markus Scherer [Mon, 31 Aug 2020 18:08:19 +0000 (18:08 +0000)]
ICU-13727 limit length of input for Punycode encode/decode

See #1241

4 years agoICU-21249 BRS68RC Version update and regenerate configure for v68
Erik Torres [Mon, 31 Aug 2020 18:28:38 +0000 (18:28 +0000)]
ICU-21249 BRS68RC Version update and regenerate configure for v68

BRS68RC Updating files for release

4 years agoICU-21247 Move #include "unicode/localpointer.h" into U_SHOW_CPLUSPLUS_API block
Victor Chang [Thu, 20 Aug 2020 14:50:49 +0000 (15:50 +0100)]
ICU-21247 Move #include "unicode/localpointer.h" into U_SHOW_CPLUSPLUS_API block

4 years agoICU-13727 add U_INPUT_TOO_LONG_ERROR & ICUInputTooLongException
Markus Scherer [Sat, 29 Aug 2020 00:34:37 +0000 (17:34 -0700)]
ICU-13727 add U_INPUT_TOO_LONG_ERROR & ICUInputTooLongException

4 years agoICU-21035 Replace backward compatibility _getVariant*() functions.
Fredrik Roubert [Fri, 28 Aug 2020 13:15:38 +0000 (15:15 +0200)]
ICU-21035 Replace backward compatibility _getVariant*() functions.

The one single caller of _getVariantEx() is _getVariant() and this in
turn only has 3 callers, one of which is commented out (so it can be
deleted), one of which doesn't actually do anything (so it too can be
deleted) and one which can be replaced by inlining the use of
CheckedArrayByteSink.

This also allows _getVariantEx() to be renamed to _getVariant() as it's
the only such function left now.

4 years agoICU-13416 change Armenian (hy) uppercase/titlecase of և ligature ech-yiwn
Markus Scherer [Sat, 29 Aug 2020 21:26:15 +0000 (14:26 -0700)]
ICU-13416 change Armenian (hy) uppercase/titlecase of և ligature ech-yiwn

4 years agoICU-21036 use StringBuilder(String str) not StringBuilder(int capacity)
Markus Scherer [Fri, 28 Aug 2020 23:59:08 +0000 (16:59 -0700)]
ICU-21036 use StringBuilder(String str) not StringBuilder(int capacity)