Lines Matching refs:from
40 char const *from = utf8_name; in test_codecvt_in_n_m() local
41 char const *end = from; in test_codecvt_in_n_m()
43 char const *from_next = from; in test_codecvt_in_n_m()
46 if(from == end) { in test_codecvt_in_n_m()
47 end = from + n; in test_codecvt_in_n_m()
59 std::codecvt_base::result r = cvt.in(mb,from,end,from_next,to,to_end,to_next); in test_codecvt_in_n_m()
62 int count = cvt.length(mb2,from,end,to_end - to); in test_codecvt_in_n_m()
65 if(count != from_next - from) { in test_codecvt_in_n_m()
66 std::cout << count << " " << from_next - from << std::endl; in test_codecvt_in_n_m()
68 TEST(count == from_next - from); in test_codecvt_in_n_m()
87 from = from_next; in test_codecvt_in_n_m()
90 TEST(from == real_end); in test_codecvt_in_n_m()
112 wchar_t const *from = from_next; in test_codecvt_out_n_m() local
113 wchar_t const *from_end = from + m; in test_codecvt_out_n_m()
120 std::codecvt_base::result r = cvt.out(mb,from,from_end,from_next,to,to_end,to_next); in test_codecvt_out_n_m()
137 from = from_next; in test_codecvt_out_n_m()
187 char const *from=err_utf; in test_codecvt_err() local
188 char const *from_end = from + strlen(from); in test_codecvt_err()
189 char const *from_next = from; in test_codecvt_err()
191 TEST(cvt.in(mb,from,from_end,from_next,to,to_end,to_next)==cvt_type::error); in test_codecvt_err()
192 TEST(from_next == from+1); in test_codecvt_err()
199 char const *from=err_utf; in test_codecvt_err() local
200 char const *from_end = from + strlen(from); in test_codecvt_err()
201 char const *from_next = from; in test_codecvt_err()
202 TEST(cvt.in(mb,from,from_end,from_next,to,to_end,to_next)==cvt_type::error); in test_codecvt_err()
203 TEST(from_next == from); in test_codecvt_err()
219 wchar_t const *from=err_utf; in test_codecvt_err() local
220 wchar_t const *from_end = from + wcslen(from); in test_codecvt_err()
221 wchar_t const *from_next = from; in test_codecvt_err()
222 TEST(cvt.out(mb,from,from_end,from_next,to,to_end,to_next)==cvt_type::error); in test_codecvt_err()
223 TEST(from_next == from+1); in test_codecvt_err()
230 wchar_t const *from=err_utf; in test_codecvt_err() local
231 wchar_t const *from_end = from + wcslen(from); in test_codecvt_err()
232 wchar_t const *from_next = from; in test_codecvt_err()
234 TEST(cvt.out(mb,from,from_end,from_next,to,to_end,to_next)==cvt_type::error); in test_codecvt_err()
235 TEST(from_next == from); in test_codecvt_err()
249 char const *from = "a"; in test_char_char() local
250 char const *from_end = from+1; in test_char_char()
251 char const *from_next = from; in test_char_char()
257 TEST(cvt.in(mb,from,from_end,from_next,to,to_end,to_next)==cvt_type::noconv); in test_char_char()
258 TEST(from_next == from); in test_char_char()
260 TEST(cvt.out(mb,from,from_end,from_next,to,to_end,to_next)==cvt_type::noconv); in test_char_char()
261 TEST(from_next == from); in test_char_char()