Commit Graph

2658 Commits

Author SHA1 Message Date
Steven R. Loomis
383d3eead1 ICU-12766 cleanup and add test case for escaper
X-SVN-Rev: 39810
2017-03-15 02:16:35 +00:00
Steven R. Loomis
803210153a ICU-12766 merge from trunk
X-SVN-Rev: 39808
2017-03-15 00:50:54 +00:00
Steven R. Loomis
4890638e08 ICU-12766 wip escaping for utf-8 input
* create a new escaper tool - needs to be invoked in mh- files
* escapes to temporary _whatever.cpp files
* does NOT handle multi line u"xxx" (or u'xxx'? )
* does not cleanup _*.cpp files
* fixup a bunch of Makefiles to add -I$(srcdir) (doesn't hurt anyway)

X-SVN-Rev: 39787
2017-03-13 23:19:33 +00:00
Steven R. Loomis
d9cdb7568c ICU-12766 add stub escapesrc
X-SVN-Rev: 39774
2017-03-13 19:08:18 +00:00
Markus Scherer
05c591d7ef ICU-12992 add char16ptr.h with pointer conversions; use Char16Ptr for input parameters where possible; make UChar configurable but default to char16_t; add OldUChar same as ICU 58 UChar except not configurable; in public C++ headers change all UChar to char16_t (integrate branches/markus/ucharptr2)
X-SVN-Rev: 39762
2017-03-10 22:01:34 +00:00
Steven R. Loomis
153ccb4e2e ICU-12766 revert r39756 (mistake)
X-SVN-Rev: 39758
2017-03-10 02:58:13 +00:00
Steven R. Loomis
6f30aba8ef ICU-12766 esc- work in progress
X-SVN-Rev: 39756
2017-03-10 02:27:09 +00:00
Markus Scherer
bf17d52293 ICU-12992 add OldUChar type to match ICU 58 UChar; add public conversion functions from char16_t * to UChar * and OldUChar * with aliasing barrier
X-SVN-Rev: 39747
2017-03-08 22:08:12 +00:00
Markus Scherer
b5b52ad027 ICU-12992 make tools & tests work with configured UChar=uint16_t
X-SVN-Rev: 39742
2017-03-08 01:07:20 +00:00
Steven R. Loomis
8d61ae06b3 ICU-12766 merge from trunk
X-SVN-Rev: 39734
2017-03-04 06:46:33 +00:00
Markus Scherer
9b792c3cf1 ICU-12736 remove remaining uses of now-obsolete U_HAVE_STD_STRING
X-SVN-Rev: 39733
2017-03-04 00:22:40 +00:00
Markus Scherer
a32c1b17ec ICU-12736 assume in some places that we always have std::string; merge r39687 & r39704 from dev branch
X-SVN-Rev: 39731
2017-03-04 00:06:17 +00:00
Markus Scherer
5a13a8ca58 ICU-12992 return raw pointers not pointer wrappers
X-SVN-Rev: 39729
2017-03-03 22:42:52 +00:00
Steven R. Loomis
666ba715d5 ICU-12766 merge from trunk
X-SVN-Rev: 39728
2017-03-03 21:55:08 +00:00
Yoshito Umaoka
9354784c16 ICU-12816 tzdata2017a to ICU4C/ICU4J. Override region for Pacific/Johnston, so region mapping stayed same with previous versions. Fixed a tzcode build problem.
X-SVN-Rev: 39725
2017-03-02 07:39:17 +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
Steven R. Loomis
a900fee035 ICU-12766 merge from trunk
X-SVN-Rev: 39714
2017-02-28 19:36:42 +00:00
Andy Heninger
4ff013c080 ICU-12913 Add cast to avoid printf compile warning.
X-SVN-Rev: 39688
2017-02-18 00:14:37 +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
Steven R. Loomis
45e054a938 ICU-12766 z: library and tools build: C linkage for makeconv/pluggable malloc
X-SVN-Rev: 39672
2017-02-14 01:22:12 +00:00
Steven R. Loomis
c8ed8a6048 ICU-12766 z: library and tools build
X-SVN-Rev: 39665
2017-02-11 02:43:09 +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
242e02c388 ICU-12764 icu4c utf-8 source files, update Copyright notices.
X-SVN-Rev: 39583
2017-01-20 00:20:31 +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
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
Markus Scherer
3b23b78b95 ICU-12410 include what you use
X-SVN-Rev: 39553
2017-01-12 18:35:18 +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
16b73a36ca ICU-12798 directory traversal code assumes that path length is less than PATH_MAX
X-SVN-Rev: 39468
2016-10-18 00:31:55 +00:00
Yoshito Umaoka
04b460f204 ICU-12779 Added/fixed Unicode copyright comments, commiting changes on behalf of Norbert.
X-SVN-Rev: 39459
2016-10-17 21:55:45 +00:00
Yoshito Umaoka
1f86b8df9e ICU-12802 Regenerated zoneinfo64.txt with region override for Europe/Simferopol. Integrated windowsZones.txt including the region mapping update.
X-SVN-Rev: 39439
2016-10-12 22:29:00 +00:00
Andy Heninger
6994b1a557 ICU-12734 Adjust ICUMemCheck.pl for deletion of the Layout Engine.
X-SVN-Rev: 39338
2016-09-22 23:41:00 +00:00
Andy Heninger
9f925b0287 ICU-12751 CStr, add icu:: namespace.
X-SVN-Rev: 39317
2016-09-21 21:02:21 +00:00
Steven R. Loomis
370abbf3b9 ICU-12751 use cstr instead of toUTF8String
X-SVN-Rev: 39311
2016-09-21 19:40:11 +00:00
Peter Edberg
1cca956fcf ICU-12738 ICU4C BRS, update urename.h
X-SVN-Rev: 39307
2016-09-21 06:07:26 +00:00
Steven R. Loomis
3a8a02cae1 ICU-11746 more warning cleanup
X-SVN-Rev: 39296
2016-09-20 21:03:19 +00:00
Markus Scherer
7960164327 ICU-12663 UnicodeString support nearly 2G UChars & avoid integer overflows; string-to-string case mappings & detect integer overflows; make some calls to uprv_memcpy() and similar a little more robust by casting int32_t to size_t before multiplying
X-SVN-Rev: 39288
2016-09-20 01:10:36 +00:00
Yoshito Umaoka
416a42bdfc ICU-12738 Updated ICU4C version to 58.1. Also updated uvernum.h to use the Unicode copyright string, which will be embedded in ICU binary data files.
X-SVN-Rev: 39234
2016-09-15 03:02:38 +00:00
Shane Carr
2ceb565df3 ICU-12549 Updating SpoofChecker to latest Unicode specification.
X-SVN-Rev: 39218
2016-09-13 22:15:13 +00:00
Shawn Steele
326552aa72 ICU-12087 - merge updates to use VS2015
X-SVN-Rev: 39085
2016-08-24 20:52:23 +00:00
Markus Scherer
962c595814 ICU-12669 draft Emoji 4.0 properties data
X-SVN-Rev: 39067
2016-08-18 21:08:23 +00:00
Yoshito Umaoka
025a0be74a ICU-12415 tzdata2016f updates to ICU4C. Also updated tz2icu to include the Unicode copyright comments.
X-SVN-Rev: 38943
2016-07-05 22:47:38 +00:00
Michael Ow
0402053377 ICU-12566 Fix null strlen check
X-SVN-Rev: 38885
2016-06-26 21:08:16 +00:00
Michael Ow
6398be7e34 ICU-12566 Fix limitation of file name size longer than 300 characters
X-SVN-Rev: 38882
2016-06-24 20:38:24 +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
1e1c827d5f ICU-12415 tzdata2016e updates to ICU4C, removed year upperbound check in tz2icu, fixed a complation error in icuzdump and updated a test case based on 2016e changes.
X-SVN-Rev: 38846
2016-06-15 15:33:57 +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
84b42ae4d1 ICU-12564 Update copyright notice in more files of ICU4C
X-SVN-Rev: 38762
2016-05-27 22:09:25 +00:00
Michael Ow
c9f199a30f ICU-12564 Update copyright notice in ICU4C
X-SVN-Rev: 38761
2016-05-26 22:32:17 +00:00
Markus Scherer
5e69db5c2f ICU-12526 integrate Unicode 9 beta
X-SVN-Rev: 38753
2016-05-19 22:48:18 +00:00
Michael Ow
d63a77bca4 ICU-12455 Update version number to 58.0.1 in ICU4C
X-SVN-Rev: 38711
2016-05-06 20:53:07 +00:00
Steven R. Loomis
691dc350e1 ICU-11822 Merge in fix for vc2015 failures
X-SVN-Rev: 38583
2016-03-25 00:18:05 +00:00
Markus Scherer
7db1c41417 ICU-12141 checking layout, layoutex, tools & tests now too; added some includes; renamed one of the two struct LookupTable in the layout engine
X-SVN-Rev: 38500
2016-03-07 20:26:37 +00:00
Markus Scherer
a9c247a3cb ICU-12166 annotate intended switch case fallthroughs
X-SVN-Rev: 38447
2016-03-01 07:44:57 +00:00
Andy Heninger
9d9256f3b7 ICU-12081 Initial implementation Emoji break rules and a new RBBI monkey test.
X-SVN-Rev: 38387
2016-02-26 21:58:26 +00:00
Markus Scherer
f2186b6d33 ICU-12141 make each internal header file compile by itself; add includes where necessary; add simple test script
X-SVN-Rev: 38341
2016-02-24 00:49:51 +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
Michael Ow
4382bcac9f ICU-9747 Fix build issues in MSVC 2015
X-SVN-Rev: 38198
2016-01-25 20:43:27 +00:00
Michael Ow
714973b396 ICU-12083 Update version number to 57m1 in ICU4C
X-SVN-Rev: 38186
2016-01-21 20:04:00 +00:00
Michael Ow
03392ddd85 ICU-12026 Add .size to gcc assembly code
X-SVN-Rev: 38117
2015-12-10 14:36:50 +00:00
Michael Ow
64bd7cbf4f ICU-11959 Apply patch for flag parser
X-SVN-Rev: 38081
2015-10-28 20:16:51 +00:00
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
6b8c10a398 ICU-11826 fix makeconv linkage change that broke on non-Windows
You can please some of the platforms some of the time…

X-SVN-Rev: 37933
2015-09-10 02:39:41 +00:00
Steven R. Loomis
9d91ee05db ICU-11826 makeconf.cpp fix for Windows linkage
X-SVN-Rev: 37931
2015-09-10 02:06:33 +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
Markus Scherer
2769a64643 ICU-11863 pkgdata.cpp define & use LocalPipeFilePointer (auto pointer) for popen/pclose
X-SVN-Rev: 37921
2015-09-09 18:47:00 +00:00
Markus Scherer
d42e632251 ICU-11830 genrb.cpp: use CharString for pool file name & current file name; use LocalPointer for newPoolBundle; use UErrorCode reference not pointer
X-SVN-Rev: 37904
2015-09-08 21:44:49 +00:00
Markus Scherer
436d5a6ddc ICU-11829 change derb.c to .cpp; use CharString & UnicodeString for building strings; remove unused converter variable; use UPRV_LENGTHOF()
X-SVN-Rev: 37903
2015-09-08 21:08:55 +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
1e736e034b ICU-11704 better/simpler memory management in toolutil/pkg_icu.cpp writePackageDatFile()
X-SVN-Rev: 37896
2015-09-07 01:32:31 +00:00
Markus Scherer
0bdc5dd937 ICU-11774 toolutil Package use uprv_free & LocalMemory, not free()
X-SVN-Rev: 37883
2015-09-04 18:59:17 +00:00
Markus Scherer
b4b5fc8392 ICU-11831 u_parseArgs() reset option->doesOccur in case of error
X-SVN-Rev: 37882
2015-09-04 18:38:25 +00:00
Michael Ow
8a6d11ed90 ICU-11811 Delete pointer on error
X-SVN-Rev: 37852
2015-08-31 19:03:13 +00:00
Michael Ow
d3a1c40213 ICU-11828 Add check for null pointer
X-SVN-Rev: 37851
2015-08-31 18:59:01 +00:00
Markus Scherer
e1ea4422bc ICU-11537 genrb write .res formatVersion 2 if it would default to 3 without benefit: even if the pool bundle has string values, if they are not in fact shared
X-SVN-Rev: 37737
2015-08-07 21:36:08 +00:00
Markus Scherer
00ae09aa36 ICU-11537 genrb write .res formatVersion 2 if it would default to 3 without benefit: without sharing pool bundle string values
X-SVN-Rev: 37736
2015-08-07 21:05:32 +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
Michael Ow
7647eff8f5 ICU-11744 Ensure that array is initialized correctly
X-SVN-Rev: 37700
2015-07-28 17:29:43 +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
Markus Scherer
3fafa669d7 ICU-11761 init fStringsForm with named constant
X-SVN-Rev: 37657
2015-07-08 23:14:47 +00:00
Markus Scherer
f527e0b536 ICU-11761 stringSet strings are unique
X-SVN-Rev: 37656
2015-07-08 22:37:20 +00:00
Markus Scherer
459c8d0e81 ICU-11761 reslist.cpp force explicit UnicodeString constructors, like other genrb .cpp files
X-SVN-Rev: 37655
2015-07-08 22:24:54 +00:00
Markus Scherer
c1f7be3ffe ICU-11761 bug fix: always begin 16BitUnits[] with a 0 for empty resources, see uresdata.h (was almost always true before r37644)
X-SVN-Rev: 37654
2015-07-08 22:07:52 +00:00
Markus Scherer
5d7b60d863 ICU-11761 include assert.h
X-SVN-Rev: 37653
2015-07-08 18:17:53 +00:00
Markus Scherer
f87b2c9b3c ICU-11761 share equal strings even if they need explicit length; more generic root resource for flexibility (experiment with more work on pool bundles)
X-SVN-Rev: 37649
2015-07-07 18:50:21 +00:00
Markus Scherer
18e27b35d6 ICU-11761 more readable pool bundle usage & string compacting
X-SVN-Rev: 37645
2015-07-03 17:09:17 +00:00
Markus Scherer
a1348758c1 ICU-11761 simpler memory management with UnicodeString & LocalArray
X-SVN-Rev: 37644
2015-07-03 02:12:17 +00:00
Markus Scherer
9312cb2d1a ICU-11761 SResource virtual dispatch for preflighting & writing resources; C++ify some of SRBRoot
X-SVN-Rev: 37643
2015-07-02 23:51:09 +00:00
Andy Heninger
59a70fdd6e ICU-11751 Fix Windows build problem with revised reslist.cpp, again.
X-SVN-Rev: 37622
2015-06-24 23:21:11 +00:00
Andy Heninger
0f9cf08e1c ICU-11751 Fix Windows build problem with revised reslist.cpp
X-SVN-Rev: 37621
2015-06-24 22:13:11 +00:00
Markus Scherer
62e756505c ICU-11751 polymorphic TableResource, ArrayResource, IntResource, IntVectorResource, BinaryResource
X-SVN-Rev: 37619
2015-06-24 20:15:08 +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
cfe9e72aec ICU-11751 change genrb reslist.c & wrtjava.c to C++ (mostly just .c to .cpp)
X-SVN-Rev: 37610
2015-06-23 07:07:27 +00:00
Michael Ow
f32fcafadd ICU-11732 Increase buffer size to avoid overflow
X-SVN-Rev: 37580
2015-06-16 18:31:19 +00:00
Markus Scherer
344357d3f6 ICU-11720 better memory management in genrb parseBinary() using auto pointers
X-SVN-Rev: 37577
2015-06-16 13:14:14 +00:00
Markus Scherer
5b21336927 ICU-11719 better memory management in genrb parseImport() using string class & auto pointers
X-SVN-Rev: 37576
2015-06-16 12:34:36 +00:00
Markus Scherer
f99546419f ICU-11711 better memory management in GenrbImporter::getRules() using string class & auto pointers
X-SVN-Rev: 37575
2015-06-16 11:23:04 +00:00
Michael Ow
85b06c4845 ICU-11694 Fix memory leak when parsing flag file
X-SVN-Rev: 37482
2015-06-01 20:01:33 +00:00
Andy Heninger
ae678d796b ICU-11609 add svn:eol-style property to vcxproj files.
X-SVN-Rev: 37364
2015-04-17 21:25:48 +00:00
Steven R. Loomis
90b2bf6959 ICU-11642 add -q options to gencfu,gencnval,gendict,makeconv,genbrk
X-SVN-Rev: 37343
2015-04-16 15:22:30 +00:00
Jungshik Shin
3808ffa3c2 ICU-10572 Make ICU data symbol private on Mac and Linux
X-SVN-Rev: 37109
2015-03-03 17:47:29 +00:00