32 {
"",
L"", 0, 0, 0, 0, 0 },
33 {
"",
L"", -1, 0, -1, 0, 1 },
34 {
"",
L"", 1, 0, 1, 0, 1 },
36 {
"AAABBB",
L"AAABBB", 0, 6, 0, 6, 0 },
37 {
"AAABBB",
L"AAABBB", 3, 6, 3, 6, 3 },
38 {
"AAABBB",
L"AAABBB", -1, 6, -1, 6, 7 },
63 memset(bufA,
'x',
sizeof(bufA));
66 ok(ch ==
'\0',
"Expected %i to be \\0, was: %c (%i) for %u\n",
g_Tests[
n].exp_1, ch, (
int)ch,
n);
69 ok(ch ==
'x',
"Expected %i to be 'x', was: %c (%i) for %u\n",
g_Tests[
n].exp_1+1, ch, (
int)ch,
n);
74 memset(bufA,
'x',
sizeof(bufA));
77 ok(ch ==
'\0',
"Expected %i to be \\0, was: %c (%i) for %u\n",
g_Tests[
n].exp_1, ch, (
int)ch,
n);
80 ok(ch ==
'x',
"Expected %i to be 'x', was: %c (%i) for %u\n",
g_Tests[
n].exp_1+1, ch, (
int)ch,
n);
98 memset(bufW,
'x',
sizeof(bufW));
101 ok(ch ==
L'\0',
"Expected %i to be \\0, was: %c (%i) for %u\n",
g_Tests[
n].exp_1, ch, (
int)ch,
n);
104 ok(ch == 30840,
"Expected %i to be %i for %u\n",
g_Tests[
n].exp_1+1, (
int)ch,
n);
109 memset(bufW,
'x',
sizeof(bufW));
112 ok(ch ==
'\0',
"Expected %i to be \\0, was: %c (%i) for %u\n",
g_Tests[
n].exp_1, ch, (
int)ch,
n);
115 ok(ch == 30840,
"Expected %i to be %i for %u\n",
g_Tests[
n].exp_1+1, (
int)ch,
n);
123#define TEST_NAMEX(name) void test_##name##W()
124#define CStringX CStringW
128#define dbgstrx(x) wine_dbgstr_w(x)
129#define ok ok_("CStringW:\n" __FILE__, __LINE__)
130#define GetWindowsDirectoryX GetWindowsDirectoryW
131#define MAKEINTRESOURCEX(x) MAKEINTRESOURCEW(x)
132#define MAKEINTRESOURCEY(x) MAKEINTRESOURCEA(x)
133#include "CString.inl"
143#undef GetWindowsDirectoryX
144#undef MAKEINTRESOURCEX
145#undef MAKEINTRESOURCEY
147#define TEST_NAMEX(name) void test_##name##A()
148#define CStringX CStringA
152#define dbgstrx(x) (const char*)x
153#define ok ok_("CStringA:\n" __FILE__, __LINE__)
154#define GetWindowsDirectoryX GetWindowsDirectoryA
155#define MAKEINTRESOURCEX(x) MAKEINTRESOURCEA(x)
156#define MAKEINTRESOURCEY(x) MAKEINTRESOURCEW(x)
157#include "CString.inl"
164 test_operators_initW();
165 test_operators_initA();
static void test_basetypes()
int strcmp(const char *String1, const char *String2)
static int __cdecl GetBaseTypeLength(_In_z_ LPCWSTR pszSource) noexcept
static void __cdecl ConvertToBaseType(_Out_writes_(nDestLength) LPWSTR pszDest, _In_ int nDestLength, _In_ LPCWSTR pszSrc, _In_ int nSrcLength=-1)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)