/reactos/modules/rostests/tests/wcstombs-tests/ |
H A D | wcstombs-tests.c | 51 OK(mbs[0] == 0, "mbs[0] is %d", mbs[0]); in CRT_Tests() 59 OK(!strcmp(mbs, "Th"), "mbs is %s", mbs); in CRT_Tests() 122 ret = wcstombs(mbs, wcs, sizeof(mbs)); in CRT_Tests() 124 OK(!strcmp(mbs, "Th�i"), "mbs is %s", mbs); in CRT_Tests() 140 ZeroMemory(mbs, sizeof(mbs)); in CRT_Tests() 141 ret = wcstombs(mbs, wcs, sizeof(mbs)); in CRT_Tests() 159 OK(!strcmp(mbs, "Th?"), "mbs is %s", mbs); in CRT_Tests() 163 ret = wcstombs(mbs, dbwcs, sizeof(mbs)); in CRT_Tests() 183 OK(mbs[0] == 0, "mbs[0] is %d", mbs[0]); in CRT_Tests() 189 OK(mbs[0] == 84, "mbs[0] is %d", mbs[0]); in CRT_Tests() [all …]
|
/reactos/modules/rostests/winetests/kernel32/ |
H A D | codepage.c | 328 char mbs[15]; in test_string_conversion() local 383 ok(!strcmp(mbs, "Th?i"), "mbs is %s\n", mbs); in test_string_conversion() 386 mbs[0] = 0; in test_string_conversion() 393 ok(!strcmp(mbs, "Th?i"), "mbs is %s\n", mbs); in test_string_conversion() 396 ZeroMemory(mbs, 5); in test_string_conversion() 402 ok(!strcmp(mbs, "Th?"), "mbs is %s\n", mbs); in test_string_conversion() 409 ok(!strcmp(mbs, "??"), "mbs is %s\n", mbs); in test_string_conversion() 414 ok(!strcmp(mbs, "\xf3\xe7\x3d\xa3\xbf\xa3\xbf\xa3\xbf"), "mbs is %s\n", mbs); in test_string_conversion() 440 ok(!strcmp(mbs, "\xb5H\xa9\xd2"), "mbs is %s\n", mbs); in test_string_conversion() 449 ZeroMemory(mbs, 5); in test_string_conversion() [all …]
|
/reactos/sdk/lib/crt/string/ |
H A D | mbstowcs_nt.c | 14 PUCHAR mbs = mbarr; in mbtowc() local 25 wc = RtlAnsiCharToUnicodeChar(&mbs); in mbtowc() 32 return (int)(mbs - mbarr); in mbtowc()
|
/reactos/drivers/filesystems/ext2/src/ |
H A D | misc.c | 128 UCHAR mbs[0x10]; in Ext2UnicodeToMbs() local 134 RtlZeroMemory(mbs, 0x10); in Ext2UnicodeToMbs() 137 mbs, in Ext2UnicodeToMbs() 164 mbs, in Ext2UnicodeToMbs() 170 &mbs[0], in Ext2UnicodeToMbs()
|
/reactos/modules/rostests/apitests/user32/ |
H A D | CharFuncs.c | 400 SIZE_T sz, mbs; in AllocStringA() local 413 mbs = WideCharToMultiByte(TEST_ACP, 0, lpszStr, -1, NULL, 0, NULL, NULL); in AllocStringA() 414 if (!mbs || mbs > sz) in AllocStringA() 418 trace("WideCharToMultiByte returned %lu (error %ld)\n", mbs, GetLastError()); in AllocStringA() 422 WideCharToMultiByte(TEST_ACP, 0, lpszStr, -1, str, mbs, NULL, NULL); in AllocStringA()
|
/reactos/sdk/lib/crt/stdio/ |
H A D | file.c | 2968 char mbs[MB_LEN_MAX]; in fgetwc() local 2973 mbs[0] = (char)ch; in fgetwc() 2974 if(isleadbyte((unsigned char)mbs[0])) { in fgetwc() 2977 mbs[1] = (char)ch; in fgetwc() 2985 if(!len || mbtowc(&ret, mbs, len)==-1) in fgetwc() 4002 char mbs[MB_LEN_MAX]; in ungetwc() local 4005 len = wctomb(mbs, mwc); in ungetwc() 4012 if(mbs[len] != ungetc(mbs[len], file)) { in ungetwc()
|