Add un-prefixed signatures as temporary workaround
authorJan Kotas <jkotas@microsoft.com>
Fri, 29 Jan 2016 20:15:57 +0000 (12:15 -0800)
committerJan Kotas <jkotas@microsoft.com>
Fri, 29 Jan 2016 21:31:41 +0000 (13:31 -0800)
src/corefx/System.Globalization.Native/idna.cpp
src/corefx/System.Globalization.Native/normalization.cpp

index 4820d2c..adf6a3a 100644 (file)
@@ -53,6 +53,15 @@ extern "C" int32_t GlobalizationNative_ToAscii(
     return ((U_SUCCESS(err) || (err == U_BUFFER_OVERFLOW_ERROR)) && (info.errors == 0)) ? asciiStrLen : 0;
 }
 
+// TODO: temporarily keeping the un-prefixed signature of this method
+// to keep tests running in CI. This will be removed once the corefx managed assemblies
+// are synced up with the native assemblies.
+extern "C" int32_t ToAscii(
+    uint32_t flags, const UChar* lpSrc, int32_t cwSrcLength, UChar* lpDst, int32_t cwDstLength)
+{
+    return GlobalizationNative_ToAscii(flags, lpSrc, cwSrcLength, lpDst, cwDstLength);
+}
+
 /*
 Function:
 ToUnicode
@@ -78,3 +87,12 @@ extern "C" int32_t GlobalizationNative_ToUnicode(
 
     return ((U_SUCCESS(err) || (err == U_BUFFER_OVERFLOW_ERROR)) && (info.errors == 0)) ? unicodeStrLen : 0;
 }
+
+// TODO: temporarily keeping the un-prefixed signature of this method
+// to keep tests running in CI. This will be removed once the corefx managed assemblies
+// are synced up with the native assemblies.
+extern "C" int32_t ToUnicode(
+    int32_t flags, const UChar* lpSrc, int32_t cwSrcLength, UChar* lpDst, int32_t cwDstLength)
+{
+    return GlobalizationNative_ToUnicode(flags, lpSrc, cwSrcLength, lpDst, cwDstLength);
+}
index f96f5ee..0115af2 100644 (file)
@@ -65,6 +65,15 @@ extern "C" int32_t GlobalizationNative_IsNormalized(
     }
 }
 
+// TODO: temporarily keeping the un-prefixed signature of this method
+// to keep tests running in CI. This will be removed once the corefx managed assemblies
+// are synced up with the native assemblies.
+extern "C" int32_t IsNormalized(
+    NormalizationForm normalizationForm, const UChar* lpStr, int32_t cwStrLength)
+{
+    return GlobalizationNative_IsNormalized(normalizationForm, lpStr, cwStrLength);
+}
+
 /*
 Function:
 NormalizeString
@@ -86,3 +95,12 @@ extern "C" int32_t GlobalizationNative_NormalizeString(
 
     return (U_SUCCESS(err) || (err == U_BUFFER_OVERFLOW_ERROR)) ? normalizedLen : 0;
 }
+
+// TODO: temporarily keeping the un-prefixed signature of this method
+// to keep tests running in CI. This will be removed once the corefx managed assemblies
+// are synced up with the native assemblies.
+extern "C" int32_t NormalizeString(
+    NormalizationForm normalizationForm, const UChar* lpSrc, int32_t cwSrcLength, UChar* lpDst, int32_t cwDstLength)
+{
+    return GlobalizationNative_NormalizeString(normalizationForm, lpSrc, cwSrcLength, lpDst, cwDstLength);
+}