Lines Matching refs:buf

34     uint16_t buf[] = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};  in TEST()  local
36 breaker.setText(buf, NELEM(buf)); in TEST()
44 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
52 uint16_t buf[] = {'h', 'e', 'l', 0x00AD, 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'}; in TEST() local
56 breaker.setText(buf, NELEM(buf)); in TEST()
63 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
71 uint16_t buf[] = {'s', 'u', 'g', 'a', 'r', '-', 'f', 'r', 'e', 'e'}; in TEST() local
75 breaker.setText(buf, NELEM(buf)); in TEST()
77 EXPECT_EQ((ssize_t)NELEM(buf), in TEST()
80 EXPECT_EQ((ssize_t)NELEM(buf), breaker.wordEnd()); in TEST()
85 uint16_t buf[] = {'U', 'S', 0x00A2, ' ', 'J', 'P', 0x00A5}; // US¢ JP¥ in TEST() local
89 breaker.setText(buf, NELEM(buf)); in TEST()
97 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end of string in TEST()
99 EXPECT_EQ((ssize_t)NELEM(buf), breaker.wordEnd()); in TEST()
103 uint16_t buf[] = {0x1004, 0x103A, 0x1039, 0x1000, 0x102C}; // NGA, ASAT, VIRAMA, KA, UU in TEST() local
107 breaker.setText(buf, NELEM(buf)); in TEST()
111 EXPECT_EQ((ssize_t)NELEM(buf), in TEST()
114 EXPECT_EQ((ssize_t)NELEM(buf), breaker.wordEnd()); in TEST()
118 uint16_t buf[] = { in TEST() local
131 breaker.setText(buf, NELEM(buf)); in TEST()
143 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
149 uint16_t buf[] = { in TEST() local
157 breaker.setText(buf, NELEM(buf)); in TEST()
163 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
170 uint16_t buf[] = { in TEST() local
183 breaker.setText(buf, NELEM(buf)); in TEST()
225 uint16_t buf[BUF_SIZE]; in TEST() local
227 ParseUnicode(buf, BUF_SIZE, flags.c_str(), &size, nullptr); in TEST()
232 breaker.setText(buf, size); in TEST()
252 uint16_t buf[BUF_SIZE]; in TEST() local
254 ParseUnicode(buf, BUF_SIZE, flagSequence.c_str(), &size, nullptr); in TEST()
259 breaker.setText(buf, size); in TEST()
271 uint16_t buf[] = {0x00A1, 0x00A1, 'h', 'e', 'l', 'l', 'o', ',', in TEST() local
276 breaker.setText(buf, NELEM(buf)); in TEST()
283 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
290 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', in TEST() local
295 breaker.setText(buf, NELEM(buf)); in TEST()
304 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
311 uint16_t buf[] = {'m', 'a', 'i', 'l', 't', 'o', ':', 'f', 'o', 'o', '@', 'e', in TEST() local
316 breaker.setText(buf, NELEM(buf)); in TEST()
328 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
337 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', in TEST() local
342 breaker.setText(buf, NELEM(buf)); in TEST()
351 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
358 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', in TEST() local
363 breaker.setText(buf, NELEM(buf)); in TEST()
372 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
379 uint16_t buf[] = {'a', ' ', '@', ' ', 'b'}; in TEST() local
383 breaker.setText(buf, NELEM(buf)); in TEST()
393 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
400 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'e', 'x', 'a', in TEST() local
405 breaker.setText(buf, NELEM(buf)); in TEST()
420 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
428 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '.', 'b', '/', in TEST() local
434 breaker.setText(buf, NELEM(buf)); in TEST()
485 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
491 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '-', '/', 'b'}; in TEST() local
495 breaker.setText(buf, NELEM(buf)); in TEST()
504 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
509 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '/'}; in TEST() local
513 breaker.setText(buf, NELEM(buf)); in TEST()
522 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
527 uint16_t buf[] = {'/', 'a', '@', 'b'}; in TEST() local
531 breaker.setText(buf, NELEM(buf)); in TEST()
533 EXPECT_EQ((ssize_t)NELEM(buf), in TEST()
539 std::vector<uint16_t> buf = utf8ToUtf16("Hello http://abc/d.html World"); in TEST() local
543 breaker.setText(buf.data(), buf.size()); in TEST()
594 std::vector<uint16_t> buf = {'a', CHAR_SPACE, sp, 'b'}; in TEST() local
596 breaker.setText(buf.data(), buf.size()); in TEST()