Commit Graph

5502 Commits

Author SHA1 Message Date
Steven R. Loomis
39f7040439 ICU-11886 unsafe-backward set, review comments
. remove #if 0's and stray comments
. cleanup UnicodeSet docs (deserialize does not freeze)
. remove dead code in collationdatareader.cpp

X-SVN-Rev: 37960
2015-09-15 21:42:56 +00:00
Steven R. Loomis
9bb043757a ICU-11248 promote FilteredBreakIterator to draft
X-SVN-Rev: 37948
2015-09-12 01:11:53 +00:00
Steven R. Loomis
39f698cbc3 ICU-11437 revert r37938 r37939 (also ICU-11435 ) - try to unbreak Solaris
X-SVN-Rev: 37945
2015-09-11 02:01:12 +00:00
Steven R. Loomis
e12c286572 ICU-11437 endianness detection on bsd
X-SVN-Rev: 37939
2015-09-10 06:43:39 +00:00
Steven R. Loomis
db7c01cf1f ICU-11435 SmartOS fixes
X-SVN-Rev: 37937
2015-09-10 06:20:47 +00:00
Steven R. Loomis
9ab86aaddb ICU-11786 fix FilteredBreakIterator::last()
* last() was defective
* update the test case
* remove the logknownissue

X-SVN-Rev: 37936
2015-09-10 06:00:44 +00:00
Markus Scherer
0f0c7656d3 ICU-11832 some better error checking based on static code analysis
X-SVN-Rev: 37930
2015-09-10 01:42:34 +00:00
Steven R. Loomis
94fe10c710 ICU-11886 Speed up ucol_open by 21%
* implement a deserialize constructor for UnicodeSet
 * add test cases for same
* add a generator (`gencolusb`) which can build `source/i18n/collunsafe.h`
* Note that for bootstrapping `collunsafe.h` can be truncated (zero length).

X-SVN-Rev: 37929
2015-09-10 01:39:06 +00:00
Peter Edberg
b5fe5f98c4 ICU-11791 Fix leak in FilteredBreakIteratorBuilder::createInstance for "zh", "fi", ... (i.e. failure case)
X-SVN-Rev: 37928
2015-09-10 00:18:11 +00:00
Peter Edberg
cd4634345e ICU-11770 If locale has ss-standard, sentence break iterator uses suppressions data via FilteredBreakIterator
X-SVN-Rev: 37914
2015-09-09 04:05:01 +00:00
Peter Edberg
e4d76d4125 ICU-11786 Terminate internalNext/Prev when we reach text limit, not just at UBRK_DONE, so more tests for #11770 can pass
X-SVN-Rev: 37913
2015-09-09 03:55:20 +00:00
Michael Ow
623c907a81 ICU-11869 Update charset pref order for jis8
X-SVN-Rev: 37905
2015-09-08 22:35:02 +00:00
Markus Scherer
f9b98d9b6f ICU-11826 makeconv main() use CharString for outFileName; change from .c to .cpp; CharString add lastIndexOf(char) and ensureEndsWithFileSeparator()
X-SVN-Rev: 37902
2015-09-08 19:54:38 +00:00
Markus Scherer
a45bac77fe ICU-11765 fix utrans_stripRules() source overruns from a comment or an escape at the end of the source string; make U8_SET_CP_LIMIT() work with index after NUL terminator, consistent with U16_SET_CP_LIMIT(), although strictly speaking this behavior is undefined
X-SVN-Rev: 37889
2015-09-04 23:45:19 +00:00
Jungshik Shin
083ac0c904 ICU-11866 remove refrences to StringThreadTest (friend lines)
X-SVN-Rev: 37884
2015-09-04 19:07:56 +00:00
Markus Scherer
94243c69c0 ICU-7303 deprecate old normalization APIs that have Normalizer2 replacements
X-SVN-Rev: 37873
2015-09-03 16:12:20 +00:00
Michael Ow
6e443bfc40 ICU-11810 Ensure delete of language tag pointer
X-SVN-Rev: 37853
2015-08-31 19:12:34 +00:00
John Emmons
01e0c332a5 ICU-11846 CLDR 28 data integration
X-SVN-Rev: 37836
2015-08-27 20:23:27 +00:00
Travis Keep
2860cd48c4 ICU-11740 DecimalFormat refactor.
X-SVN-Rev: 37821
2015-08-25 23:31:01 +00:00
George Rhoten
e097e1b9ee ICU-8223 Add rule syntax for NaN, infinity and alternate decimal points.
Other issues addressed:
* Some performance enhancements were added for good measure. Creating new RuleBasedNumberFormat objects can take a long time due to all the rule parsing. This was ported from ICU4J.
* I fixed a potential infinite recursion problem when RuleBasedNumberFormat used NumberFormat.createInstance, which could occasionally depend on creating RuleBasedNumberFormat for itself, which was bad. This was ported from ICU4J.
* I fixed a potential memory leak due to lazy initialization of some RBNF data members in a multithreaded environment, which is fine in Java, but it's not okay in C++. We no longer cast away const due to this, which is good.
* There were some compiler warnings and errors found while trying to debug this code on my machine. I fixed those too.

X-SVN-Rev: 37810
2015-08-25 16:55:52 +00:00
Markus Scherer
0dc9a5eda5 ICU-11537 fix .res formatVersion check
X-SVN-Rev: 37795
2015-08-21 20:50:48 +00:00
Andy Heninger
60dcad0436 ICU-11794 add uprv_isInvariantUnicodeString(), as requested by Markus
X-SVN-Rev: 37794
2015-08-21 17:32:53 +00:00
Andy Heninger
80a6684a7b ICU-11794 change error handling of CharString::appendInvariantChars()
X-SVN-Rev: 37790
2015-08-20 00:55:03 +00:00
Markus Scherer
36e5d9e75f ICU-11537 move shared resource bundle string values to pool.res, .res formatVersion 3; merge --integrate from dev branch, plus make toolutil/pkgitems.cpp set poolBundleStrings so that icupkg can check dependencies
X-SVN-Rev: 37731
2015-08-07 18:44:38 +00:00
Travis Keep
8b18741503 ICU-11767 Bound the ICU UnifiedCache.
X-SVN-Rev: 37723
2015-08-05 20:21:14 +00:00
Steven R. Loomis
f87d28cfd2 ICU-11248 merge to trunk: FilteredBreakIteratorBuilder work
* passes rbbi extended tests
* uses <locale en@x-uli=true> in rbbitst.txt,
so added a "known issue" for this when en@ss=standard will suffice.

X-SVN-Rev: 37721
2015-08-05 00:03:18 +00:00
Michael Ow
5c9e64e2d4 ICU-11759 Remove unused constant
X-SVN-Rev: 37702
2015-07-28 17:53:12 +00:00
Steven R. Loomis
016486aad1 ICU-11790 fix to resource leaks on error conditions
(Corrected bad previous checkin)

X-SVN-Rev: 37698
2015-07-27 22:20:39 +00:00
Steven R. Loomis
8fc8498655 ICU-11790 fix to resource leaks on error conditions
X-SVN-Rev: 37697
2015-07-27 22:05:52 +00:00
Steven R. Loomis
9edacf9fa9 ICU-11771 move FilteredBreakIterator from i18n to common
X-SVN-Rev: 37676
2015-07-16 21:02:06 +00:00
Steven R. Loomis
77cd9e6aa4 ICU-11763 turn icuplugs off by default
add "--enable-plugins" to configure, and also "UCONFIG_ENABLE_PLUGINS".
These are disabled by default.

Also, start splitting out acinclude.m4 content to source/config/m4/..

X-SVN-Rev: 37675
2015-07-16 18:13:02 +00:00
Andy Heninger
87da174aa0 ICU-11776 Thread safety fixes in data loading.
X-SVN-Rev: 37670
2015-07-15 22:09:25 +00:00
Markus Scherer
9dbf370b21 ICU-11599 simplify preprocessor conditions for U_HAVE_CLANG_ATOMICS
X-SVN-Rev: 37667
2015-07-15 20:04:11 +00:00
Andy Heninger
d3301c325e ICU-11754 remove gcc version test for noexcept.
X-SVN-Rev: 37630
2015-06-29 18:15:44 +00:00
Markus Scherer
b053a38555 ICU-11613 un-document that a UnicodeString is memmovable, see ticket discussion
X-SVN-Rev: 37627
2015-06-28 11:20:51 +00:00
Andy Heninger
8a163f878d ICU-11754 C++03 build errors.
X-SVN-Rev: 37624
2015-06-27 00:02:59 +00:00
Markus Scherer
43c47b5685 ICU-11751 change genrb.c to .cpp, polymorphic StringResource & AliasResource with UnicodeString
X-SVN-Rev: 37618
2015-06-24 09:11:42 +00:00
Markus Scherer
3d77fc18b8 ICU-11317 split out a new doAppend() from the more general doReplace(), each optimizing for different cases
X-SVN-Rev: 37601
2015-06-18 14:09:54 +00:00
Markus Scherer
c1d22365ce ICU-11613 document that a UnicodeString is memmovable
X-SVN-Rev: 37600
2015-06-18 12:30:03 +00:00
Markus Scherer
7f8d3dfe07 ICU-10119 better document aliasing vs. copy/move/RVO
X-SVN-Rev: 37599
2015-06-18 12:19:20 +00:00
Markus Scherer
7c3234e250 ICU-11574 Unicode 8.0 final data
X-SVN-Rev: 37548
2015-06-12 11:10:10 +00:00
Markus Scherer
884da1b2a9 ICU-10086 change non-member swap functions, use in-class definition of friend function; prevent self assignment of UnicodeString stack buffer (harmless but causes warnings)
X-SVN-Rev: 37498
2015-06-04 00:16:09 +00:00
Michael Ow
1c3c68f43e ICU-11696 Fix converter name with x- prefix checking
X-SVN-Rev: 37486
2015-06-01 23:33:28 +00:00
Markus Scherer
ad59d20e18 ICU-11620 remove checks for U_COMMON_IMPLEMENTATION that seem unnecessary
X-SVN-Rev: 37479
2015-05-29 22:33:55 +00:00
Markus Scherer
2ad94b4e93 ICU-11601 UConverterSharedData: add isReferenceCounted, stop checking for special referenceCounter=~0 value outside mutex to make thread sanitizer happy, remove long-unused table pointer field, add & use initializer macro
X-SVN-Rev: 37476
2015-05-29 19:33:24 +00:00
Markus Scherer
fc290db4c1 ICU-11574 near-final Unicode 8 data with new block API constants, code adjustments & fixes; svn merge --reintegrate branches/markus/uni80
X-SVN-Rev: 37473
2015-05-28 23:16:00 +00:00
Markus Scherer
e70b441290 ICU-10086 prevent warning or error from g++ -pedantic for extra semicolon after non-member function definition in U_DEFINE_LOCAL_OPEN_POINTER
X-SVN-Rev: 37470
2015-05-28 18:57:35 +00:00
Markus Scherer
f7e715daee ICU-10086 move & swap for UnicodeString, LocalPointer, LocalArray
X-SVN-Rev: 37469
2015-05-28 17:03:45 +00:00
Yoshito Umaoka
238b3c38a5 ICU-11703 Fixed a potential memory leak in language tag parser implementation.
X-SVN-Rev: 37467
2015-05-28 06:29:16 +00:00
Yoshito Umaoka
47a3db9eb6 ICU-11602 Fixed a wrong condition used for detecting keyword without value in uloc internal function for parsing keywords. TestKeywordVariants was updated to include a case hitting the code path. The test code was also updated to handle error status. A follow up ticket #11690 was created for recording some issues with the test case found in this time.
X-SVN-Rev: 37454
2015-05-20 23:44:16 +00:00