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
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);
+}
}
}
+// 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
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);
+}