Fredrik Roubert
0178a07a26
ICU-22793 Clang-Tidy: google-readability-casting
...
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/google/readability-casting.html
2024-07-04 22:32:12 +02:00
Fredrik Roubert
ce052f52c2
ICU-22621 Clang-Tidy: readability-delete-null-pointer
...
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/readability/delete-null-pointer.html
2024-03-18 17:14:23 +01:00
Fredrik Roubert
2de88f9d9c
ICU-21833 Replace UChar with char16_t in all C++ code.
2023-02-06 19:27:44 +01:00
Fredrik Roubert
2e0d30cfcf
ICU-21833 Replace NULL with nullptr in all C++ code.
2023-02-03 20:20:38 +01:00
Fredrik Roubert
030fa1a479
ICU-21148 Consistently use standard lowercase true/false everywhere.
...
This is the normal standard way in C, C++ as well as Java and there's no
longer any reason for ICU to be different. The various internal macros
providing custom boolean constants can all be deleted and code as well
as documentation can be updated to use lowercase true/false everywhere.
2022-09-07 20:56:33 +02:00
Fredrik Roubert
0a1cfa398c
ICU-20973 Use standard keywords true & false to initialize type bool.
...
Now when all equality operators return standard bool (commit 633438f
),
it no longer makes any sense to use the ICU4C constants TRUE & FALSE
or local variables of type UBool for their return value.
2021-08-26 18:53:10 +02:00
Fredrik Roubert
633438f8da
ICU-20973 Change all equality operator return types from UBool to bool.
2021-08-17 00:35:00 +02:00
Robert Melo
440cef61a7
ICU-21071 Fix lenient parse rules
...
- Check non-lenient rules before call lenint parsing
- Remove logKnownIssue 9503 from test code
- Adjust TestAllLocales test on ICU4C
- Add lenient checks on ICU4J
2020-04-24 15:46:48 -03:00
Markus Scherer
d3315d98ef
ICU-20783 use C++ covariant return types
2019-08-23 11:45:36 -07:00
Markus Scherer
f02b496494
ICU-20783 C++ covariant return types: clone(), freeze() & friends
2019-08-22 16:24:41 -07:00
Shane Carr
035eead0e8
ICU-20423 Removing deprecated method toNumberFormatter()
2019-08-13 13:06:52 -07:00
Shane Carr
35b182767f
ICU-20409 Additional refactoring of FormattedValue implementations.
...
- Migrates Number[Range] formatter to helper macros.
- Adds additional macros.
- Syncs docstrings between subclasses.
2019-02-15 16:50:22 -08:00
Shane Carr
bc9710aa8b
ICU-13738 Makes DecimalFormat#toNumberFormatter() return by const-reference.
...
X-SVN-Rev: 41327
2018-05-05 01:47:12 +00:00
Shane Carr
ad116997ae
ICU-13634 Optimizing and adding a basic fastpath for small ints. Greatly increases the performance of DateFormat.
...
X-SVN-Rev: 41251
2018-04-19 09:29:39 +00:00
Shane Carr
597e3287fc
ICU-13135 Fixing and optimizing PluralFormat call site into NumberFormat in order to execute the formatting pipeline only once.
...
X-SVN-Rev: 41237
2018-04-17 10:18:42 +00:00
Shane Carr
73f93a457a
ICU-13634 Fixing DecimalQuantity call sites, first written in r41063, r41064, and r41098. RNBF test is passing again.
...
X-SVN-Rev: 41204
2018-04-06 09:35:16 +00:00
Shane Carr
453788ddfd
ICU-13634 Temporarily deleting all old number formatting implementation code. Pieces will be restored as needed. ICU4C builds, including tests, but won't run. Changes in plurfmt.cpp and plurrule.cpp are not tested. numberformat2test.cpp is unlinked but not deleted.
...
X-SVN-Rev: 41098
2018-03-13 08:12:05 +00:00
Shane Carr
3681a6803b
ICU-13574 Replacing decimfmt.cpp and compactdecimalformat.cpp with new, empty files. Removing most private and internal functions from decimfmt.h, and updating call sites to use newer API.
...
X-SVN-Rev: 41063
2018-03-03 08:26:58 +00:00
Andy Heninger
242e02c388
ICU-12764 icu4c utf-8 source files, update Copyright notices.
...
X-SVN-Rev: 39583
2017-01-20 00:20:31 +00:00
Andy Heninger
549c7646bf
ICU-12061 FieldPosition::DONT_CARE API status and doc update. Fix incorrect usage of FieldPosition(0).
...
X-SVN-Rev: 39017
2016-07-23 04:42:29 +00:00
Michael Ow
61607c2773
ICU-12564 Update copyright notice in trunk
...
X-SVN-Rev: 38848
2016-06-15 18:58:17 +00:00
Yoshito Umaoka
00ca13e126
ICU-12564 Reverted r38761 and r38762, because we want to prepend the Unicode copyright for existing source files, instead of replacing copyright comments.
...
X-SVN-Rev: 38776
2016-05-31 21:45:07 +00:00
Michael Ow
c9f199a30f
ICU-12564 Update copyright notice in ICU4C
...
X-SVN-Rev: 38761
2016-05-26 22:32:17 +00:00
Travis Keep
2860cd48c4
ICU-11740 DecimalFormat refactor.
...
X-SVN-Rev: 37821
2015-08-25 23:31:01 +00:00
George Rhoten
54930e302a
ICU-11532 Infinite loop while parsing an RBNF rule with plural format
...
X-SVN-Rev: 37105
2015-03-02 03:20:51 +00:00
George Rhoten
912521e5cf
ICU-11064 Fix a roundtripping problem when the fractional part is non-zero.
...
X-SVN-Rev: 36203
2014-08-19 17:13:07 +00:00
George Rhoten
eda8266715
ICU-11064 Add syntax for PluralFormat in RBNF
...
X-SVN-Rev: 36197
2014-08-18 20:47:36 +00:00
Markus Scherer
82e54bce50
ICU-10273 fix compiler warning
...
X-SVN-Rev: 34360
2013-09-17 19:53:09 +00:00
Markus Scherer
fb38bbbee8
ICU-10273 support plurals with decimals in MessageFormat and PluralFormat (ported from Java r34087 & r34276)
...
X-SVN-Rev: 34277
2013-09-11 23:32:37 +00:00
Markus Scherer
8d7428d1b3
ICU-9132 ordinal-plural formatting in C/C++
...
X-SVN-Rev: 31687
2012-04-07 04:27:27 +00:00
Markus Scherer
b72fb657f6
ICU-9048 add virtual ~PluralSelector()
...
X-SVN-Rev: 31241
2012-01-20 22:12:56 +00:00
Markus Scherer
a1c626ed90
ICU-8637 fix MessagePattern Part iteration when a plural style contains other followed by a different keyword, and the PluralRules return other
...
X-SVN-Rev: 30260
2011-06-30 18:34:23 +00:00
Michael Ow
4dc0689cab
ICU-8273 Delete object before creating a new one in PluralFormat copy assignment operator.
...
X-SVN-Rev: 29951
2011-05-02 05:58:17 +00:00
Markus Scherer
d743bb693e
ICU-8319 merge MessageFormat 2011q1 work into trunk, from icu/branches/markus/msg48 -r 29400:29882
...
X-SVN-Rev: 29886
2011-04-25 20:47:32 +00:00
Claire Ho
bb25d466b5
ICU-6586 code fixes after review.
...
X-SVN-Rev: 25374
2009-02-05 01:03:16 +00:00
Claire Ho
9e010c8ebe
ICU-6374 Support decimal fractions in PluralRules:select()
...
X-SVN-Rev: 24299
2008-06-26 17:51:59 +00:00
Steven R. Loomis
d59b5c5e4c
ICU-6344 uconfigtest / hdrtest fixes
...
X-SVN-Rev: 24157
2008-06-11 21:52:29 +00:00
Claire Ho
a5c9c6e123
ICU-6255 move static variables below U_NAMESPACE_BEGIN.
...
X-SVN-Rev: 23822
2008-04-23 16:14:27 +00:00
Claire Ho
cd79d31f28
ICU-5794 1. Missing assignment op in PluralFormat. 2. Incorrect init in getKeywords. 3. Always returns TRUE in isKeyword() if the input is OTHER.
...
X-SVN-Rev: 23796
2008-04-17 01:33:23 +00:00
George Rhoten
d7d3b0eaa7
ICU-5966 Fix some compiler warnings.
...
X-SVN-Rev: 23542
2008-03-07 22:35:49 +00:00
George Rhoten
d1551dee4e
ICU-5966 Fix some compiler warnings.
...
X-SVN-Rev: 23540
2008-03-07 19:40:46 +00:00
Claire Ho
89fd440ebc
ICU-5794 1. Fixed warnings. 2. Add mutex for hash table read. 3. Add more comments.
...
X-SVN-Rev: 23274
2008-01-20 02:30:30 +00:00
George Rhoten
8081ce1d2b
ICU-5794 Various fixes for the following items.
...
1) Pass the locale on for the PluralFormat constructor
2) Perform normal ICU error code handling so that parse errors aren't discarded.
3) Remove more C++ static initialization.
4) Remove spaces from test names so that they can be called from the command line.
5) Fix various compiler warnings.
X-SVN-Rev: 23141
2007-12-29 05:51:50 +00:00
George Rhoten
1f17b06512
ICU-5794 Fixes for Windows, build configuration and other issues.
...
X-SVN-Rev: 23100
2007-12-17 20:07:37 +00:00
Claire Ho
c11cd154da
ICU-5794 merge from feature branch.
...
X-SVN-Rev: 23095
2007-12-17 01:39:55 +00:00