Commit Graph

178 Commits

Author SHA1 Message Date
George Rhoten
4d18bb2b4f ICU-3221 Fix the AIX linker warning about multiple definitions of virtual functions.
X-SVN-Rev: 12958
2003-08-27 01:01:42 +00:00
Andy Heninger
73cf37c236 ICU-2970 Thread safe reference count access for UnicodeString
X-SVN-Rev: 12483
2003-06-11 23:48:00 +00:00
Markus Scherer
e4c5b5d5ae ICU-2356 remove redundant argument check
X-SVN-Rev: 12179
2003-05-29 23:01:01 +00:00
Ram Viswanadha
39d923f573 ICU-2677 Use Word BI by default for title casing
X-SVN-Rev: 12103
2003-05-24 02:04:27 +00:00
Markus Scherer
8c1740d468 ICU-2710 remove @obsolete ICU 2.6 and earlier code
X-SVN-Rev: 11749
2003-05-01 01:51:51 +00:00
Markus Scherer
ece6fe9eca ICU-1730 add Replaceable::clone()
X-SVN-Rev: 11741
2003-04-30 22:08:57 +00:00
Markus Scherer
65c6f66b2e ICU-2356 all UnicodeString methods should treat NULL input pointers as empty strings
X-SVN-Rev: 11740
2003-04-30 02:41:01 +00:00
George Rhoten
c9ed03fc4b ICU-2744 Fix some IRIX problems
X-SVN-Rev: 11329
2003-03-15 01:57:10 +00:00
Andy Heninger
606b10c511 ICU-2703 fix missing null termination on extract from zero length UnicodeString
X-SVN-Rev: 11006
2003-02-10 22:57:39 +00:00
Markus Scherer
fdc0319c0f ICU-2118 improve UnicodeString API coverage
X-SVN-Rev: 10385
2002-11-26 23:33:37 +00:00
Markus Scherer
9cb1c40db3 ICU-2351 make behavior of bogus strings consistent with NULL: only assignment revives a bogus string
X-SVN-Rev: 10280
2002-11-16 01:05:36 +00:00
Markus Scherer
b1246ef900 ICU-2145 consistent behavior of binary string searches
X-SVN-Rev: 10055
2002-10-24 01:49:58 +00:00
Markus Scherer
b6de7e771f ICU-2296 add fastCopyFrom, change normal copying
X-SVN-Rev: 10028
2002-10-12 01:04:09 +00:00
Markus Scherer
e189db4818 ICU-1794 add UnicodeString::hasMoreChar32Than
X-SVN-Rev: 10005
2002-10-09 21:37:48 +00:00
Markus Scherer
c8bba9db42 ICU-2343 remove UCharReference and non-const UnicodeString::operator[]
X-SVN-Rev: 9994
2002-10-08 23:56:15 +00:00
Markus Scherer
d815c4ce11 ICU-2150 check for valid code point
X-SVN-Rev: 9986
2002-10-08 01:08:34 +00:00
Markus Scherer
6b1fa6036a ICU-2150 simplify/improve UTF macros
X-SVN-Rev: 9930
2002-09-30 04:00:17 +00:00
Markus Scherer
3d38617bdc ICU-2248 modularize icu, allow parts to not be built
X-SVN-Rev: 9900
2002-09-20 01:54:48 +00:00
George Rhoten
de2774bc3c ICU-1739 Don't need to free on NULL memory.
X-SVN-Rev: 9648
2002-08-09 18:29:37 +00:00
Markus Scherer
30c37a9114 ICU-1962 use uprv_malloc/free instead of new/delete for non-class types
X-SVN-Rev: 9194
2002-07-16 01:55:55 +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
80dfca0dc5 ICU-1953 remove Tabs
X-SVN-Rev: 9023
2002-07-03 11:59:21 +00:00
Alan Liu
e0d687d784 ICU-1544 add hasMetaData() to Replaceable
X-SVN-Rev: 9021
2002-07-03 01:03:46 +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
dfec291be4 ICU-1920 more error checking for read-only aliases
X-SVN-Rev: 8824
2002-06-08 19:42:51 +00:00
Markus Scherer
c44455d477 ICU-1728 add u_strCompare and u_strCaseCompare taking separate lengths and optional code point order
X-SVN-Rev: 8695
2002-05-24 17:05:31 +00:00
Markus Scherer
08e8447729 ICU-1438 use unorm_cmpEquivFold to implement case-insensitive string comparison - more efficient than earlier implementation
X-SVN-Rev: 8662
2002-05-22 00:35:01 +00:00
Markus Scherer
65eb5971c0 ICU-1728 re-implement CodePointOrder compare functions to make them work with surrogate code points
X-SVN-Rev: 8612
2002-05-13 23:03:09 +00:00
George Rhoten
7f87b5724e ICU-900 Fixed some compiler warnings.
X-SVN-Rev: 8539
2002-04-30 17:22:11 +00:00
Doug Felt
77b6719b9b ICU-970 add substring constructors and setTo overload to UnicodeString
X-SVN-Rev: 8527
2002-04-26 18:02:49 +00:00
George Rhoten
bc64b17bee ICU-1199 Stop using the deprecated Unicode C++ class
X-SVN-Rev: 8105
2002-03-19 03:01:28 +00:00
Markus Scherer
d20923859f ICU-1542 use common code for finding surrogate code points
X-SVN-Rev: 8096
2002-03-18 23:25:30 +00:00
Alan Liu
cd9a595ff6 ICU-1779 avoid malloc(0)
X-SVN-Rev: 8091
2002-03-18 21:25:01 +00:00
Markus Scherer
6929fb9988 ICU-1126 use the real titlecase break iterator for titlecasing
X-SVN-Rev: 7996
2002-03-13 19:19:42 +00:00
Markus Scherer
8c78422db2 ICU-1561 replace all UTextOffset with int32_t
X-SVN-Rev: 7942
2002-03-12 01:32:42 +00:00
Andy Heninger
4408855d3f ICU-1730 UnicodeString thread safety changes
X-SVN-Rev: 7923
2002-03-09 00:36:54 +00:00
George Rhoten
41ffc2ef36 ICU-1733 Integrate some of the easier (and non-redundent) changes from Lotus.
X-SVN-Rev: 7802
2002-02-28 01:42:40 +00:00
Alan Liu
e5a8f1678a ICU-1544 add virtual extractBetween() to Replaceable and new UReplaceableCallback member 'extract'
X-SVN-Rev: 7788
2002-02-26 17:50:59 +00:00
Markus Scherer
b24a8e910f ICU-1542 fix indexOf(UChar32 surrogate), lastIndexOf(UChar32 surrogate), u_strchr32(surrogate) to match char32At()/UTF_GET_CHAR()
X-SVN-Rev: 7744
2002-02-22 02:00:42 +00:00
Markus Scherer
0e69af1c9e ICU-1126 add UniStr::toTitle() functions
X-SVN-Rev: 7734
2002-02-21 18:42:52 +00:00
Markus Scherer
1ef813cb29 ICU-1036 simplify internal string case mapping functions for more common code - remove growBuffer
X-SVN-Rev: 7717
2002-02-20 02:09:42 +00:00
George Rhoten
0836738cc1 ICU-1630 Move UMTX from utypes.h to umutex.h,
and remove unneeded references to mutex.h (so we can find multithreading issues more easily)

X-SVN-Rev: 7478
2002-01-23 17:17:06 +00:00
Markus Scherer
111f368fb4 ICU-785 UnicodeString functions with input const UChar * handle srcLength=-1
X-SVN-Rev: 6828
2001-11-13 19:27:19 +00:00
George Rhoten
068f60d1a0 ICU-1028 Fix for os/390
X-SVN-Rev: 6442
2001-10-25 21:55:45 +00:00
George Rhoten
fb2926bc6a ICU-900 Properly fixed some compiler warnings.
X-SVN-Rev: 6377
2001-10-22 22:08:44 +00:00
Vladimir Weinstein
d90dbcc7ff ICU-392 cleaning code for proper exports in libraries/urename.h generation + new version of urename.h
X-SVN-Rev: 6368
2001-10-22 05:29:14 +00:00
George Rhoten
b16fda7f7e ICU-900 Fixed some compiler warnings.
X-SVN-Rev: 6311
2001-10-18 22:04:22 +00:00
Markus Scherer
0b0455afa6 ICU-1081 fix foldCase() function
X-SVN-Rev: 6244
2001-10-15 22:55:21 +00:00
Markus Scherer
6fb93470d2 ICU-1267 add UnicodeString::countChar32()
X-SVN-Rev: 6197
2001-10-11 21:40:24 +00:00
Helena Chapman
d816eefc57 ICU-1264 added namspace support where possible.
X-SVN-Rev: 6124
2001-10-08 23:26:58 +00:00
Markus Scherer
032b6c82d7 ICU-1262 make US::setToBogus() public and more safe and consistent
X-SVN-Rev: 6108
2001-10-06 00:22:13 +00:00
George Rhoten
8154a3f262 ICU-392 Don't export as many symbols with a commonly used name.
X-SVN-Rev: 6094
2001-10-05 22:14:23 +00:00
Markus Scherer
ccb5577d4a ICU-1251 fix UnicodeString comparisons - were broken if buffers were shared but lengths different
X-SVN-Rev: 6090
2001-10-05 21:18:12 +00:00
Markus Scherer
db16dba640 ICU-1109 change NUL-termination semantics
X-SVN-Rev: 6027
2001-10-03 23:51:00 +00:00
George Rhoten
b8a93d5930 ICU-900 Fixed some compiler warnings
X-SVN-Rev: 5956
2001-09-28 00:42:28 +00:00
Markus Scherer
16c24627e0 ICU-809 forbid UnicodeString::setTo() while a getBuffer(minCapacity) is open
X-SVN-Rev: 5846
2001-09-20 22:19:51 +00:00
Markus Scherer
ed39c6bf2d ICU-809 implement the new getBuffer()s and releaseBuffer() and remove UnicodeString::getUChars()
X-SVN-Rev: 5830
2001-09-20 01:14:37 +00:00
Markus Scherer
07f4a12e0e ICU-1215 fix US::reverse() for supplementary characters
X-SVN-Rev: 5793
2001-09-18 22:28:10 +00:00
Markus Scherer
9f65fdc2db ICU-1200 add constructor & extract() with UConverter*
X-SVN-Rev: 5771
2001-09-18 01:12:14 +00:00
Markus Scherer
ddb9fa851a ICU-1197 add moveIndex32()
X-SVN-Rev: 5758
2001-09-17 22:05:21 +00:00
Markus Scherer
06973e024e ICU-1109 add US::extract() with NUL-termination and error/warning code
X-SVN-Rev: 5695
2001-09-05 23:37:56 +00:00
George Rhoten
667cb7b3b5 ICU-900 Fixed some compiler warnings.
X-SVN-Rev: 5542
2001-08-18 01:09:24 +00:00
George Rhoten
f850ad2c5e ICU-770 Change code for u_cleanup() API.
X-SVN-Rev: 5462
2001-08-11 00:29:58 +00:00
Markus Scherer
2fc1e2ef98 ICU-1027 move fLength back from Replaceable to UnicodeString, add virtual Rep::getLength()
X-SVN-Rev: 5156
2001-07-02 20:58:14 +00:00
George Rhoten
5ff95ae4c6 ICU-900 Removed unused functions
X-SVN-Rev: 5113
2001-06-27 22:32:49 +00:00
George Rhoten
dc95cc5905 ICU-1018 Move iostream and UnicodeStringStreamer usage from unistr.[h,cpp] to ustream.[h,cpp]
X-SVN-Rev: 5087
2001-06-26 17:57:53 +00:00
Markus Scherer
4bd57921ca ICU-973 use the new u_memcmpCodePointOrder()
X-SVN-Rev: 5079
2001-06-25 23:45:33 +00:00
George Rhoten
92be7ab1ae ICU-900 Fixed some compiler warnings
X-SVN-Rev: 4770
2001-05-23 17:55:35 +00:00
George Rhoten
c4997713ef ICU-903 Updated the copyright notice
X-SVN-Rev: 4238
2001-03-21 20:44:20 +00:00
Markus Scherer
ef1abeabce ICU-827 reimplement extract(char *) to fix preflighting and improve performance
X-SVN-Rev: 4168
2001-03-17 22:14:30 +00:00
George Rhoten
87412d7a69 ICU-580 os/390 porting changes
X-SVN-Rev: 3776
2001-02-26 19:22:32 +00:00
George Rhoten
f088b164c6 ICU-597 redefine U_MAX_PTR into a macro
X-SVN-Rev: 3699
2001-02-21 01:30:39 +00:00
Markus Scherer
55b780688e ICU-709 resolve virtual/inline conflict, details see jitterbug response
X-SVN-Rev: 3625
2001-02-14 18:02:44 +00:00
Markus Scherer
d4646d08d9 ICU-840 implement case-insensitive string compare
X-SVN-Rev: 3622
2001-02-14 01:10:10 +00:00
Markus Scherer
965a295205 ICU-542 UnicodeString::toLower()/toUpper() must not use fStackBuffer for src _and_ dest!
X-SVN-Rev: 3543
2001-02-02 21:07:43 +00:00
Markus Scherer
9632c94006 ICU-542 implement UnicodeString::toLower()/toUpper() with u_internalStrToLower/Upper()
X-SVN-Rev: 3539
2001-02-02 20:41:18 +00:00
Markus Scherer
2b12895952 ICU-750 implement compareCodePointOrder()
X-SVN-Rev: 3471
2001-01-24 02:37:58 +00:00
George Rhoten
47c3f11f09 ICU-790 Added some headers that were in unistr.h
X-SVN-Rev: 3333
2001-01-02 19:23:27 +00:00
George Rhoten
37aa068183 ICU-97 Added some improvements for faster comparing (e.g. don't add a pointer twice)
X-SVN-Rev: 2732
2000-10-19 21:02:01 +00:00
George Rhoten
5be423fddd ICU-463 extract with a NULL destination works properly now.
X-SVN-Rev: 2411
2000-08-31 23:57:00 +00:00
George Rhoten
66bae3ec8a ICU-535 fixed some compiler warnings
X-SVN-Rev: 2406
2000-08-30 23:42:28 +00:00
George Rhoten
16d67c3ebb ICU-463 Put fix for pointer overflow back into code.
X-SVN-Rev: 2360
2000-08-28 19:18:02 +00:00
George Rhoten
308a5811c1 ICU-463 Fixed a typo in extract
X-SVN-Rev: 2356
2000-08-26 01:54:05 +00:00
George Rhoten
a419f3377a ICU-463 added a targetLength to the extract function.
X-SVN-Rev: 2332
2000-08-23 02:10:51 +00:00
George Rhoten
3de2aeabe7 ICU-535 fixed some compiler warnings
X-SVN-Rev: 2314
2000-08-21 19:55:59 +00:00
Markus Scherer
9708c34d2c ICU-410 unescape() return an empty string in case of error
X-SVN-Rev: 2298
2000-08-16 23:28:24 +00:00
Alan Liu
52826c7008 ICU-410 fix bugs in unescape code
X-SVN-Rev: 2292
2000-08-16 20:24:57 +00:00
Alan Liu
d8ad2edf61 ICU-410 remove dead code
X-SVN-Rev: 2256
2000-08-15 15:42:49 +00:00
Markus Scherer
17df34956e ICU-516 streaming conversion functions set U_BUFFER_OVERFLOW_ERROR instead of U_INDEX_OUTOFBOUNDS_ERROR
X-SVN-Rev: 2199
2000-08-11 19:23:50 +00:00
Vladimir Weinstein
759d6be056 ICU-460 OS/390 related changes
X-SVN-Rev: 2079
2000-07-31 22:33:44 +00:00
Alan Liu
cb74716658 ICU-410 create unified unescape function(s)
X-SVN-Rev: 1896
2000-07-16 13:39:07 +00:00
Markus Scherer
6aea18ee6e ICU-410 add API facades for string unescaping
X-SVN-Rev: 1707
2000-06-29 19:36:20 +00:00
Vladimir Weinstein
ca5cb935ca ICU-406 putting collation data in resource bundles (initial revision)
X-SVN-Rev: 1427
2000-05-22 19:50:23 +00:00
Alan Liu
358312cc1a ICU-352 add new Replaceable API
X-SVN-Rev: 1423
2000-05-20 04:41:12 +00:00
Helena Chapman
69ba12f77c ICU-351 Define UBool to be used in the APIs.
X-SVN-Rev: 1410
2000-05-18 22:08:39 +00:00
Markus Scherer
53f279b17e ICU-368 need to actually export the correct operator<< definition
X-SVN-Rev: 1374
2000-05-15 19:32:34 +00:00
Yves Arrouye
ebd22f3413 ICU-368 conditionally use <iostream> (and the std namespace),
<iostream.h>, or no streams at all depending on the value of U_IOSTREAM_SOURCE.

X-SVN-Rev: 1252
2000-04-25 21:33:15 +00:00
Markus Scherer
a84cd3f751 ICU-176 change constructors from UChar32 and from capacity as proposed
X-SVN-Rev: 1172
2000-04-19 20:39:54 +00:00
Steven R. Loomis
90d12c93b9 ICU-185 Locale takes/returns char*. Old api's deprecated. Implementation fixed to not use deprecated api's.
X-SVN-Rev: 1134
2000-04-15 21:19:44 +00:00