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
Frank Tang
638acd0c38
ICU-21374 Add a CFI build bot for ICU4C
...
Add the github action bot to build with cfi
Also fix all the known issues which require the change from C style cast to
static_cast inside the i18n and common directory while we are sure about
the object. and use
C++ style dynamic_cast for base-to-derive cast in other code inside i18n
and common and in test code or tool.
Change to use const_cast for casting between const / non-const
2023-02-06 15:47:14 -08: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
Markus Scherer
d4c92ebcfc
ICU-21635 Unicode 14 beta
2021-06-21 22:26:15 +00:00
Roman Savchenko
5a42118a6f
ICU-21280 Correct source bytes counting in UTF8->UTF8 conversion
2020-09-16 17:50:21 -07:00
Shane F. Carr
3b0772fff9
ICU-21015 Fixing gcc compiler warnings
2020-04-03 01:56:07 -05:00
Andy Heninger
5f837abd40
ICU-13533 Fix address sanitizer failures found with no-data ICU testing.
2019-08-19 13:29:32 -07:00
Markus Scherer
98f9170004
ICU-20250 make UnicodeSet(intprop=value) faster
...
- fastpath for UnicodeSet.add(new last range)
- fewer UnicodeSet memory allocations:
initial internal list array, exponential array growth,
allocate strings list/set only when first one is added
- faster CodePointTrie.getRange(): fewer calls to filter function
- revert UnicodeSet(intprop=value) from trie ranges to range starts + lookup
- cache per-int-prop range starts: fewer lookups
2018-11-12 16:05:57 -08:00
Markus Scherer
0dc85d2408
ICU-13560 make some toUnicode converter check toULength not toUnicodeStatus for continuing after partial sequences; ucnv.cpp framework code only resets toULength after an error
...
X-SVN-Rev: 40793
2018-01-23 21:32:36 +00:00
Markus Scherer
90b7a6e4e8
ICU-13510 test & fix UTF-8->UTF-8 conversion overflow for supplementary characters
...
X-SVN-Rev: 40715
2017-12-08 21:47:21 +00:00
Markus Scherer
c1a8c3a771
ICU-13510 test & fix UTF-8->UTF-8 conversion overflow
...
X-SVN-Rev: 40714
2017-12-08 20:46:04 +00:00
Markus Scherer
03f431d30d
ICU-13340 obsolete unicode/utf_old.h: add U_HIDE_OBSOLETE_UTF_OLD_H to optionally hide all of the .h contents; default: no behavior change; adjust code & tests to work either way
...
X-SVN-Rev: 40413
2017-09-14 06:24:35 +00:00
Peter Edberg
694ea699d2
ICU-13077 Fix ICU4C test code that crashes when data file is missing (add NULL checks etc)
...
X-SVN-Rev: 39960
2017-03-30 06:45:38 +00:00
Andy Heninger
04448b004f
ICU-12764 UTF-8 source files, update file encoding comments.
...
X-SVN-Rev: 39641
2017-02-03 18:57:23 +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
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
981f1e0231
ICU-10551 not U+%06X but U+%04X
...
X-SVN-Rev: 36513
2014-09-15 20:28:44 +00:00
Michael Ow
b927a043f8
ICU-10551 Fix error message print out of codepoints
...
X-SVN-Rev: 36510
2014-09-15 19:06:18 +00:00
Michael Ow
62c4c3530d
ICU-10551 Update test to check non-ignorable code points and fix comments
...
X-SVN-Rev: 36443
2014-09-10 23:23:56 +00:00
Steven R. Loomis
7594250cc5
ICU-7653 changed uprv_lengthof to UPRV_LENGTHOF, also added apidoc
...
X-SVN-Rev: 36275
2014-08-28 22:13:45 +00:00
Tom Zhang
ee1f29b584
ICU-7653 move LENGTHOF(array) to common, internal header
...
X-SVN-Rev: 36265
2014-08-28 14:55:34 +00:00
Michael Ow
9a4ae3b440
ICU-10551 Make ICU converter callbacks ignore default ignorable code points
...
X-SVN-Rev: 36199
2014-08-18 21:26:34 +00:00
Markus Scherer
dba8bad06b
ICU-9602 tell ICU4J to ignore conversion test data for good one-way mappings
...
X-SVN-Rev: 33249
2013-02-16 00:16:09 +00:00
Michael Ow
c126788bab
ICU-7592 Update the conversion data driven test cases and test code to handle new configuration for skipping test in ICU4J.
...
X-SVN-Rev: 28029
2010-05-06 19:05:52 +00:00
Markus Scherer
98fd35991b
ICU-7247 use almost every one of the LocalXyzPointer classes at least once
...
X-SVN-Rev: 26955
2009-11-20 06:28:25 +00:00
Michael Ow
c6385f6209
ICU-7068 Add statements to ensure that uconfigtest passes
...
X-SVN-Rev: 26466
2009-08-04 21:09:17 +00:00
Michael Ow
737d833448
ICU-6955 Fix potential error in mbcs and add more code coverage test cases.
...
X-SVN-Rev: 26194
2009-06-29 03:57:23 +00:00
Michael Ow
6b1f9ef27c
ICU-6905 Make intltest pass without any data.
...
X-SVN-Rev: 26096
2009-06-12 19:34:21 +00:00
Michael Ow
b02865cecf
ICU-2498 Make intltest pass w/o data.
...
X-SVN-Rev: 23784
2008-04-10 23:19:16 +00:00
George Rhoten
16606cd531
ICU-5955 Fix a memory leak and a compiler warning.
...
X-SVN-Rev: 23033
2007-12-06 17:12:29 +00:00
George Rhoten
bc4a8b72c1
ICU-6001 Fix callback
...
X-SVN-Rev: 22906
2007-11-08 21:06:10 +00:00
Markus Scherer
49868a5a68
ICU-6001 fix ucnv_getUnicodeSet(LMBCS)
...
X-SVN-Rev: 22850
2007-10-25 05:17:43 +00:00
Markus Scherer
b90b809ea1
ICU-6002 HZ: restrict byte values and fix various bugs
...
X-SVN-Rev: 22849
2007-10-25 05:03:34 +00:00
Markus Scherer
31b85e745d
ICU-6001 UCNV_ROUNDTRIP_AND_FALLBACK_SET for ucnv_getUnicodeSet(); improve set filtering; fix some bugs
...
X-SVN-Rev: 22847
2007-10-24 21:15:41 +00:00
George Rhoten
7d40e796f4
ICU-5574 Fix for AIX
...
X-SVN-Rev: 21199
2007-03-09 00:28:01 +00:00
George Rhoten
e3b53c31cc
ICU-5574 Add check for offset buffer overflow
...
X-SVN-Rev: 21142
2007-03-01 12:36:47 +00:00
Markus Scherer
9acca77737
ICU-5518 merge direct-from-UTF-8 conversion code from http://source.icu-project.org/repos/icu/icu/branches/markus/ucnvutf8 -r 20735:20990 to icu/trunk
...
X-SVN-Rev: 21010
2007-02-06 05:24:14 +00:00
Markus Scherer
6264fe3f47
ICU-5188 allow empty substitution string
...
X-SVN-Rev: 19791
2006-07-06 06:19:23 +00:00
Markus Scherer
8e5f03bcd1
ICU-5188 add ucnv_setSubstString()
...
X-SVN-Rev: 19789
2006-07-05 23:08:50 +00:00
George Rhoten
401f909a49
ICU-4707 Fix some compiler warnings.
...
X-SVN-Rev: 19445
2006-03-26 00:32:27 +00:00
George Rhoten
62e47ceb17
ICU-3905 Fix some compiler warnings
...
X-SVN-Rev: 16760
2004-11-04 23:43:46 +00:00
George Rhoten
6038ee28f5
ICU-3662 Move data based test framework to test library
...
X-SVN-Rev: 14733
2004-03-23 06:37:36 +00:00
Markus Scherer
725457bca6
ICU-3445 fix tests for UCONFIG_NO_...
...
X-SVN-Rev: 14099
2003-12-11 17:40:28 +00:00
Markus Scherer
ed04cce2c3
ICU-3189 bug fix
...
X-SVN-Rev: 14074
2003-12-10 14:53:36 +00:00
Markus Scherer
981c9d4701
ICU-3189 test ucnv_fromUChars() and ucnv_toUChars() on ISO-2022-JP/CN with all-ASCII text
...
X-SVN-Rev: 14073
2003-12-10 05:54:05 +00:00
Markus Scherer
1f1a599e69
ICU-3361 graceful display of large UnicodeSets
...
X-SVN-Rev: 14001
2003-12-04 19:37:53 +00:00