10#define ntv6(x) (LOBYTE(LOWORD(GetVersion())) >= 6 ? (x) : 0)
30 ExpectedUtf8 =
ntv6(1) ? ExpectedUtf8_Vista : ExpectedUtf8_2003;
36 ok_(
File,
Line)(Ret == Utf8Len,
"Length check: Ret = %d\n", Ret);
40 ok_(
File,
Line)(Ret == Utf8Len + 1,
"Length check with null: Ret = %d\n", Ret);
45 ok_(
File,
Line)(Ret == Utf8Len,
"Convert: Ret = %d\n", Ret);
46 for (
i = 0;
i < Utf8Len;
i++)
54 ok_(
File,
Line)(Ret == Utf8Len + 1,
"Convert with null: Ret = %d\n", Ret);
55 for (
i = 0;
i < Utf8Len + 1;
i++)
57 ok_(
File,
Line)(
Buffer[
i] == ExpectedUtf8[
i],
"Convert with null: Buffer[%lu] = 0x%x, expected 0x%x\n",
i, (
unsigned char)
Buffer[
i], (
unsigned char)ExpectedUtf8[
i]);
66 ok_(
File,
Line)(Ret == 0,
"Length check, reject invalid, NT5: Ret = %d\n", Ret);
71 ok_(
File,
Line)(Ret == 0,
"Length check, reject invalid: Ret = %d\n", Ret);
76 ok_(
File,
Line)(Ret == Utf8Len + 1,
"Length check, reject invalid: Ret = %d\n", Ret);
86 ok_(
File,
Line)(Ret == 0,
"Convert, reject invalid, NT5: Ret = %d\n", Ret);
91 ok_(
File,
Line)(Ret == 0,
"Convert, reject invalid: Ret = %d\n", Ret);
93 for (
i = 0;
i < Utf8Len + 1;
i++)
95 ok_(
File,
Line)(
Buffer[
i] == ExpectedUtf8[
i],
"Convert, reject invalid: Buffer[%lu] = 0x%x, expected 0x%x\n",
i, (
unsigned char)
Buffer[
i], (
unsigned char)ExpectedUtf8[
i]);
100 ok_(
File,
Line)(Ret == Utf8Len + 1,
"Convert, reject invalid: Ret = %d\n", Ret);
101 for (
i = 0;
i < Utf8Len + 1;
i++)
103 ok_(
File,
Line)(
Buffer[
i] == ExpectedUtf8[
i],
"Convert, reject invalid: Buffer[%lu] = 0x%x, expected 0x%x\n",
i, (
unsigned char)
Buffer[
i], (
unsigned char)ExpectedUtf8[
i]);
107#define Utf8Convert(w, e, i) Utf8Convert_(w, e, e, i, __FILE__, __LINE__)
108#define Utf8Convert_Vista(w, e, i, e2) Utf8Convert_(w, e, e2, i, __FILE__, __LINE__)
156 "\xef\xbf\xbd\xef\xbf\xbd");
#define WideCharToMultiByte
#define FillMemory(BUF, SIZ, MASK)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define WC_ERR_INVALID_CHARS
int WINAPI lstrlenA(LPCSTR lpString)
#define Utf8Convert(w, e, i)
#define Utf8Convert_Vista(w, e, i, e2)
static VOID TestUtf8(VOID)
static VOID Utf8Convert_(_In_ PCWSTR WideString, _In_ PCSTR ExpectedUtf8_2003, _In_ PCSTR ExpectedUtf8_Vista, _In_ BOOL IsInvalid, _In_ PCSTR File, _In_ INT Line)
DWORD WINAPI GetLastError(void)
#define ERROR_NO_UNICODE_TRANSLATION
#define ERROR_INVALID_FLAGS