Commit graph

145 commits

Author SHA1 Message Date
Fredrik Roubert
6ca288559f ICU-22936 Replace all ICU4C code that uses UBool as an integer. 2024-10-07 14:40:16 +02:00
Fredrik Roubert
55c5895923 ICU-22793 Clang-Tidy: google-readability-casting
https://releases.llvm.org/19.1.0/tools/clang/tools/extra/docs/clang-tidy/checks/google/readability-casting.html
2024-09-19 18:59:13 +02:00
Markus Scherer
0d8a3ccd11 ICU-22785 move Block bits from propsvec0 to new trie 2024-06-04 10:49:53 -07:00
Fredrik Roubert
85b7f5fda2 ICU-22604 Use 'void' for empty C parameter lists (-Wstrict-prototypes). 2023-12-19 09:27:01 +09:00
Peter Edberg
8d2c78d160 ICU-22357 Rename gb18030.ucm to add -2022, follow-on to PR #2430 2023-05-25 09:25:35 -07:00
Frank Tang
de0a28644b ICU-22251 Move sprintf to snprintf.
See #2291
2023-01-25 23:23:29 -08: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
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
Frank Tang
9a2177c575 ICU-21569 Add GA to test LSTM configuration
1. Add GA to test BreakIterator under LSTM configuration (remove Thai
and Burmese dictionary and include Thai and Burmese LSTM)
2. Add LSTMDataName for the purpose of testing.
3. Add file base test code to test BreakIterator match results from test
file generated by pythong code in
https://github.com/unicode-org/lstm_word_segmentation/blob/master/segment_text.py
4. Fix a LSTMBreakEngine::divideUpDictionaryRange bug when the return value
should only contains the number of words found when the passed in foundBreaks
already contains some data.
5. Change the cintltest TestSwapData from testing thaidict to laodict so
it will not break while we filter out thaidict under the LSTM
configuration.
2021-04-30 20:02:09 -07:00
Jeff Genovy
e72290c45e ICU-13764 Add separate CI build that treats warnings as errors with clang.
This adds a separate CI build that enables -Werror for clang.

This also fixes all of the -Wall -Wextra warnings in the tests, and all the
-Wextra-semi warnings as well.
2019-07-30 22:10:02 -07: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
Fredrik Roubert
7f4b8d106b ICU-12012 Replace all sizeof p / sizeof *p with UPRV_LENGTHOF().
R=markus.icu@gmail.com

Review URL: https://codereview.appspot.com/285520043 .

X-SVN-Rev: 38337
2016-02-23 10:40:09 +00:00
Michael Ow
7e3befc1a6 ICU-10992 Ensure ICU4C 54 test suite passes without data
X-SVN-Rev: 36516
2014-09-15 21:51:57 +00:00
Steven R. Loomis
a5f8e458af ICU-10981 disable this test under more situations
X-SVN-Rev: 36492
2014-09-13 04:22:36 +00:00
Steven R. Loomis
58f8e44c7d ICU-10981 round of uconfig.h fixes
X-SVN-Rev: 36491
2014-09-13 00:53:06 +00:00
Markus Scherer
0f78abc7ee ICU-9644 re-hardcode some normalization data: nfc.nrm
X-SVN-Rev: 36384
2014-09-08 03:05:56 +00:00
Andy Heninger
746aadf44a ICU-10942 Time Zone data loading, merge from branch.
X-SVN-Rev: 36342
2014-09-04 01:07:38 +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
Markus Scherer
e977c057a9 ICU-9101 merge branches/markus/collv2@35225 into the trunk
X-SVN-Rev: 35227
2014-02-25 21:21:49 +00:00
Michael Ow
0502015988 ICU-10331 Fix memory leak in data test
X-SVN-Rev: 34260
2013-09-10 17:03:42 +00:00
Steven R. Loomis
9a537be436 ICU-10331 move platform dependency out of udatatst.c , other fixes for msys/mingw
X-SVN-Rev: 34192
2013-09-04 22:36:52 +00:00
Andy Heninger
ae4350661b ICU-10048 Fix some compiler warnings in ICU4C.
X-SVN-Rev: 33444
2013-03-21 01:42:01 +00:00
Peter Edberg
cce314dc85 ICU-9581 Handle uconfig.h variations: fix errors and some of the old warnings
X-SVN-Rev: 32659
2012-10-18 19:51:28 +00:00
Maxime Serrano
c64c0299d7 ICU-9353 merge dbbi-tries work into the trunk
X-SVN-Rev: 32184
2012-08-16 23:01:49 +00:00
Michael Ow
782387a888 ICU-9168 Fix some uconfig test errors
X-SVN-Rev: 31574
2012-03-02 17:59:56 +00:00
Markus Scherer
9bcc40cf9e ICU-8452 un-autoconf platform.h, move user-configurable settings to uconfig.h, and other changes; from svn merge --reintegrate branches/markus/platformh at r30411
X-SVN-Rev: 30412
2011-07-23 00:10:30 +00:00
Michael Ow
65629eb419 ICU-8635 Update ICU4C version to 49.0.1 (49M1)
X-SVN-Rev: 30216
2011-06-14 00:00:57 +00:00
Steven R. Loomis
5a86c076e8 ICU-8263 remove reference to pnames.icu in test. Fails under --with-data-packaging=archive and also fails under Win build.
X-SVN-Rev: 29285
2011-01-11 19:47:53 +00:00
Markus Scherer
c04082d93c ICU-8105 hardcode Unicode property names data (formatVersion 2); includes new dictionary-type tries (ByteTrie & UCharTrie see ticket #8167); merge branches/markus/tries -r 29040:29249
X-SVN-Rev: 29252
2010-12-31 18:21:36 +00:00
Steven R. Loomis
96876653d9 ICU-8205 fix improper swap of uspoof, also add to swap test
X-SVN-Rev: 29139
2010-12-02 19:17:46 +00:00
Markus Scherer
5cb38459a6 ICU-7273 remove #include unormimp.h where not used any more
X-SVN-Rev: 27667
2010-02-25 00:21:02 +00:00
Michael Ow
39881d8f7b ICU-7311 Replace tab character with spaces in changes from the patch.
X-SVN-Rev: 27652
2010-02-24 19:46:03 +00:00
Steven R. Loomis
13bbe4f77d ICU-7311 apply patch as per ticket - THANKS!
X-SVN-Rev: 27463
2010-01-30 07:43:37 +00:00
Markus Scherer
0a48da9893 ICU-7035 stop support for ICU resource bundle formatVersion 1.0 [predates ICU 2.8] in swapper code
X-SVN-Rev: 27294
2010-01-16 05:15:30 +00:00
Markus Scherer
285259186d ICU-7350 remove test for old udata_setCommonData() semantics; it now allows setting multiple packages and checks for duplicates
X-SVN-Rev: 27290
2010-01-15 22:48:17 +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
9100ba632e ICU-6905 Log errors as data errors where appropriate to ensure cintltst passes without data. Some areas don't propagate error code. Add new error log function to check for error code.
X-SVN-Rev: 26084
2009-06-09 21:28:13 +00:00
Yoshito Umaoka
eb175516be ICU-6238 Support standard stringprep profiles in ICU4C. Merging changes from the work branch to the trunk.
X-SVN-Rev: 25357
2009-02-02 16:16:07 +00:00
John Emmons
34345f0371 ICU-6512 Fix dependency information for coll/root.txt to ucadata - Move ucadata and invuca to coll
X-SVN-Rev: 24616
2008-09-22 17:16:32 +00:00
Michael Ow
8a63dd5683 ICU-2498 Make test pass w/o data in iotest and cintltest.
X-SVN-Rev: 23783
2008-04-10 16:53:16 +00:00
George Rhoten
b29d3066db ICU-6076 There is no need to use the internal malloc API.
X-SVN-Rev: 23088
2007-12-14 10:29:06 +00:00
George Rhoten
2659a41917 ICU-6076 Add -m test option for easier memory failure testing.
The number of allocations can now be determined so that people can be
notified of a memory leak sooner than later in a development cycle.
Only C based test frameworks are affected.
Some test fixes for when the memory is limited to 100K per allocation are also
added.

X-SVN-Rev: 23042
2007-12-07 10:49:34 +00:00
Markus Scherer
e2232741ed ICU-5401 fix test, reenable check for existing file
X-SVN-Rev: 22831
2007-10-22 19:21:22 +00:00
Markus Scherer
a7fe8c6d9b ICU-5797 fix tests
X-SVN-Rev: 22773
2007-10-11 21:52:29 +00:00
George Rhoten
5c3a43a348 ICU-5234 Revert a few of the previous changes to use more of the original names & update a few tables.
X-SVN-Rev: 21505
2007-05-10 06:40:31 +00:00
Markus Scherer
e674e4f0f0 ICU-5518 fix swapping and preflighting of UTF-8-friendly MBCS .cnv files without extension tables
X-SVN-Rev: 21013
2007-02-06 18:04:33 +00:00