Commit Graph

146 Commits

Author SHA1 Message Date
Markus Scherer
4c2fad3e36 ICU-12410 class Edits, class CaseMap with new low-level functions that work with Edits, simpler case properties code, some cleanup
X-SVN-Rev: 39684
2017-02-17 21:03:35 +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
Markus Scherer
3b23b78b95 ICU-12410 include what you use
X-SVN-Rev: 39553
2017-01-12 18:35:18 +00:00
Steven R. Loomis
6f70b217a8 ICU-12745 fix for review comments
X-SVN-Rev: 39384
2016-09-28 17:28:08 +00:00
Steven R. Loomis
a5e61ccf57 ICU-12745 string limit on Locale(char*)
X-SVN-Rev: 39356
2016-09-26 22:09:14 +00:00
Steven R. Loomis
a2ee3b1f28 ICU-11746 static analysis fixes
X-SVN-Rev: 39282
2016-09-19 18:52:48 +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
Andy Heninger
a9189431e8 ICU-11547 Locale::getBaseName(), use uprv_strdup() (review comment).
X-SVN-Rev: 37138
2015-03-05 00:51:11 +00:00
Andy Heninger
1c9d614184 ICU-11547 Locale::getBaseName(), remove lazy init, fixes thread safety problem.
X-SVN-Rev: 37117
2015-03-03 23:50:43 +00:00
Jungshik Shin
4dadadf10e ICU-11421 Fix the baseName of locales created with getAvailableLocales()
X-SVN-Rev: 37115
2015-03-03 21:59:25 +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
Andy Heninger
4812b221aa ICU-10976 Remove C++ null reference checks; they're undefined behavior.
X-SVN-Rev: 35987
2014-07-02 20:57:26 +00:00
Andy Heninger
dbcf79f57b ICU-10799 ICU initialization code, review & cleanup.
X-SVN-Rev: 35649
2014-04-23 23:22:13 +00:00
Andy Heninger
517fd227cb ICU-9737 Remove singleton class, otherwise keep logic the same for thread safety fix.
X-SVN-Rev: 32908
2012-11-29 23:05:31 +00:00
Travis Keep
135c7adbdb ICU-9737 Fix Locale::getDefault() and Locale::setDefault() so that the reference that getDefault() returns doesn't get freed unexpectedly due to race conditions.
X-SVN-Rev: 32865
2012-11-19 17:02:46 +00:00
Markus Scherer
68aa38ad35 ICU-8668 add more parentheses, avoid warnings
X-SVN-Rev: 31105
2011-12-13 00:34:52 +00:00
Steven R. Loomis
2a751ff4e3 ICU-8668 add parenthesis
X-SVN-Rev: 31103
2011-12-12 23:35:07 +00:00
Abhinav Gupta
336ce31084 ICU-8668 Remove isalpha dependency
X-SVN-Rev: 31095
2011-12-12 16:16:15 +00:00
Abhinav Gupta
5373f49d27 ICU-8668 C, C++, restrict script to alphabetic in locale name.
X-SVN-Rev: 31031
2011-12-05 20:15:15 +00:00
John Emmons
42bbabf646 ICU-7605 Change locale ID canonicalization to not use double-underscore IDs
X-SVN-Rev: 30954
2011-11-11 20:29:33 +00:00
Markus Scherer
07035f8756 ICU-8731 move some @internal definitions to putilimp.h
X-SVN-Rev: 30433
2011-07-27 21:26:00 +00:00
Markus Scherer
2862296471 ICU-8454 virtual destructors should be explicit, and defined in a .cpp file, so that they can serve as key functions
X-SVN-Rev: 30423
2011-07-26 05:32:25 +00:00
Markus Scherer
1beb0f1e4f ICU-8680 require C++ namespace, replace most U_NAMESPACE_QUALIFIER with icu::, remove still-draft U_STD_NS, U_STD_NSQ, and U_STD_NS_USE
X-SVN-Rev: 30281
2011-07-06 04:03:35 +00:00
Markus Scherer
744d1f3a19 ICU-8617 move UHashTok into lower-level uelement.h (new) and rename to UElement to share with UVector
X-SVN-Rev: 30272
2011-07-04 23:51:56 +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
Steven R. Loomis
a1ea70071b ICU-7708 compiler warnings for 4.5.1 (batch 1)
X-SVN-Rev: 28103
2010-05-25 22:17:12 +00:00
Markus Scherer
ea551a1d7f ICU-7164 split locale API implementation into multiple files so that core locale ID .c/.cpp files (hopefully) do not depend on resource bundle code or data any more
X-SVN-Rev: 27685
2010-02-25 22:32:39 +00:00
Doug Felt
55d897493b ICU-7361 fix locid getVariant, fix display name translations for root
X-SVN-Rev: 27355
2010-01-21 02:45:53 +00:00
Doug Felt
18b87b0965 ICU-7342 add LocaleDisplayNames and rudimentary test. Fix Locale.getVariant problem and add test.
X-SVN-Rev: 27258
2010-01-14 02:23:46 +00:00
Fredrik Roubert
410a369ccc ICU-7252 add Locale::setKeywordValue() method and test case
X-SVN-Rev: 27143
2010-01-06 15:49:10 +00:00
Markus Scherer
d73228968d ICU-7247 use LocalMemory & MaybeStackArray in some places
X-SVN-Rev: 26964
2009-11-21 22:04:55 +00:00
George Rhoten
de6512a9c1 ICU-6132 Undo some unneccessary changes. Remove some tabs. Make sure that the UErrorCode is propagated when possible. When a UErrorCode is available, don't check for a NULL return value.
X-SVN-Rev: 23479
2008-02-23 19:15:18 +00:00
Michael Ow
3edc99506c ICU-6132 Check for memory allocation failures.
X-SVN-Rev: 23209
2008-01-11 20:56:55 +00:00
Eric Mader
bb4a371fdb ICU-5805 Update copyright notices for ICU 3.8
X-SVN-Rev: 22167
2007-07-27 03:12:12 +00:00
George Rhoten
d0084a7436 ICU-5427 Fix some Purify errors
X-SVN-Rev: 21273
2007-03-16 17:06:15 +00:00
George Rhoten
668854033c ICU-5349 Use UMTX_CHECK
X-SVN-Rev: 20690
2006-11-28 07:16:51 +00:00
George Rhoten
a7a3fe85db ICU-5349 Use UMTX_CHECK, and don't create the cache when it's not needed.
X-SVN-Rev: 20463
2006-09-30 17:52:33 +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
Steven R. Loomis
4fe05cc273 ICU-5270 don't leave count uninitialized if null is returned
X-SVN-Rev: 19874
2006-07-21 21:58:09 +00:00
Eric Mader
a992570c40 ICU-4152 Initial check in of Windows formatting code!
X-SVN-Rev: 18963
2006-01-12 19:53:58 +00:00
Ram Viswanadha
b70227e2c7 ICU-4741 make compare functions for Hashtable and StringEnumeration general
X-SVN-Rev: 18788
2005-11-11 19:23:09 +00:00
Steven R. Loomis
5bd9b6f420 ICU-4703 BEAM fixes
X-SVN-Rev: 18435
2005-08-15 21:50:56 +00:00
Markus Scherer
0a0926e58f ICU-4514 pass 0 length to UnicodeString::releaseBuffer() when the buffer contents is undefined due to a U_FAILURE condition
X-SVN-Rev: 17972
2005-06-22 02:40:25 +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
e2188e6775 ICU-4078 Decouple the cleanup functions from u_init and u_cleanup.
X-SVN-Rev: 16403
2004-10-06 23:10:53 +00:00
George Rhoten
896c3fb9e8 ICU-3905 Fix some compiler warnings.
X-SVN-Rev: 16341
2004-09-17 07:46:37 +00:00
George Rhoten
038f43c843 ICU-3905 Fix some compiler warnings.
X-SVN-Rev: 16196
2004-08-27 16:45:16 +00:00