Commit Graph

5198 Commits

Author SHA1 Message Date
Shane Carr
3bbf68ff4e ICU-13461 Adding break statement to silence Clang -Wimplicit-fallthrough warning
X-SVN-Rev: 40733
2017-12-14 01:01:19 +00:00
Shane Carr
5c054df085 ICU-13495 Optimizing chooseMultiplierAndApply method implementation.
X-SVN-Rev: 40732
2017-12-14 00:47:43 +00:00
Andy Heninger
6d9ed3698b ICU-13457 Adjust Calendar buffer overrun fix for compatibility with AIX compiler, and with older versions of gcc. Also incorporate Jungshik's review comment.
X-SVN-Rev: 40723
2017-12-12 21:49:51 +00:00
Andy Heninger
d2cf99c677 ICU-13457 Fix initialization & copying of Calendar::validLocale & actualLocale.
X-SVN-Rev: 40670
2017-11-12 02:53:40 +00:00
Peter Edberg
71dd84d4ff ICU-12504 in ICU4C Persian cal, use int64_t math for one operation to avoid overflow; add tests in C and J
X-SVN-Rev: 40654
2017-10-29 03:38:05 +00:00
Yoshito Umaoka
4b67416113 ICU-13446 Fixed Chakma date format fractional seconds parsing problem. Removed logKnownIssue from TestTimeZoneFormat.
X-SVN-Rev: 40647
2017-10-26 22:13:13 +00:00
Jeff Genovy
a799b3d3ff ICU-13448 Feedback from clang expert was that these should not be specific to MSVC, but rather they should be specific to the Windows platform.
X-SVN-Rev: 40643
2017-10-26 06:49:15 +00:00
Yoshito Umaoka
f6e3124e74 ICU-13445 Pattern space handling in localized GMT format parser. Applied a fix to ICU4J equivalent to the ICU4C fix done by #13374. Also made a small fix in the previous ICU4C change to prevent buffer overrun with unexpected input.
X-SVN-Rev: 40642
2017-10-25 23:41:57 +00:00
Jeff Genovy
225365d30a ICU-13411 Typo in fix.
X-SVN-Rev: 40636
2017-10-25 17:27:45 +00:00
Jeff Genovy
e83872364b ICU-13411 Additional fix for template exports.
X-SVN-Rev: 40635
2017-10-25 17:11:37 +00:00
Shane Carr
1ba7875371 ICU-13415 Setting error code in terminal NumberFormatter methods when applicable. Renaming unproposed error codes for consistency with existing error codes in utypes.h.
X-SVN-Rev: 40632
2017-10-25 01:26:48 +00:00
Shane Carr
1ec3a8c6bb ICU-13411 Making "using namespace" statements consistent across number formatting cpp files.
X-SVN-Rev: 40630
2017-10-25 00:25:04 +00:00
Jungshik Shin
811b30b9c2 ICU-13192 revert accidentally committed files
X-SVN-Rev: 40628
2017-10-23 23:06:43 +00:00
Jungshik Shin
050e62025a ICU-13192 gCorrectedPOSIXLocaleis changed to const char*
X-SVN-Rev: 40627
2017-10-23 23:01:58 +00:00
Shane Carr
de3c990b0b ICU-13415 Refactoring shadowed virtual method in IFixedDecimal.
X-SVN-Rev: 40626
2017-10-23 07:12:39 +00:00
Shane Carr
df08682680 ICU-13415 Adding virtual destructor to internal Interface-like type SymbolProvider.
X-SVN-Rev: 40624
2017-10-19 23:47:20 +00:00
Andy Heninger
1c794eb111 ICU-13394 nul-terminated buffer handling fixed from Chromium.
X-SVN-Rev: 40615
2017-10-11 22:22:45 +00:00
Shane Carr
3db8233029 ICU-13415 Fixing compiler warnings in GCC
X-SVN-Rev: 40614
2017-10-11 21:28:38 +00:00
Jeff Genovy
bb430ebdf1 ICU-13177 Fix some comments for the new NumberFormatter API.
X-SVN-Rev: 40606
2017-10-09 20:32:40 +00:00
Yoshito Umaoka
ddfc308603 ICU-13385 Fixed a build error with glibc 2.26. Checks xlocale.h availability by autoconf.
X-SVN-Rev: 40603
2017-10-09 14:18:53 +00:00
Peter Edberg
9ac09264c9 ICU-13313 Fix ucol_next/prev docs to use UCOL_NULLORDER, not NULLORDER
X-SVN-Rev: 40601
2017-10-09 06:40:55 +00:00
Norbert Runge
b96966a131 ICU-13358 No-data test fixes (cf. BRS task).
X-SVN-Rev: 40599
2017-10-06 23:11:11 +00:00
Jeff Genovy
328dd95b9c ICU-13177 Fix minor typos/spelling in comments.
X-SVN-Rev: 40596
2017-10-06 22:44:25 +00:00
Jeff Genovy
b1a2e40781 ICU-13177 Check if the other NullableValue object is null before trying to use its value.
X-SVN-Rev: 40594
2017-10-06 21:13:56 +00:00
Jeff Genovy
97901d274e ICU-13177 Fix warnings reintroduced by the NumberFormatting work.
X-SVN-Rev: 40593
2017-10-06 20:32:13 +00:00
Norbert Runge
d835c3aac4 ICU-13384 fixes issues found in public header checks and unconfig.h variation check.
X-SVN-Rev: 40592
2017-10-06 16:52:14 +00:00
Shane Carr
6a43ed9826 ICU-13177 Moving FixedDecimal and IFixedDecimal destructors to cpp file.
X-SVN-Rev: 40591
2017-10-06 09:02:10 +00:00
Jeff Genovy
3bb0274f43 ICU-13126 Allow UWP builds to reuse makedata by undoing the disabling of renaming.
X-SVN-Rev: 40590
2017-10-06 07:31:14 +00:00
Peter Edberg
af8770bcac ICU-13358 ICU 60rc BRS, update U_HIDE_ conditionals
X-SVN-Rev: 40589
2017-10-06 07:26:01 +00:00
Shane Carr
bca22369f6 ICU-13177 Fixing dependency check errors in number formatting code.
X-SVN-Rev: 40586
2017-10-06 02:03:16 +00:00
Jeff Genovy
49d2336dfc ICU-13177 Fix empty include from NumberFormatting merge r40492.
X-SVN-Rev: 40585
2017-10-06 01:59:22 +00:00
Shane Carr
dbf0bfe4a7 ICU-13177 Improving consistency of Unicode string literals in number formatting code.
X-SVN-Rev: 40583
2017-10-06 01:37:59 +00:00
Jeff Genovy
4380990cc0 ICU-13177 Add missing entries to i18n_uwp.vcxproj for NumberFormatting.
X-SVN-Rev: 40581
2017-10-06 00:40:16 +00:00
Peter Edberg
82081f352c ICU-13377 update ICU4C 60 API change report after r40576, fix missing status tags in uspoof.h
X-SVN-Rev: 40579
2017-10-05 23:37:56 +00:00
Shane Carr
20351d35c8 ICU-13177 Removing some U_HIDE_INTERNAL_API blocks in numberformatter.h that were hiding declarations necessary for compiling client code.
X-SVN-Rev: 40578
2017-10-05 23:25:33 +00:00
Shane Carr
821a7f7540 ICU-13177 Adding missing status tags in numberformatter.h
X-SVN-Rev: 40576
2017-10-05 23:03:19 +00:00
Shane Carr
e6987fbfd8 ICU-13391 Change ICU4C parsing to count digits instead of UTF-16 code units for grouping sizes.
X-SVN-Rev: 40573
2017-10-05 21:41:46 +00:00
Peter Edberg
0b5b91a70b ICU-13366 Changes per Shane codereview comments
X-SVN-Rev: 40572
2017-10-05 20:36:07 +00:00
Peter Edberg
38ae69d64a ICU-12380 Use uint32_t for varMask and addMask
X-SVN-Rev: 40571
2017-10-05 20:34:24 +00:00
Yoshito Umaoka
730670eba5 ICU-13385 Fixed a typo.
X-SVN-Rev: 40570
2017-10-05 17:13:06 +00:00
Yoshito Umaoka
c620f117ca ICU-13385 autoconf to detect if xlocale.h exists or not.
X-SVN-Rev: 40568
2017-10-05 06:39:53 +00:00
Peter Edberg
7bdffc10a4 ICU-13377 ICU4C 60 API change report, plus fix one mistagged item
X-SVN-Rev: 40566
2017-10-05 06:06:44 +00:00
Shane Carr
25fed96c72 ICU-13093 Disabling number formatting code on AIX and z/OS due to C++11 compatibility issues.
X-SVN-Rev: 40560
2017-10-05 00:47:38 +00:00
Shane Carr
a5b3c2a9d6 ICU-13093 For AIX compatibility, replacing inline initializers with memset in MeasureFormatCacheData constructor.
X-SVN-Rev: 40559
2017-10-05 00:47:08 +00:00
Shane Carr
30eb63de01 ICU-13384 Fixing test failure from r40057
X-SVN-Rev: 40558
2017-10-04 23:41:05 +00:00
Norbert Runge
b536a39a74 ICU-13384 Adds #include unicode/utypes.h
X-SVN-Rev: 40557
2017-10-04 22:51:06 +00:00
Peter Edberg
68944a684d ICU-13377 Promote ICU4C @draft ICU 58 APIs to @stable in ICU 60
X-SVN-Rev: 40555
2017-10-04 22:37:14 +00:00
Shane Carr
302c255931 ICU-13177 Fixing coverity issues in number formatting code.
X-SVN-Rev: 40554
2017-10-04 22:29:21 +00:00
Jeff Genovy
6af490ee44 ICU-13177 Need to add NumberFormatting files to the UWP solution file too.
X-SVN-Rev: 40548
2017-10-04 19:20:30 +00:00
Jeff Genovy
62acf2ae94 ICU-13383 One more C4251 warning on MSVC.
X-SVN-Rev: 40546
2017-10-04 17:13:04 +00:00
Shane Carr
ca4891dd07 ICU-13177 Replacing override with U_OVERRIDE in i18n/plurrule_impl.h
X-SVN-Rev: 40543
2017-10-04 13:34:56 +00:00
Jeff Genovy
ab965990e5 ICU-13383 Export explicit templates for MSVC, remove UPRV_SUPPRESS_DLL_INTERFACE_WARNING macro.
X-SVN-Rev: 40542
2017-10-04 03:13:36 +00:00
Shane Carr
9d5639ac16 ICU-13117 Changing override to U_OVERRIDE in number formatting code.
X-SVN-Rev: 40541
2017-10-04 01:23:58 +00:00
Shane Carr
ca350d8a82 ICU-13177 Removing public dependency on std::atomic from unicode/numberformatter.h and casting to ICU's atomic type internally.
X-SVN-Rev: 40540
2017-10-04 01:15:54 +00:00
Peter Edberg
0065725adc ICU-13366 part 12, fix C SimpleDateFormat::subParse handling of 2-digit years for supplemental chars
X-SVN-Rev: 40536
2017-10-03 20:36:42 +00:00
Felipe Balbontín
45eaf65700 ICU-13380 Fix memory leak in DateFormatSymbols when loading AmPmMarkers and AmPmMarkersAbbr from the resource bundle.
X-SVN-Rev: 40525
2017-10-03 01:25:20 +00:00
Shane Carr
a4efe6d3d7 ICU-13383 Applying code review feedback for MSVC DLL interface warning.
X-SVN-Rev: 40524
2017-10-02 22:55:16 +00:00
Peter Edberg
9ccab14af1 ICU-13366 part 1, fix TextTrieMap::search supplemental handling; make tz displayName buffer size bigger & logKnownIssue tests more specific
X-SVN-Rev: 40522
2017-10-02 03:42:54 +00:00
Shane Carr
9fbda43d48 ICU-13380 Fixing memory overflow in MeasureFormat data loading.
X-SVN-Rev: 40516
2017-09-29 23:04:34 +00:00
Shane Carr
680ba3ce21 ICU-13383 Adding macro UPRV_SUPPRESS_DLL_INTERFACE_WARNING to suppress Visual C++ compiler warnings.
X-SVN-Rev: 40512
2017-09-29 00:16:08 +00:00
Shane Carr
d8368d6da4 ICU-13177 Fixing Visual Studio build warnings in number formatting code.
X-SVN-Rev: 40510
2017-09-28 22:53:31 +00:00
Shane Carr
87cd415960 ICU-13177 Adding additional static casts to reduce compiler warnings.
X-SVN-Rev: 40499
2017-09-28 20:24:35 +00:00
Shane Carr
5c711e36e8 ICU-13327 Fixing buffer overflow in NumberingSystem constructor.
X-SVN-Rev: 40494
2017-09-28 01:00:43 +00:00
Yoshito Umaoka
1599dabb7c ICU-13374 Fixed localized GMT offset format roundtrip in Perisian locale.
X-SVN-Rev: 40493
2017-09-28 00:53:39 +00:00
Shane Carr
131f416755 ICU-13177 Merging NumberFormatter to trunk for ICU 60
X-SVN-Rev: 40492
2017-09-27 23:46:15 +00:00
Markus Scherer
45a6728cbe ICU-13210 remove unreachable code, improve pattern pointer check
X-SVN-Rev: 40491
2017-09-27 23:28:43 +00:00
Shane Carr
7dc15c3372 ICU-13177 Fixing stack buffer overflow in decNumber conversion function.
X-SVN-Rev: 40490
2017-09-27 23:12:20 +00:00
Markus Scherer
f0bfac70f5 ICU-13362 avoid memcmp(nullptr, nullptr, 0)
X-SVN-Rev: 40488
2017-09-27 22:51:01 +00:00
Shane Carr
eb34602c75 ICU-13177 Adding IntlTest DoubleToUnicodeString and improving DecimalQuantity test
X-SVN-Rev: 40486
2017-09-27 22:31:07 +00:00
Andy Heninger
511ebeaa92 ICU-13177 add 'using namespace icu' where needed for build with -DU_USING_ICU_NAMESPACE=0
X-SVN-Rev: 40485
2017-09-27 21:43:09 +00:00
Andy Heninger
6b0ef1848d ICU-13177 Windows build, add U_I18N_API to exported classes. Builds, some warnings. Tests crash.
X-SVN-Rev: 40482
2017-09-27 18:50:44 +00:00
Shane Carr
b40a5ff9eb ICU-13177 Adding more documentation.
X-SVN-Rev: 40476
2017-09-27 09:03:19 +00:00
Andy Heninger
d2e59330cd ICU-13177 NumberFormatter, Visual Studio fixes, work in progress.
X-SVN-Rev: 40475
2017-09-27 06:44:13 +00:00
Shane Carr
2d49e73b8a ICU-13177 Cleanup before merge to trunk.
X-SVN-Rev: 40471
2017-09-27 05:31:57 +00:00
Shane Carr
93d9dc3fe2 ICU-13177 Cleaning up Valgrind errors in NumberFormatter unit test suite.
X-SVN-Rev: 40470
2017-09-27 03:52:08 +00:00
Shane Carr
c55bf3d8bf ICU-13177 Fixing minor NumberTest unit test failures.
X-SVN-Rev: 40469
2017-09-27 03:21:29 +00:00
Shane Carr
0a31ef3eb5 ICU-13177 Removing unused file number_results.h.
X-SVN-Rev: 40468
2017-09-27 03:07:35 +00:00
Shane Carr
d7a61a6e91 ICU-13177 NumberFormatter tests are passing.
X-SVN-Rev: 40467
2017-09-27 03:02:02 +00:00
Shane Carr
a88300f273 ICU-13177 NumberFormatter tests are building.
X-SVN-Rev: 40466
2017-09-27 02:16:44 +00:00
Shane Carr
a01fc429cb ICU-13177 Initial commit of ICU4C NumberFormatter
X-SVN-Rev: 40465
2017-09-27 00:25:20 +00:00
Shane Carr
c09ca5d6b9 ICU-13177 Merging trunk to branch
X-SVN-Rev: 40460
2017-09-26 09:33:44 +00:00
Shane Carr
6001089138 ICU-9300 Adding links to RoundingMode user guide to ICU4C documentation.
X-SVN-Rev: 40458
2017-09-26 07:59:00 +00:00
William Zhao
4bb34584ad ICU-13275 Merge into some W3 warning fixes into trunk
X-SVN-Rev: 40446
2017-09-22 18:00:51 +00:00
Markus Scherer
27c08578ac ICU-13311 change illegal-UTF-8 handling in non-converter code
X-SVN-Rev: 40445
2017-09-21 23:45:08 +00:00
Steven R. Loomis
89765009b4 ICU-13001 warning cleanup
- remove some dead code
- fix some warnings that show up when services, regex are turned off
- change some macros into inline functions to quell parenthesis complaints (ucnv_u16.cpp)

X-SVN-Rev: 40442
2017-09-21 19:43:28 +00:00
Peter Edberg
9075f9cb5a ICU-12380 Size reductions for transliterator registry (and some speedup)
X-SVN-Rev: 40434
2017-09-20 00:39:40 +00:00
Yoshito Umaoka
ed012e1bfb ICU-13312 Fixed getDisplayName crash issue caused by TZDBTimeZoneNames, added a test case for the fix that interate through all time zones.
X-SVN-Rev: 40412
2017-09-14 02:37:44 +00:00
Shane Carr
1f1a485c3c ICU-13177 Adding IFixedDecimal interface to C++.
X-SVN-Rev: 40391
2017-09-13 07:49:26 +00:00
Norbert Runge
52417e2221 ICU-13069 enables code to compile when UCONFIG_NO_NORMALIZATION is set to 1; all unit tests pass.
X-SVN-Rev: 40388
2017-09-12 20:29:14 +00:00
Shane Carr
d0c762e71c ICU-13351 Adding additional CurrencyUnit constructors and stabilizing API constract of MeasureUnit default constructor.
X-SVN-Rev: 40379
2017-09-12 05:20:50 +00:00
Shane Carr
57913822e0 ICU-13177 Internal changes to existing icu4c source.
X-SVN-Rev: 40378
2017-09-10 02:02:02 +00:00
Jugu Dannie Sundar
29cd7b1fc9 ICU-11632 icu4c changes for integer overflow in calendar support
X-SVN-Rev: 40369
2017-09-05 22:22:09 +00:00
Fredrik Roubert
3c9447aaea ICU-13336 Fix common typo: s/langauge/language/ig
X-SVN-Rev: 40361
2017-08-30 18:15:10 +00:00
George Rhoten
994a671e4e ICU-13306 Complete refactoring code based off of code review feedback.
X-SVN-Rev: 40360
2017-08-29 07:19:26 +00:00
George Rhoten
6e33099276 ICU-13306 API consistency changes based off of review feedback.
X-SVN-Rev: 40359
2017-08-29 07:14:27 +00:00
George Rhoten
5eed55e9a5 ICU-13306 Move rounding mode API to superclass as per technical committee review comments.
X-SVN-Rev: 40347
2017-08-23 17:38:00 +00:00
Shane Carr
d9056b1f32 ICU-13285 Adding NumberingSystem constructor methods to DecimalFormatSymbols (J and C).
X-SVN-Rev: 40345
2017-08-17 23:49:00 +00:00
George Rhoten
e3ac9c5561 ICU-13306 Can not get and set rounding attributes for RBNF with C API
X-SVN-Rev: 40343
2017-08-17 23:21:03 +00:00
Andy Heninger
f1d850bf8d ICU-13288 changes for jumbo compilation.
X-SVN-Rev: 40327
2017-08-11 21:38:54 +00:00
Yoshito Umaoka
7c31981bd0 ICU-13301 Removed redundant UVector entry clean up function call.
X-SVN-Rev: 40324
2017-08-09 19:13:30 +00:00