Fredrik Roubert
0bf8a95309
ICU-22793 Remove superfluous return value typecasts to UBool.
2024-09-19 17:11:38 +02:00
Markus Scherer
37b41495d7
ICU-22876 C++ UnicodeSet/USet easy item iteration
...
See #3120
2024-09-10 17:38:03 -07: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
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
e4e2ae9544
ICU-21525 UnicodeSet.hasString(), UnicodeSetIterator.skipToStrings() & C API
2021-07-01 00:44:24 +00:00
Markus Scherer
66460b9fad
ICU-13702 add missing API functions
...
and fix a bug in Java UnicodeSet.retain(String) which added the string even if the set did not contain it before,
and some drive-by API doc fixes/clarifications
2021-02-17 10:12:10 -08: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
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
9f7d74001c
ICU-8605 document & test ICU4C dependencies, remove cycles, reduce some deps; merged from branches/markus/depstest -r 30155:30193
...
X-SVN-Rev: 30194
2011-06-03 05:23:57 +00:00
Markus Scherer
41c8654d92
ICU-8601 replace C U_INLINE hack with C++ inline, and also rename a few other .c files to .cpp for future UMTX_CHECK replacement
...
X-SVN-Rev: 30148
2011-05-26 20:05:39 +00:00
Markus Scherer
7a3a89e61f
ICU-7273 remove now-unused unorm.icu, and small changes parallel with Java
...
X-SVN-Rev: 27562
2010-02-13 23:15:05 +00:00
Andy Heninger
2213bd3046
ICU-6064 Make UnicodeSet::closeOver() public
...
X-SVN-Rev: 25560
2009-03-12 17:08:12 +00:00
Andy Heninger
0e1d733bac
ICU-6066 take UnicodeSet::removeAllStrings() public
...
X-SVN-Rev: 25556
2009-03-12 01:14:10 +00:00
Markus Scherer
97ea1827e7
ICU-6678 add uset_openEmpty()
...
X-SVN-Rev: 25451
2009-02-19 23:36:58 +00:00
George Rhoten
9ce90e2c18
ICU-5856 Promote @draft API to @stable for ICU 3.8 release, and make sure that the existing API is labeled correctly.
...
X-SVN-Rev: 22422
2007-08-19 08:59:28 +00:00
George Rhoten
ab838a4310
ICU-5445 Consolidate RuleWhiteSpace implementations, and reduce casting between USet and UnicodeSet.
...
X-SVN-Rev: 22135
2007-07-25 02:51:25 +00:00
Markus Scherer
19446aeeba
ICU-5585 fast, freezable UnicodeSet with span() with string support; svn merge -r 21018:22033 http://source.icu-project.org/repos/icu/icu/branches/markus/fastset and revert source/test/perf/unisetperf/draft/* and source/common/utrie.* and source/allinone/allinone.sln (experimental code)
...
X-SVN-Rev: 22053
2007-07-19 04:33:20 +00:00
George Rhoten
b27729b208
ICU-5304 Allow source code to work again without using U_NAMESPACE_USE
...
X-SVN-Rev: 20240
2006-09-03 17:08:23 +00:00
Deborah Goldsmith
3345cab5fd
ICU-5131 Make uset_serializedContains use binary search
...
X-SVN-Rev: 19862
2006-07-20 00:37:06 +00:00
Deborah Goldsmith
aa37b80065
ICU-5128 Monomorphize ubrk.cpp and uset.cpp
...
X-SVN-Rev: 19856
2006-07-18 23:28:20 +00:00
Markus Scherer
c552b977a4
ICU-2766 freeze RuleWhiteSpace=Unicode Pattern_White_Space
...
X-SVN-Rev: 17646
2005-05-22 22:19:37 +00:00
Eric Mader
41ca4f63ee
ICU-4428 update copyright notices for ICU 3.3.
...
X-SVN-Rev: 17296
2005-03-08 22:49:59 +00:00
George Rhoten
f4b63ff7e0
ICU-4404 Fix a typo regarding const usage.
...
X-SVN-Rev: 17194
2005-02-08 18:58:26 +00:00
George Rhoten
ff6d9533d5
ICU-4404 Add some missing uset functions.
...
X-SVN-Rev: 17193
2005-02-08 18:40:36 +00:00
Andy Heninger
665e553354
ICU-4161 remove tabs from source code
...
X-SVN-Rev: 16829
2004-11-11 23:34:58 +00:00
Markus Scherer
3cb19a531f
ICU-4078 split uset_props.cpp from uset.cpp to disentangle properties code from core UnicodeSet/USet
...
X-SVN-Rev: 16212
2004-08-30 16:43:03 +00:00
George Rhoten
6fd8f0e5b7
ICU-3341 Add some missing uset_* API.
...
X-SVN-Rev: 16142
2004-08-10 23:22:21 +00:00
Vladimir Weinstein
2e722895e6
ICU-3100 Need internal uset_containsNone for tests
...
X-SVN-Rev: 15686
2004-06-03 20:55:27 +00:00
Alan Liu
d9e5047559
ICU-3746 add @internal containsAll and equals
...
X-SVN-Rev: 15343
2004-05-17 21:43:00 +00:00
Ram Viswanadha
c93625a460
ICU-2938 add uloc_getDisplayKeywords, uloc_getDisplayKeywordValue, uset_applyPattern
...
X-SVN-Rev: 13615
2003-11-07 02:38:19 +00:00
Alan Liu
c91c33fbdf
ICU-3262 make UnicodeSet constructor and applyPattern() taking a ParsePosition, options bit mask, and SymbolTable pointer public
...
X-SVN-Rev: 13417
2003-10-14 21:47:59 +00:00
Markus Scherer
f4562fc9c5
ICU-2959 update copyright notices for 2003 changes
...
X-SVN-Rev: 12230
2003-06-02 22:26:54 +00:00
George Rhoten
48eda8bd06
ICU-1439 implement ucnv_getUnicodeSet() for roundtrippable code points.
...
X-SVN-Rev: 11475
2003-04-09 00:00:51 +00:00
George Rhoten
2f7f7b2fcf
ICU-2784 Need to use the options constructor from UnicodeSet.
...
X-SVN-Rev: 11467
2003-04-07 16:38:45 +00:00
Alan Liu
98d8629ada
ICU-2447 add range functions for add, remove, contains
...
X-SVN-Rev: 10085
2002-10-29 19:05:03 +00:00
Vladimir Weinstein
cc4c361654
ICU-2269 don't use aliasing ctor in uset_addString
...
X-SVN-Rev: 9817
2002-08-29 22:20:59 +00:00
Markus Scherer
2ecdab9e2e
ICU-1115 use index_outofbounds_error instead of illegal for itemIndex>=count; add TODO
...
X-SVN-Rev: 9537
2002-08-02 01:14:53 +00:00
GCL Shanghai
2fab4a8cb7
ICU-1953 backout buffer overflow changes
...
X-SVN-Rev: 9070
2002-07-09 12:47:45 +00:00
GCL Shanghai
6348e12895
ICU-1953 test for buffer overflows
...
X-SVN-Rev: 9044
2002-07-06 10:58:51 +00:00
GCL Shanghai
b89c229c6e
ICU-1953 change comments style and check 0/NULL
...
X-SVN-Rev: 8993
2002-07-02 15:10:30 +00:00
GCL Shanghai
1e188eca35
ICU-1953 Test for NULL after each uprv_malloc() or new
...
X-SVN-Rev: 8980
2002-06-29 09:31:05 +00:00
Markus Scherer
11948b52df
ICU-1962 change UObject: RTTI pure virtual, remove other boilerplate for now
...
X-SVN-Rev: 8977
2002-06-29 00:04:16 +00:00
Markus Scherer
5a81709c73
ICU-1962 derive all ICU C++ classes from common UObject base class
...
X-SVN-Rev: 8953
2002-06-27 01:19:20 +00:00
George Rhoten
517663f976
ICU-1115 Fix for HP/UX
...
X-SVN-Rev: 8792
2002-06-05 18:21:30 +00:00