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
Jiawen Geng
c7e967c456
ICU-22401 fix build on MSVC with cpp20
2023-07-14 14:31:40 +02: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
luz paz
73eca0a9c9
ICU-21580 Fix typos in icu4c/
...
Found via `codespell -q 3 -L ans,anumber,atleast,ba,bre,hace,nd,nin,ois,rsource,som,sur,tht -S icu4c/source/data/zone,icu4c/source/data/lang`
ICU-21580 Fix source (related) typos
ICU-21580 Revert extraneous auto-encoding
ICU-21580 Re-add previous reverted fix without auto-encoding
2021-07-19 13:22:38 -05:00
Markus Scherer
18c4a69f80
ICU-9961 replace U_DRAFT/U_STABLE/U_INTERNAL with U_CAPI
2020-09-10 11:23:44 -07:00
Shane Carr
1ef18dc761
ICU-20708 Fixing edge cases with negative infinity and NaN.
2019-07-23 15:03:49 -07:00
Shane Carr
e318c0c374
ICU-20494 Fixes to very large magnitude exponents in number parsing.
...
- Do not depend on ArithmeticException string in ICU4J.
- Return correct string in ICU4C.
- Fix related issue in applyMaxInteger.
2019-03-25 07:17:36 -07:00
Peter Edberg
162aaf9aa5
ICU-20365 if roundingIncrement significance smaller than maxFrac, do not use it
2019-02-14 17:23:23 -08:00
Peter Edberg
ff04436fe5
ICU-20374 Formattable::internalGetCharString should produce int string for types kLong or kInt64
2019-02-05 14:42:21 -08:00
Shane Carr
53d8c8f3d1
ICU-20246 Fixing another integer overflow in number parsing.
2018-10-31 13:37:09 -07:00
Andy Heninger
09249d176b
ICU-13634 Fix Macintosh build error - missing include.
...
X-SVN-Rev: 41274
2018-04-25 03:38:04 +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
12b34e7c9e
ICU-13634 A variety of mostly minor changes to fix assorted unit test failures in ICU4C plus a few in ICU4J.
...
X-SVN-Rev: 41236
2018-04-17 08:05:20 +00:00
Shane Carr
2c6bf0d77e
ICU-13634 Refactoring affix-getting code to avoid the need to save the micro-props. Other assorted minor changes.
...
X-SVN-Rev: 41216
2018-04-11 11:10:52 +00:00
Shane Carr
cd92fa2c88
ICU-13634 Changing DecimalQuantity#toNumberString() to be DecimalQuantity#toScientificString() with slightly friendlier output syntax for better compatibility. More currency tweaks.
...
X-SVN-Rev: 41215
2018-04-11 05:52:58 +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
fe0725cd2a
ICU-13678 Changing Multiplier to use decNumber instead of double, in order to fix some unit tests. Refactored call sites to use a common DecNum wrapper class with constructors for string, double, and BCD.
...
X-SVN-Rev: 41198
2018-04-05 21:54:04 +00:00
Shane Carr
02669ad1bc
ICU-13634 Fixes for NumberFormatTest/TestExponential.
...
X-SVN-Rev: 41177
2018-03-30 07:22:24 +00:00
Shane Carr
e5bda1eb0e
ICU-13634 Various fixes to fix remaining compatibility issues in data-driven test. Includes fix for a memory sanitizer issue.
...
X-SVN-Rev: 41174
2018-03-30 04:28:53 +00:00
Shane Carr
a8f2471248
ICU-8610 Adding tests for number skeletons in C++. Adding error code handling to the setToDecNumber setter on DecimalQuantity. Refactoring char-to-uchar conversion in skeleton implementation code.
...
X-SVN-Rev: 41152
2018-03-24 05:46:28 +00:00
Shane Carr
94427dc200
ICU-13574 Replacing DigitList with DecimalQuantity through most of the code base.
...
X-SVN-Rev: 41064
2018-03-03 10:53:01 +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
Fredrik Roubert
3959b30d02
ICU-12140 Pass StringPiece by value, externally.
...
R=markus.icu@gmail.com
Review URL: https://codereview.appspot.com/306850043 .
X-SVN-Rev: 39064
2016-08-17 19:07:15 +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
Markus Scherer
a9c247a3cb
ICU-12166 annotate intended switch case fallthroughs
...
X-SVN-Rev: 38447
2016-03-01 07:44:57 +00:00
Andy Heninger
ff85125d2f
ICU-11439 Improve portability of DecimalFormat::getFixedDecimal().
...
X-SVN-Rev: 36893
2014-12-18 22:46:45 +00:00
Steven R. Loomis
58fd7c7583
ICU-7912 more review comments
...
X-SVN-Rev: 34428
2013-09-20 21:17:16 +00:00
Steven R. Loomis
4650ca64e3
ICU-7912 commit from review comments (thx)
...
X-SVN-Rev: 34416
2013-09-20 05:00:30 +00:00
Steven R. Loomis
ae061ff78f
ICU-7912 C wrapper for Formattable - UFormattable
...
X-SVN-Rev: 33849
2013-06-26 06:31:09 +00:00
Steven R. Loomis
4297072ccd
ICU-9714 now builds clean on IBM i- fix some test cases for ASCIIsms, fix formattable buffer size
...
X-SVN-Rev: 32905
2012-11-29 01:09:50 +00:00
Steven R. Loomis
9077d5dc25
ICU-9449 Merge in decimal format performance improvements from branch.
...
Improvements to 'howExpensiveIs' benchmark test.
Use internal digitlist in Formattable (save mallocs).
Enable fastpath by default.
Enable internal API "parse all input", returning an error if all input was not consumed.
X-SVN-Rev: 32397
2012-09-17 19:03:01 +00:00
Steven R. Loomis
43b918a0c8
ICU-9258 merge from branches, performance improvements
...
X-SVN-Rev: 31881
2012-05-30 00:41:57 +00:00
Markus Scherer
493668a25f
ICU-8573 remove support for U_IOSTREAM_SOURCE=198506
...
X-SVN-Rev: 30278
2011-07-05 23:42:32 +00:00
Andy Heninger
345c295b0f
ICU-8199 Fix compilation errors on MacOSX introduced by previous commit of these files
...
X-SVN-Rev: 29260
2011-01-04 19:01:12 +00:00
Andy Heninger
7a2d96c7c8
ICU-8199 Fix use of out-of-scope object in DigitList, and related rounding problems in Formattable::getInt64
...
X-SVN-Rev: 29259
2011-01-04 07:42:32 +00:00
Alexey Gousev
e69698280f
ICU-7911 fixed formatting issue
...
X-SVN-Rev: 28683
2010-09-22 19:59:41 +00:00
Markus Scherer
fd376b34c0
ICU-7496 add internal char * string class for C++ implementation code
...
X-SVN-Rev: 28082
2010-05-20 21:16:44 +00:00
Markus Scherer
f6a04770ff
ICU-7455 use compiler RTTI; stop adding poor mans RTTI to new class hierarchies
...
X-SVN-Rev: 28075
2010-05-19 17:29:33 +00:00
Andy Heninger
4e56218eb1
ICU-5193 Big decimal number formatting.
...
X-SVN-Rev: 27696
2010-02-26 02:29:00 +00:00
George Rhoten
de6512a9c1
ICU-6132 Undo some unneccessary changes. Remove some tabs. Make sure that the UErrorCode is propagated when possible. When a UErrorCode is available, don't check for a NULL return value.
...
X-SVN-Rev: 23479
2008-02-23 19:15:18 +00:00
Michael Ow
ab11db3686
ICU-6132 Add various error checks for fString.
...
X-SVN-Rev: 23206
2008-01-11 19:42:41 +00:00
George Rhoten
177c4eec63
ICU-4707 Fix some compiler warnings
...
X-SVN-Rev: 18987
2006-01-14 09:24:33 +00:00
Eric Mader
5dc3d7c9d4
ICU-4561 Update copyright notices for ICU 3.4
...
X-SVN-Rev: 17822
2005-06-07 23:38:09 +00:00