Lines Matching refs:mbrtowc

46 	T(mbrtowc(&wc, "\x80", 1, &st), -1, "failed to catch error");
47 T(mbrtowc(&wc, "\xc0", 1, &st), -1, "failed to catch illegal initial");
49 T(mbrtowc(&wc, "\xc0\x80", 2, &st), -1, "aliasing nul");
50 T(mbrtowc(&wc, "\xc0\xaf", 2, &st), -1, "aliasing slash");
51 T(mbrtowc(&wc, "\xe0\x80\xaf", 3, &st), -1, "aliasing slash");
52 T(mbrtowc(&wc, "\xf0\x80\x80\xaf", 4, &st), -1, "aliasing slash");
53 T(mbrtowc(&wc, "\xf8\x80\x80\x80\xaf", 5, &st), -1, "aliasing slash");
54 T(mbrtowc(&wc, "\xfc\x80\x80\x80\x80\xaf", 6, &st), -1, "aliasing slash");
55 T(mbrtowc(&wc, "\xe0\x82\x80", 3, &st), -1, "aliasing U+0080");
56 T(mbrtowc(&wc, "\xe0\x9f\xbf", 3, &st), -1, "aliasing U+07FF");
57 T(mbrtowc(&wc, "\xf0\x80\xa0\x80", 4, &st), -1, "aliasing U+0800");
58 T(mbrtowc(&wc, "\xf0\x8f\xbf\xbd", 4, &st), -1, "aliasing U+FFFD");
60 T(mbrtowc(&wc, "\xed\xa0\x80", 3, &st), -1, "failed to catch surrogate");
61 T(mbrtowc(&wc, "\xef\xbf\xbe", 3, &st), 3, "failed to accept U+FFFE");
62 T(mbrtowc(&wc, "\xef\xbf\xbf", 3, &st), 3, "failed to accept U+FFFF");
63 T(mbrtowc(&wc, "\xf4\x8f\xbf\xbe", 4, &st), 4, "failed to accept U+10FFFE");
64 T(mbrtowc(&wc, "\xf4\x8f\xbf\xbf", 4, &st), 4, "failed to accept U+10FFFF");
66 T(mbrtowc(&wc, "\xc2\x80", 2, &st), 2, "wrong length");
67 TCHAR((mbrtowc(&wc, "\xc2\x80", 2, &st),wc), 0x80, "wrong char");
68 T(mbrtowc(&wc, "\xe0\xa0\x80", 3, &st), 3, "wrong length");
69 TCHAR((mbrtowc(&wc, "\xe0\xa0\x80", 3, &st),wc), 0x800, "wrong char");
70 T(mbrtowc(&wc, "\xf0\x90\x80\x80", 4, &st), 4, "wrong length");
71 TCHAR((mbrtowc(&wc, "\xf0\x90\x80\x80", 4, &st),wc), 0x10000, "wrong char");
74 T(mbrtowc(&wc, "\xc2", 1, &st2), -2, "failed to accept initial byte");
75 T(mbrtowc(&wc, "\x80", 1, &st2), 1, "failed to resume");
79 T(mbrtowc(&wc, "\xc2", 1, &st2), -2, "failed to accept initial byte");