Commit Graph

151 Commits

Author SHA1 Message Date
Markus Scherer
3360fe4708 ICU-7144 merge UTS #46 (IDNA2008) C/C++ feature into trunk, merging in -r 27794:28172 icu/branches/markus/uts46
X-SVN-Rev: 28195
2010-06-15 15:54:53 +00:00
Markus Scherer
8ddbd1394c ICU-7273 merge in Normalizer2 API & code, and ICU-5785 UnicodeSet::span(UnicodeString) and ICU-7296 tempSubString()/retainBetween(); merge -r 26971:27150 branches/markus/norm2
X-SVN-Rev: 27155
2010-01-06 23:50:03 +00:00
Markus Scherer
12be5b8ce0 ICU-6928 even simpler NUL-termination code, now only in getTerminatedBuffer(); insight: getTerminatedBuffer() can safely write a NUL even in a shared, allocated (kLongString & refCount()>1) buffer so no other code need NUL-terminate the buffer
X-SVN-Rev: 26007
2009-05-14 06:05:27 +00:00
Markus Scherer
b23ab3d19d ICU-6928 make not-writable UnicodeString buffers NUL-terminated if there is space, and NUL-terminate writable buffers if there is space; this is so valgrind and Purify don't complain about testing uninitialized memory
X-SVN-Rev: 26006
2009-05-13 21:05:51 +00:00
Markus Scherer
e74be582d0 ICU-6606 optimized away calls to u_getDefaultConverter() from UnicodeString code (constructors and extract()) if U_CHARSET_IS_UTF8
X-SVN-Rev: 25571
2009-03-12 21:24:54 +00:00
Markus Scherer
63ea2e06da ICU-6765 add API: StringPiece, ByteSink(s), UnicodeString::toUTF8() and fromUTF8()
X-SVN-Rev: 25519
2009-03-06 19:19:00 +00:00
Markus Scherer
311b29556f ICU-6677 add UnicodeString fromUTF32() and toUTF32() methods
X-SVN-Rev: 25448
2009-02-19 22:35:06 +00:00
Michael Ow
4667cbc378 ICU-6132 Check null pointer before dereferencing in unesctrn, unistr, and unum.
X-SVN-Rev: 23253
2008-01-16 22:58:59 +00:00
Markus Scherer
13270fbe6f ICU-5835 optimize UnicodeString: increase US_STACKBUF_SIZE from 7 to 13; optimize append() and unescape()
X-SVN-Rev: 22718
2007-09-28 04:50:25 +00:00
Markus Scherer
7bb221a187 ICU-5869 revert changes (r22476); too risky and needs further discussion; see ticket reply
X-SVN-Rev: 22607
2007-08-31 19:39:14 +00:00
George Rhoten
8620a4a530 ICU-5869 Properly NULL terminate strings that are not byte based, like UTF-16 or UTF-32.
X-SVN-Rev: 22476
2007-08-22 23:39:11 +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
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
54ccdd856b ICU-4281 Adding this virtual vector deleting destructor removes the dependency on caniter.obj on Windows.
The compiler automatically creates one in other .obj files, but not in unistr.obj because one isn't explicitly needed.

X-SVN-Rev: 17114
2005-01-12 19:15:42 +00:00
George Rhoten
70b126c727 ICU-4288 Fix some compiler warnings.
X-SVN-Rev: 16927
2004-12-08 01:05:40 +00:00
George Rhoten
106e91de6a ICU-4078 Make sure that some functions that need to use __cxa_pure_virtual from g++ are only defined in one object file, especially if they are only used by other class.
X-SVN-Rev: 16389
2004-10-04 04:27:52 +00:00
George Rhoten
b6a2f6b622 ICU-4078 Make sure that some inline functions aren't included.
X-SVN-Rev: 16337
2004-09-17 00:08:03 +00:00
Markus Scherer
53e086dc9a ICU-4078 disentangle conversion and properties code some from other parts of the common library
X-SVN-Rev: 16193
2004-08-26 22:51:40 +00:00
George Rhoten
a6432fd203 ICU-3946 Use U_EXPORT2 for operators
X-SVN-Rev: 16020
2004-07-16 15:43:19 +00:00
Markus Scherer
01889c4280 ICU-2761 make UnicodeString::extractBetween() pin properly
X-SVN-Rev: 15179
2004-05-06 17:41:09 +00:00
George Rhoten
85312b5541 ICU-2950 Fix a compiler warning on AIX about operator +. Make it out of line.
X-SVN-Rev: 13962
2003-12-03 01:53:31 +00:00
Markus Scherer
2875ab287f ICU-2360 UnicodeString pointer+length functions should recognize length=-1 for NUL-terminated input
X-SVN-Rev: 13548
2003-10-31 23:08:12 +00:00
Markus Scherer
87cd8a5be1 ICU-3267 UniStr::toTitle(iter!=NULL) must set its text on iter
X-SVN-Rev: 13546
2003-10-31 22:09:48 +00:00
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