Commit Graph

5711 Commits

Author SHA1 Message Date
Markus Scherer
b9ef7bcac4 ICU-12992 change UnicodeString functions from const UChar * to ConstChar16Ptr where possible
X-SVN-Rev: 39719
2017-03-01 22:06:25 +00:00
Markus Scherer
4c1c730f57 ICU-12992 remove conversion from int; NULL is often nullptr or __null not simply 0
X-SVN-Rev: 39717
2017-03-01 21:11:54 +00:00
Markus Scherer
031be51911 ICU-12992 move Char16Ptr to new char16ptr.h; change non-UnicodeString C++ functions from raw pointers to Char16Ptr where possible
X-SVN-Rev: 39716
2017-03-01 05:52:24 +00:00
Markus Scherer
d924dda84b ICU-12992 return pointer-wrapper class from UnicodeString::getBuffer() and siblings, add wrapper class overloads to make this mostly work as is, fix a few call sites
X-SVN-Rev: 39715
2017-02-28 22:07:03 +00:00
Markus Scherer
9634351bd7 ICU-12992 test overloads with pointer-wrapper class, add constructor(int null) to match NULL==0
X-SVN-Rev: 39713
2017-02-28 06:50:27 +00:00
Markus Scherer
f048c38ae3 ICU-12992 merge in trunk ICU-12410 r39708 U_COMMON_API for Edits::Iterator
X-SVN-Rev: 39709
2017-02-25 04:48:15 +00:00
Markus Scherer
1bfa33bfbd ICU-12410 U_COMMON_API for Edits::Iterator
X-SVN-Rev: 39708
2017-02-25 04:42:09 +00:00
Markus Scherer
7dfefa55f5 ICU-12992 experimental UnicodeString with Char16Ptr and ConstChar16Ptr in constructors and extract()
X-SVN-Rev: 39706
2017-02-25 01:08:35 +00:00
Markus Scherer
1d5d552ae1 ICU-12893 enable U_FALLTHROUGH only for clang; fix a former .c file
X-SVN-Rev: 39702
2017-02-24 20:49:14 +00:00
Andy Heninger
8c61bdb545 ICU-12645 char16_t clean-ups to umachine.h
X-SVN-Rev: 39700
2017-02-24 00:17:13 +00:00
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
Markus Scherer
3c9606062d ICU-12410 changes for review feedback
X-SVN-Rev: 39683
2017-02-17 18:34:11 +00:00
Markus Scherer
67c9e8d526 ICU-12410 C++ foldCase()->fold()
X-SVN-Rev: 39676
2017-02-15 22:46:18 +00:00
Markus Scherer
a65ca778c7 ICU-12410 UTF-8 for new C++ source files like in ICU-12764
X-SVN-Rev: 39674
2017-02-14 19:46:45 +00:00
Andy Heninger
35a07bf89d ICU-12888 UText, problems with handling of bad UTF-8.
X-SVN-Rev: 39671
2017-02-14 00:45:05 +00:00
Andy Heninger
44dee82dfd ICU-12932 RBBI rule parsing, fix incorrect handling of node stack overflow.
X-SVN-Rev: 39669
2017-02-13 21:04:32 +00:00
Markus Scherer
4207d7fc26 ICU-12410 test & fix Edits
X-SVN-Rev: 39660
2017-02-10 04:44:37 +00:00
Markus Scherer
91cb8bf24e ICU-12410 bug fixes
X-SVN-Rev: 39657
2017-02-09 23:09:08 +00:00
Markus Scherer
0e4c0199ee ICU-12410 remove unused UCaseProps pointer from ucase_... functions
X-SVN-Rev: 39656
2017-02-09 21:50:20 +00:00
Markus Scherer
5da94f206a ICU-12410 move new code into new files, split ucasemap_imp.h from ustr_imp.h
X-SVN-Rev: 39655
2017-02-09 21:15:34 +00:00
Peter Edberg
653750ca58 ICU-12969 protect against using negative ID for resource
X-SVN-Rev: 39654
2017-02-09 19:33:51 +00:00
Markus Scherer
4805866163 ICU-12410 move/re-port titlecasing, support Edits
X-SVN-Rev: 39647
2017-02-07 00:58:52 +00: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
415932a1e3 ICU-12870 Charset Detector, have docs reference the Compact Encoding Detector.
X-SVN-Rev: 39640
2017-02-03 02:46:43 +00:00
Peter Edberg
4765653577 ICU-12914 change rulesLength/Capacity back to int32_t; handle INT32_MAX overflow
X-SVN-Rev: 39630
2017-02-01 20:27:47 +00:00
Peter Edberg
005b4b230b ICU-12895 Update urename.h
X-SVN-Rev: 39629
2017-02-01 08:47:08 +00:00
Markus Scherer
2fe503c981 ICU-12410 start to port class CaseMap to Java; make case mapping impl code work with CharSequence & Appendable
X-SVN-Rev: 39603
2017-01-25 23:52:55 +00:00
Markus Scherer
8e6641fb3c ICU-12410 port class Edits to Java
X-SVN-Rev: 39590
2017-01-21 00:53:52 +00:00
Peter Edberg
183b124712 ICU-12940 Add "ars" as alias to "ar_SA" locale, to "ar" for coll/rbnf
X-SVN-Rev: 39587
2017-01-20 20:07:27 +00:00
Markus Scherer
aa27217a84 ICU-12410 remove locCache behavior from ucase_getCaseLocale() and functions that call it, try to make it a little faster for common locale IDs
X-SVN-Rev: 39586
2017-01-20 06:27:47 +00:00
Markus Scherer
8a55e577e5 ICU-12410 make CaseMap functions static; change the function parameter order to (config, input, output); remove Edits::setWriteUnchanged(), writeUnchanged(), omitUnchanged() and add UCASEMAP_OMIT_UNCHANGED_TEXT options bit; case mapping functions call edits->reset() at start
X-SVN-Rev: 39585
2017-01-20 04:04:58 +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
Peter Edberg
17683ea87f ICU-12914 Add ubrk_openBinaryRules, ubrk_getBinaryRules, and simple test
X-SVN-Rev: 39582
2017-01-19 23:10:23 +00:00
Andy Heninger
f28895cccc ICU-12943 Windows Build Fixes for UChar=char16_t and utf-8 source files.
X-SVN-Rev: 39581
2017-01-19 18:12:50 +00:00
Andy Heninger
b83dab6dfc ICU-12645 Make UChar type default char16_t. If all proceeds well, a future change will remove the conditional logic.
X-SVN-Rev: 39576
2017-01-18 21:46:03 +00:00
Andy Heninger
0fc9197e4c ICU-12645 Make UChar type default char16_t. If all proceeds well, a future change will remove the conditional logic.
X-SVN-Rev: 39575
2017-01-18 21:26:05 +00:00
Andy Heninger
9846ee3b54 ICU-12918 Dictionary Break Iterator Assertion Failure
X-SVN-Rev: 39573
2017-01-18 19:42:33 +00:00
Peter Edberg
a238722264 ICU-12895 update release version to 59.0.1 for m1
X-SVN-Rev: 39562
2017-01-16 00:42:22 +00:00
Jeff Genovy
40f9b33eb7 ICU-12908 getTZKeyName in common/wintz.cpp leaks registry handle
We should only call RegCloseKey if we were actually able to open the key.
(The value of hkey isn't explicitly initialized, so we could possibly be calling RegCloseKey with random data.)

X-SVN-Rev: 39556
2017-01-13 01:48:47 +00:00
Jeff Genovy
645b425d97 ICU-12908 getTZKeyName in common/wintz.cpp leaks registry handle
X-SVN-Rev: 39555
2017-01-13 01:28:50 +00:00
Markus Scherer
fbd1e089fd ICU-12410 add C++ CaseMap, make UCaseMap an alias for that, move new functions with Edits into CaseMap, make case properties functions ignore UCaseProps pointer
X-SVN-Rev: 39554
2017-01-12 19:05:01 +00:00
Markus Scherer
3b23b78b95 ICU-12410 include what you use
X-SVN-Rev: 39553
2017-01-12 18:35:18 +00:00
Markus Scherer
7035c31b6d ICU-12410 add ucasemap_toTitleWithEdits(const UCaseMap *csm, icu::BreakIterator *iter, ...), change UErrorCode pointer to reference internally and in new C++ API functions, add ucasemap_foldCaseWithEdits(), change UCaseMap.iter to C++ BreakIterator
X-SVN-Rev: 39551
2017-01-09 23:52:12 +00:00
Markus Scherer
00f2e12b65 ICU-12410 Edits::Iterator getters not fields, tracks indexes, findSourceIndex(), skip-unchanged iterators, ucasemap_toLowerWithEdits() & ucasemap_toUpperWithEdits()
X-SVN-Rev: 39548
2017-01-06 00:20:31 +00:00
Markus Scherer
20994f490a ICU-12410 add Edits::Iterator and change UnicodeString case mappings to get & apply Edits for longer strings
X-SVN-Rev: 39547
2017-01-04 21:20:08 +00:00
Markus Scherer
6fc7fe3b65 ICU-12410 low-level UTF-16 case mapping functions optionally write metadata to new class Edits
X-SVN-Rev: 39546
2016-12-31 00:23:31 +00:00
Andy Heninger
fb0439839b ICU-12860 U_DRAFT -> U_CAPI. U_DRAFT appeared on three stable functions. Also changed U_STABLE->U_CAPI for consistencey within file. See #9961
X-SVN-Rev: 39544
2016-12-19 22:40:54 +00:00
Andy Heninger
7d2fe3819c ICU-12643 ICU4C, require C++11 to build.
X-SVN-Rev: 39543
2016-12-16 00:03:11 +00:00
Andy Heninger
0fd5600285 ICU-12809 only .cpp files no .c in ICU library code
X-SVN-Rev: 39527
2016-12-07 21:14:27 +00:00
Andy Heninger
52989746d9 ICU-12849 Title Casing, incorrect length returned when preflighting with a NULL output buffer.
X-SVN-Rev: 39518
2016-12-01 01:41:40 +00:00