Commit graph

2127 commits

Author SHA1 Message Date
Hugo van der Merwe
0ad4614a04 ICU-21508 Rename 'master' to 'main' in docs, maven files, scripts, etc
See #1664
2021-03-24 18:56:50 +01:00
Peter Edberg
34030d911e ICU-21480 brs 69rc, adjust nonstable API macros 2021-03-15 09:43:54 -07:00
Peter Edberg
3dd1ca10df ICU-21532 In UTimeZoneLocalOption enum, add dummy value if U_HIDE_DRAFT_API 2021-03-11 10:40:24 -08:00
Shane F. Carr
b79c299f90 ICU-20886 Implement trailingZeroDisplay
See #1583
2021-03-04 08:19:59 -07:00
Rich Gillam
be039c5936 ICU-21480 Promoted all @draft ICU 67 APIs to @stable ICU 67. 2021-03-03 17:21:42 -08:00
yumaoka
53aa0505c5 ICU-21372 getOffsetFromLocal for C and C++
See #1610
2021-03-02 10:21:28 -08:00
Shane F. Carr
e8dfea9bb6 ICU-21493 Add more rounding modes in ICU4C
See #1575
2021-02-27 11:25:08 -07:00
Shane F. Carr
d7db6c1f86 ICU-20019 Implement withSignificantDigits option
See #1598
2021-02-27 02:01:21 -07:00
Shane F. Carr
e85938bd2c ICU-21203 ICU-21198 ICU-21479 Improve docs discoverability for NumberFormatter
See #1559
2021-02-25 14:16:25 -07:00
Shane F. Carr
1aa0dad8e0 ICU-21484 Add SignDisplay NEGATIVE 2021-02-25 03:10:27 +01:00
Hugo van der Merwe
b2d97ebcb4 ICU-20941 NumberFormatter: format arbitrary compound units, with inflections
See #1588.
2021-02-24 09:27:39 +01:00
Christoph Gohlke
4fd9b8de8d ICU-21210 Fix static builds on Windows 2021-02-18 12:24:36 -08:00
Shane F. Carr
b6687af59c ICU-20421 Add span fields to NumberRangeFormatter
See #1572
2021-02-18 09:56:48 -06:00
Hugo van der Merwe
1dbe70ac18 ICU-21123 Support unit inflections in ICU4C
See #1574
2021-02-17 23:36:40 +01:00
Peter Edberg
3333fd557c ICU-21480 integrate CLDR release 39 alpha0 to ICU trunk 2021-02-10 11:58:26 -08:00
Shane F. Carr
993e58a2c9 ICU-20888 Hide or remove old list formatter methods 2021-02-09 22:38:11 -06:00
Shane F. Carr
8196fc14ac ICU-21275 Remove obsolete functions from numberrangeformatter.h 2021-02-09 16:10:20 -06:00
Hugo van der Merwe
7feb300a87 ICU-21284 More MeasureFormatTest and NumberFormatterApiTest test cases
See #1530
2021-02-08 21:51:24 +01:00
Hugo van der Merwe
01da2732b7 ICU-21349 Improve forIdentifier docs to exclude long_unit_identifier. 2021-01-27 19:02:45 +01:00
Hugo van der Merwe
1c61c57ece ICU-21357 Support IEC Binary Prefixes in MeasureUnit
See #1474
2021-01-27 15:34:10 +01:00
gnrunge
3c9f5aa9b2 ICU-21464 Modifies comments to address warnings when Doxygen 1.8.20 is used to
build the ICU4C docs. Typical changes: avoid linebreaks in {@link ...}
declarations, remove duplicate @param declaration.
The document building task in GHA CI is designed to fail upon warnings but
currently still passes because GHA uses an older version of Doxygen.

ICU-21464 Fix a typo.
2021-01-26 15:13:58 -08:00
Younies Mahmoud
0895a223a3 ICU-21349 Adjust C++ MeasureUnitImpl::serialize to be as same as the Java one
See #1496
2021-01-13 22:31:05 +01:00
Erik Torres Aguilar
bd3b202741 ICU-21018 Fix typos across repo that start with letter A
See #1506
2021-01-06 15:15:35 -08:00
Erik Torres Aguilar
6eea259143 ICU-21018 Fix typos across repo that start with letter C
See #1525
2021-01-06 15:15:26 -08:00
inokawa
bb5d29b143 ICU-21416 Fix typos in comments 2020-12-09 14:17:14 -08:00
Jeff Genovy
8f787b6de9 ICU-21388 Remove test case that does nothing so that we can mark RuleBasedCollator as final. 2020-12-04 15:47:40 -08:00
Hugo van der Merwe
3d706fac42 ICU-21349 fix comment for CLDR identifiers
See #1481
2020-11-25 19:36:08 +04:00
Shane F. Carr
a593239dba
ICU-21389 Merge maint/maint-68 to master 2020-11-16 18:50:26 -06:00
Rich Gillam
87643423be ICU-21343 Added code to keep us from messing up quoted literal pattern text when performing find-and-replace
operations on it.
2020-10-23 10:05:01 -07:00
Shane F. Carr
340271c225 ICU-21334 Promote ICU4C ListFormatter openForType to stable.
Also fixes ICU-20957 and ICU-21286.
2020-10-22 01:48:50 -05:00
Hugo van der Merwe
0439cc5f7b ICU-21311 Fix code generation in MeasureUnitTest.java and use it 2020-10-20 23:52:14 +02:00
Richard Gillam
5de5cabfb0 ICU-21249 Add new U_HIDE_INTERNAL_API guards 2020-10-06 10:09:18 -07:00
Elango Cheran
6700602974 ICU-21270 Support exponent in FixedDecimal and samples in C++ 2020-10-02 09:21:29 -07:00
Hugo van der Merwe
a84fdd0e90 ICU-21266 Support toSkeleton() for all functional Unit Formatters
See #1347
2020-10-01 02:51:27 +02:00
Hugo van der Merwe
a08ac00c67 ICU-21304 Update old userguide links to unicode-org.github.io 2020-10-01 01:28:05 +02:00
Rich Gillam
1ff371c225 ICU-21249 ICU4C API promotions 2020-09-28 17:19:04 -07:00
Hugo van der Merwe
81d43a2092 ICU-20568 Fix "1 foot 12 inches" behaviour
See #1337
2020-09-23 08:10:22 +02:00
Peter Edberg
3d8ae5eb6d ICU-20590 Ensure time format consistency for SHORT vs j patterns if no locale data 2020-09-22 22:50:36 -07:00
Shane F. Carr
6b3a7a64ab ICU-21190 Adding PluralRules select for number ranges
See #1309
2020-09-22 15:49:30 -05:00
Markus Scherer
8dc85529e1 ICU-21249 add hide-draft guards for some @draft ICU 68 API 2020-09-20 21:04:41 -05:00
Hugo van der Merwe
c84ded050a 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.
2020-09-17 12:11:26 +02:00
Hugo van der Merwe
5ed09dc9b8 ICU-20568 Improve MacroProps error handling.
In particular: actually handle Usage memory allocation errors.
Also: correct Scale's error condition.
2020-09-17 01:13:45 +02:00
Shane F. Carr
5a35a31e9a ICU-21021 Changing MeasureUnit::splitToSingleUnits to return std::pair 2020-09-15 20:53:51 -05:00
Shane F. Carr
6198151510 ICU-20775 Complete set of toDecimalNumber functions in ICU4C
See #1310
2020-09-14 21:02:59 -05:00
Hugo van der Merwe
a667b279d4 ICU-20568 Correct the numberformatter.h docs for usage() 2020-09-14 20:18:25 +02:00
Jeff Genovy
dd372dc104 ICU-21196 Clarify API docs that input strings must out-live the object in ucoleiter.h and usearch.h 2020-09-14 11:14:12 -07:00
Peter Edberg
74c66351d8 ICU-20651 add setContext/getContext for [U]DateIntervalFormat 2020-09-11 20:12:44 -07:00
Hugo van der Merwe
e3123c83a4 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: d5d7fdccfe

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

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

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

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

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_*
2020-09-10 22:39:18 +02:00
Hugo van der Merwe
7ed2a2d233 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: 08132e7a33

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

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

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

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

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

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

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

Fix some compiler warnings
PR: https://github.com/icu-units/icu/pull/43
Commit: be11edb0bd
2020-09-10 22:39:18 +02:00
younies
72056d4df2 ICU-20568 UnitsRouter, ComplexUnitConverter, numberformatter.h
add usage to number formatter settings header
PR: https://github.com/sffc/icu/pull/23
Commit: 6d78a95d6d

Implementation of UnitsRouter and ComplexUnitConverter.
PR: https://github.com/sffc/icu/pull/30
Commit: 1ae7190d19
2020-09-10 22:39:18 +02:00