Commit Graph

22672 Commits

Author SHA1 Message Date
Jeff Genovy
341608f7b6 ICU-21108 Update to use/support VS2019, and add extra CI builds for VS2017 and VS2019.
Change to use the Windows 10 SDK for Win32 (Win7) builds on the VS2019 ADO images.
The Windows 10 SDK is backwards compatible to Windows 7, if WINVER and
_WIN32_WINNT are set before compiling.

Clean up the vcxproj files from VC7.1
2020-09-02 13:01:27 -07:00
gnrunge
9a54efc5c7 ICU-21261 Adds 'units' data to pseudolocale data generation. Also corrects the documentation in a few places. 2020-09-02 10:56:56 -07:00
Peter Edberg
e618a1cc2d ICU-21249 integrate CLDR release 38 alpha0 to ICU trunk 2020-09-02 10:23:14 -07:00
younies
15747825bc ICU-20963 Add .clang-format file to icu4c/source
See #1143
2020-09-01 21:19:06 +02:00
Frank Tang
bc864aeac6 ICU-21051 Add copyright Remove License from sh
See #1281
2020-09-01 13:26:41 -05:00
Shane F. Carr
196d5e1182 ICU-20923 Fix compact notation with percent. 2020-09-01 04:36:04 -05:00
Markus Scherer
2f39d33498 ICU-13727 limit length of input for Punycode encode/decode
See #1241
2020-08-31 16:53:07 -07:00
Erik Torres
ba3b6acd5c ICU-21249 BRS68RC Version update and regenerate configure for v68
BRS68RC Updating files for release
2020-08-31 19:35:14 -04:00
Victor Chang
7a57d299df ICU-21247 Move #include "unicode/localpointer.h" into U_SHOW_CPLUSPLUS_API block 2020-08-31 15:19:29 -07:00
Markus Scherer
650bd402fe ICU-13727 add U_INPUT_TOO_LONG_ERROR & ICUInputTooLongException 2020-08-31 10:32:11 -07:00
Fredrik Roubert
ffd450c637 ICU-21035 Replace backward compatibility _getVariant*() functions.
The one single caller of _getVariantEx() is _getVariant() and this in
turn only has 3 callers, one of which is commented out (so it can be
deleted), one of which doesn't actually do anything (so it too can be
deleted) and one which can be replaced by inlining the use of
CheckedArrayByteSink.

This also allows _getVariantEx() to be renamed to _getVariant() as it's
the only such function left now.
2020-08-31 13:33:15 +02:00
Markus Scherer
f62693aa02 ICU-13416 change Armenian (hy) uppercase/titlecase of և ligature ech-yiwn 2020-08-30 18:19:10 -07:00
Frank Tang
cad3903cc2 ICU-21051 Add Locale::createCanonical performance test 2020-08-29 02:29:58 -07:00
Shane F. Carr
0101e2632c ICU-20164 Make NoUnit a zero-cost abstraction over MeasureUnit.
See #1230
2020-08-29 00:01:49 -05:00
Hugo van der Merwe
35eae09a7c ICU-21246 Handle kilogram SI prefix correctly
Fix kilogram parsing: ignore 'kilogram' as a stem, we have 'gram'.

Failures in the added unit test before the fix: withSIPrefix resulted
in 'microkilogram', and kilogram's prefix was considered to be
"ONE" (i.e. 10^0).
2020-08-29 00:07:08 +02:00
Shane F. Carr
0dbe1ae013 ICU-20927 Adding French narrow duration unit test. 2020-08-28 15:31:38 -05:00
Craig Cornelius
408cd128fc ICU-21242 rephrase documentation using term master
See #1255
2020-08-28 12:42:20 -07:00
David Beaumont
9bcd35aee0 ICU-21240 Removing unused makefile files and updating docs. 2020-08-28 20:41:03 +02:00
Hugo van der Merwe
66b2458a26 ICU-21066 Copy includelist of CLDR testData with tools/cldr/build.xml 2020-08-28 01:12:12 +02:00
Shane F. Carr
59cdbe1f53 ICU-21232 Improve performance of DecimalFormat#parse on long numbers 2020-08-27 14:33:05 -05:00
Fredrik Roubert
05d49fd373 ICU-21035 Replace backward compatibility locale_getKeywords() function.
By updating the last 3 callers to do dynamic memory allocation instead,
the fixed memory buffer function becomes obsolete.
2020-08-27 13:46:07 +02:00
Fredrik Roubert
d070fdddd1 ICU-21035 Remove obsolete use of CharString::getAppendBuffer().
The complicated buffer allocation code is inherited from times past but
no longer serves any purpose, it's now possible to instead simply call
the CharString copy constructor.
2020-08-26 13:49:26 +02:00
Fredrik Roubert
e8f3d5c657 ICU-21035 Replace backward compatibility ulocimp_getCountry() overload.
By always calling the dynamic memory allocation implementation directly
instead, the fixed memory buffer boundary gets pushed one step further
towards the edges.
2020-08-26 13:48:54 +02:00
Fredrik Roubert
db3278a71e ICU-21035 Replace backward compatibility ulocimp_getScript() overload.
By always calling the dynamic memory allocation implementation directly
instead, the fixed memory buffer boundary gets pushed one step further
towards the edges.
2020-08-25 00:30:54 +02:00
Frank Tang
3b188e46a4 ICU-21157 Fix test code
See #1256
2020-08-24 14:37:09 -07:00
Hugo van der Merwe
0387d1b988 ICU-21230 Add status to MaybeStackArray(int32_t newCapacity), plumb it through. 2020-08-24 22:55:26 +02:00
Markus Scherer
c8aa800735 ICU-21035 add & use CharString::extract(dest buffer)
See #1253
2020-08-21 16:29:25 -07:00
Markus Scherer
39da689d30 ICU-21184 rephrase docs/comments using the term grandfathered 2020-08-21 14:13:03 -07:00
Frank Tang
cde54fc5ba ICU-21157 Fix incorrect null termination.
See #1236
2020-08-20 16:22:34 -07:00
Fredrik Roubert
3a8e0a2fe9 ICU-21035 Replace backward compatibility ulocimp_getLanguage() overload.
By always calling the dynamic memory allocation implementation directly
instead, the fixed memory buffer boundary gets pushed one step further
towards the edges.
2020-08-20 23:38:30 +02:00
Erik Torres
a7a8cc3809 ICU-20808 Add test for the C locale to default to en_US_POSIX 2020-08-20 14:12:09 -07:00
Jeff Genovy
26775d7d13 ICU-21159 Fix memory leaks in cintltst TestUsingDefaultWarning. 2020-08-19 16:50:55 -07:00
David Beaumont
4cf2379d3c ICU-21066 Improvements in Ant build files
See #1224
2020-08-19 12:44:40 +02:00
Shane F. Carr
d2789a035b ICU-20774 Add option to icupkg to allow missing deps between resource files. 2020-08-17 20:09:08 -05:00
Frank Tang
e395e8abcd ICU-21159 Document U_USING_DEFAULT_WARNING in .h
Document the fact
uloc_getDisplay(Language|Script|Country|Variant|Keyword|KeywordValue)
would fallback with the code, case canonicalied in same cases, and
set the status to U_USING_DEFAULT_WARNING.

No change to the implementation behavior. Only complete the missing
comments and tweak line wrap, remove double spaces and add test to
validate this pre-existing behavior that I added the documents now.
2020-08-17 15:18:01 -07:00
Markus Scherer
9279e49d2f ICU-21030 validate ACE label edge cases 2020-08-14 14:32:47 -07:00
Markus Scherer
e19d12997b ICU-21212 full range check for Punycode digits 2020-08-14 11:37:40 -07:00
Paul Smith
e3f2c0dd70 ICU-21217 Windows: Fix link command for extra/scrptrun 2020-08-14 00:43:24 -07:00
Shane F. Carr
2ea56b531a ICU-21182 Adding UNumberRangeFormatter (C API).
See #1193
2020-08-12 21:33:38 -05:00
Shane F. Carr
88f092a9fb ICU-21191 Improve configurability of testtagsguards.sh 2020-08-11 21:22:31 -05:00
Shane F. Carr
bf2c2c5ca7 ICU-21176 Add aliases for terms "whitelist" and "blacklist" in data filter
See #1189
2020-08-11 21:21:59 -05:00
younies
7997955f2d ICU-21174 Add error-checking methods to MaybeStackVector & MemoryPool.
- MaybeStackVector::emplaceBackAndCheckErrorCode()
- MemoryPool::createAndCheckErrorCode()

Started with cherry-picks of:
3b505977c0e82659896125698389b59eabe50b14
63b93bde5c4c9fe030d490d5d448087aa0d4e5fd
2020-08-11 19:52:09 +02:00
Frank Tang
0eed48038b ICU-20725 Fix stack overflow of u_unescapeAt
See #1207
2020-08-10 14:59:38 -07:00
Paul Smith
ed268e77e3 ICU-21216 Windows: Ensure directory exists before running rc
When building in parallel it's possible that the rc command is invoked
before other rules get around to creating the output directory.
2020-08-10 12:16:47 -07:00
Hugo van der Merwe
4276d83e8a ICU-21174 Debug msg nitpick: s/MaybeStacArray/MaybeStackArray/ 2020-08-07 19:11:00 +02:00
Hugo van der Merwe
66d8df5338 ICU-21174 Delete not-to-be-used methods. Add a constructor warning. 2020-08-07 19:11:00 +02:00
Hugo van der Merwe
abdf0e667d ICU-21174 Add a memory allocation check in MeasureUnit. 2020-08-06 13:17:34 +02:00
Hugo van der Merwe
0b815fb8c3 ICU-21059 Load simple unit IDs from convertUnits.
PR: https://github.com/icu-units/icu/pull/41
Commit: 7877f0409019827b2d8d43b0843656322181972b
2020-08-05 10:57:19 +02:00
Hugo van der Merwe
5d97c9f13e ICU-21174 Increase safety of Measure and writeAffixes.
Measure: initialize unit to nullptr, and don't dereference it if it is
nullptr.

NumberFormatterImpl::writeAffixes: U_ASSERT not-null, instead of
segfaulting for coding mistakes.
2020-08-05 01:52:40 +02:00
Shane F. Carr
ee2d8b0103 ICU-21175 Add cnvalias as a dependency of misc_res 2020-08-04 18:50:43 -05:00