Lines Matching refs:buf

36     uint16_t buf[] = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};  in TEST()  local
38 breaker.setText(buf, NELEM(buf)); in TEST()
45 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
53 uint16_t buf[] = {'h', 'e', 'l', 0x00AD, 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'}; in TEST() local
55 breaker.setText(buf, NELEM(buf)); in TEST()
62 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
70 uint16_t buf[] = {'s', 'u', 'g', 'a', 'r', '-', 'f', 'r', 'e', 'e'}; in TEST() local
72 breaker.setText(buf, NELEM(buf)); in TEST()
74 EXPECT_EQ((ssize_t)NELEM(buf), breaker.followingWithLocale(Locale("en-US"), 0)); in TEST()
76 EXPECT_EQ((ssize_t)NELEM(buf), breaker.wordEnd()); in TEST()
81 uint16_t buf[] = {'U', 'S', 0x00A2, ' ', 'J', 'P', 0x00A5}; // US¢ JP¥ in TEST() local
83 breaker.setText(buf, NELEM(buf)); in TEST()
90 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end of string in TEST()
92 EXPECT_EQ((ssize_t)NELEM(buf), breaker.wordEnd()); in TEST()
96 uint16_t buf[] = {0x1004, 0x103A, 0x1039, 0x1000, 0x102C}; // NGA, ASAT, VIRAMA, KA, UU in TEST() local
98 breaker.setText(buf, NELEM(buf)); in TEST()
102 EXPECT_EQ((ssize_t)NELEM(buf), breaker.followingWithLocale(Locale("en-US"), 0)); in TEST()
104 EXPECT_EQ((ssize_t)NELEM(buf), breaker.wordEnd()); in TEST()
108 uint16_t buf[] = { in TEST() local
119 breaker.setText(buf, NELEM(buf)); in TEST()
131 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
137 uint16_t buf[] = { in TEST() local
143 breaker.setText(buf, NELEM(buf)); in TEST()
149 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
156 uint16_t buf[] = { in TEST() local
167 breaker.setText(buf, NELEM(buf)); in TEST()
209 uint16_t buf[BUF_SIZE]; in TEST() local
211 ParseUnicode(buf, BUF_SIZE, flags.c_str(), &size, nullptr); in TEST()
214 breaker.setText(buf, size); in TEST()
234 uint16_t buf[BUF_SIZE]; in TEST() local
236 ParseUnicode(buf, BUF_SIZE, flagSequence.c_str(), &size, nullptr); in TEST()
239 breaker.setText(buf, size); in TEST()
251 uint16_t buf[] = {0x00A1, 0x00A1, 'h', 'e', 'l', 'l', 'o', ',', in TEST() local
254 breaker.setText(buf, NELEM(buf)); in TEST()
260 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
267 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', in TEST() local
270 breaker.setText(buf, NELEM(buf)); in TEST()
278 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
285 uint16_t buf[] = {'m', 'a', 'i', 'l', 't', 'o', ':', 'f', 'o', 'o', '@', 'e', in TEST() local
288 breaker.setText(buf, NELEM(buf)); in TEST()
299 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
308 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', in TEST() local
311 breaker.setText(buf, NELEM(buf)); in TEST()
319 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
326 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', in TEST() local
329 breaker.setText(buf, NELEM(buf)); in TEST()
337 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
344 uint16_t buf[] = {'a', ' ', '@', ' ', 'b'}; in TEST() local
346 breaker.setText(buf, NELEM(buf)); in TEST()
355 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
362 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'e', 'x', 'a', in TEST() local
365 breaker.setText(buf, NELEM(buf)); in TEST()
379 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
387 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '.', 'b', '/', in TEST() local
391 breaker.setText(buf, NELEM(buf)); in TEST()
441 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
447 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '-', '/', 'b'}; in TEST() local
449 breaker.setText(buf, NELEM(buf)); in TEST()
457 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
462 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '/'}; in TEST() local
464 breaker.setText(buf, NELEM(buf)); in TEST()
472 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end in TEST()
477 uint16_t buf[] = {'/', 'a', '@', 'b'}; in TEST() local
479 breaker.setText(buf, NELEM(buf)); in TEST()
481 EXPECT_EQ((ssize_t)NELEM(buf), breaker.followingWithLocale(Locale("en-US"), 0)); // end in TEST()
486 std::vector<uint16_t> buf = utf8ToUtf16("Hello http://abc/d.html World"); in TEST() local
488 breaker.setText(buf.data(), buf.size()); in TEST()
534 std::vector<uint16_t> buf = {'a', CHAR_SPACE, sp, 'b'}; in TEST() local
536 breaker.setText(buf.data(), buf.size()); in TEST()