diff options
author | Tarek Mahmoud Sayed <tarekms@microsoft.com> | 2016-11-01 16:17:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-01 16:17:50 -0700 |
commit | 98b795e2a7d76c0d854084add431d362394e9800 (patch) | |
tree | 51b2ad66037106b3dc84ca2706ecf6eb04ed5c79 /src/corefx | |
parent | 0112e877e29426464844dd6575ad1808caf37267 (diff) | |
download | coreclr-98b795e2a7d76c0d854084add431d362394e9800.tar.gz coreclr-98b795e2a7d76c0d854084add431d362394e9800.tar.bz2 coreclr-98b795e2a7d76c0d854084add431d362394e9800.zip |
Enable the rest of netstandard1.7 globalization APIs (#7935)
* Enable more netstandard 1.7 Globalization APIs
* Enable Windows support for the new APIs
* Fix spaces and line alignments
Diffstat (limited to 'src/corefx')
-rw-r--r-- | src/corefx/System.Globalization.Native/collation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corefx/System.Globalization.Native/collation.cpp b/src/corefx/System.Globalization.Native/collation.cpp index 4a6fafdbd6..06d41f9c23 100644 --- a/src/corefx/System.Globalization.Native/collation.cpp +++ b/src/corefx/System.Globalization.Native/collation.cpp @@ -325,6 +325,12 @@ bool CanIgnoreAllCollationElements(const UCollator* pColl, const UChar* lpStr, i } +extern "C" int32_t GlobalizationNative_GetSortVersion() +{ + // we didn't use UCOL_TAILORINGS_VERSION because it is deprecated in ICU v5 + return UCOL_RUNTIME_VERSION << 16 | UCOL_BUILDER_VERSION; +} + extern "C" SortHandle* GlobalizationNative_GetSortHandle(const char* lpLocaleName) { SortHandle* pSortHandle = new SortHandle(); |