• Home
  • Raw
  • Download

Lines Matching refs:textBuf

98     const std::vector<uint16_t> textBuf = utf8ToUtf16("This is an example text.");  in TEST_F()  local
109 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
112 << toString(textBuf, actual); in TEST_F()
120 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
123 << toString(textBuf, actual); in TEST_F()
134 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
137 << toString(textBuf, actual); in TEST_F()
150 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
153 << toString(textBuf, actual); in TEST_F()
166 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
169 << toString(textBuf, actual); in TEST_F()
183 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
186 << toString(textBuf, actual); in TEST_F()
200 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
203 << toString(textBuf, actual); in TEST_F()
219 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
222 << toString(textBuf, actual); in TEST_F()
240 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
243 << toString(textBuf, actual); in TEST_F()
263 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
266 << toString(textBuf, actual); in TEST_F()
295 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
298 << toString(textBuf, actual); in TEST_F()
305 const std::vector<uint16_t> textBuf = utf8ToUtf16("Hyphenation is hyphenation."); in TEST_F() local
319 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
322 << toString(textBuf, actual); in TEST_F()
331 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
334 << toString(textBuf, actual); in TEST_F()
345 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
348 << toString(textBuf, actual); in TEST_F()
359 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
362 << toString(textBuf, actual); in TEST_F()
374 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
377 << toString(textBuf, actual); in TEST_F()
390 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
393 << toString(textBuf, actual); in TEST_F()
406 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
409 << toString(textBuf, actual); in TEST_F()
423 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
426 << toString(textBuf, actual); in TEST_F()
442 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
445 << toString(textBuf, actual); in TEST_F()
462 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
465 << toString(textBuf, actual); in TEST_F()
484 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
487 << toString(textBuf, actual); in TEST_F()
507 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
510 << toString(textBuf, actual); in TEST_F()
533 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
536 << toString(textBuf, actual); in TEST_F()
570 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
573 << toString(textBuf, actual); in TEST_F()
580 const std::vector<uint16_t> textBuf = utf8ToUtf16("czerwono-niebieska"); in TEST_F() local
593 const auto actual = doLineBreak(textBuf, DO_HYPHEN, "pl", LINE_WIDTH); in TEST_F()
596 << toString(textBuf, actual); in TEST_F()
604 const auto actual = doLineBreak(textBuf, DO_HYPHEN, "pl", LINE_WIDTH); in TEST_F()
607 << toString(textBuf, actual); in TEST_F()
618 const auto actual = doLineBreak(textBuf, DO_HYPHEN, "pl", LINE_WIDTH); in TEST_F()
621 << toString(textBuf, actual); in TEST_F()
633 const auto textBuf = utf8ToUtf16(""); in TEST_F() local
635 const auto actual = doLineBreak(textBuf, DO_HYPHEN, LINE_WIDTH); in TEST_F()
638 << toString(textBuf, actual); in TEST_F()
641 const auto textBuf = utf8ToUtf16("A"); in TEST_F() local
645 const auto actual = doLineBreak(textBuf, DO_HYPHEN, LINE_WIDTH); in TEST_F()
648 << toString(textBuf, actual); in TEST_F()
651 const auto textBuf = utf8ToUtf16("AB"); in TEST_F() local
656 const auto actual = doLineBreak(textBuf, DO_HYPHEN, LINE_WIDTH); in TEST_F()
659 << toString(textBuf, actual); in TEST_F()
671 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() local
677 builder.addCustomRun<ConstantRun>(Range(0, textBuf.size()), "en-US", CHAR_WIDTH, ASCENT, in TEST_F()
680 builder.build(textBuf, false /* compute hyphenation */, in TEST_F()
685 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
688 << toString(textBuf, actual); in TEST_F()
692 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() local
697 builder.addCustomRun<ConstantRun>(Range(0, textBuf.size()), "en-US", CHAR_WIDTH, ASCENT, in TEST_F()
700 builder.build(textBuf, false /* compute hyphenation */, in TEST_F()
705 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
708 << toString(textBuf, actual); in TEST_F()
720 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() local
728 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "en-US", CHAR_WIDTH, ASCENT, in TEST_F()
731 builder.build(textBuf, false /* compute hyphenation */, in TEST_F()
737 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
740 << toString(textBuf, actual); in TEST_F()
749 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH, ASCENT, in TEST_F()
752 builder.build(textBuf, false /* compute hyphenation */, in TEST_F()
758 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
761 << toString(textBuf, actual); in TEST_F()
772 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F() local
777 const auto actual = doLineBreak(textBuf, DO_HYPHEN, LINE_WIDTH); in TEST_F()
780 << toString(textBuf, actual); in TEST_F()
784 const auto textBuf = utf8ToUtf16("This is an email: a@example.com"); in TEST_F() local
789 const auto actual = doLineBreak(textBuf, DO_HYPHEN, LINE_WIDTH); in TEST_F()
792 << toString(textBuf, actual); in TEST_F()
805 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F() local
813 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH, ASCENT, in TEST_F()
816 builder.build(textBuf, false /* compute hyphenation */, in TEST_F()
822 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
825 << toString(textBuf, actual); in TEST_F()
828 const auto textBuf = utf8ToUtf16("This is an email: a@example.com"); in TEST_F() local
836 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH, ASCENT, in TEST_F()
839 builder.build(textBuf, false /* compute hyphenation */, in TEST_F()
845 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
848 << toString(textBuf, actual); in TEST_F()
861 const auto textBuf = utf8ToUtf16("a \tb"); in TEST_F() local
867 builder.addCustomRun<ConstantRun>(Range(0, textBuf.size()), "en-US", CHAR_WIDTH, ASCENT, in TEST_F()
870 builder.build(textBuf, false /* compute hyphenation */, in TEST_F()
876 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
879 << toString(textBuf, actual); in TEST_F()
885 const std::vector<uint16_t> textBuf = utf8ToUtf16("The \u3042\u3044\u3046 is Japanese."); in TEST_F() local
896 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
899 << toString(textBuf, actual); in TEST_F()
908 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
911 << toString(textBuf, actual); in TEST_F()
921 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
924 << toString(textBuf, actual); in TEST_F()
935 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
938 << toString(textBuf, actual); in TEST_F()
950 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
953 << toString(textBuf, actual); in TEST_F()
967 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
970 << toString(textBuf, actual); in TEST_F()
987 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
990 << toString(textBuf, actual); in TEST_F()
1014 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
1017 << toString(textBuf, actual); in TEST_F()
1028 const auto textBuf = utf8ToUtf16("This is an example \u2639 text."); in TEST_F() local
1035 builder.addCustomRun<ConstantRun>(Range(20, textBuf.size()), "en-US", CHAR_WIDTH, ASCENT, in TEST_F()
1039 builder.build(textBuf, false /* compute hyphenation */, in TEST_F()
1043 return breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
1060 << toString(textBuf, actual); in TEST_F()
1077 << toString(textBuf, actual); in TEST_F()
1112 << toString(textBuf, actual); in TEST_F()
1123 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() local
1130 builder.addCustomRun<ConstantRun>(Range(11, textBuf.size()), "en-US", CHAR_WIDTH, ASCENT, in TEST_F()
1134 builder.build(textBuf, false /* compute hyphenation */, in TEST_F()
1138 return breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
1154 << toString(textBuf, actual); in TEST_F()
1170 << toString(textBuf, actual); in TEST_F()
1199 << toString(textBuf, actual); in TEST_F()
1211 const auto textBuf = utf8ToUtf16("\u672C\u65E5\u306F\u6674\u5929\u306A\u308A"); in TEST_F() local
1218 builder.addCustomRun<ConstantRun>(Range(5, textBuf.size()), "ja-JP", CHAR_WIDTH, ASCENT, in TEST_F()
1222 builder.build(textBuf, false /* compute hyphenation */, in TEST_F()
1226 return breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
1241 << toString(textBuf, actual); in TEST_F()
1257 << toString(textBuf, actual); in TEST_F()
1273 << toString(textBuf, actual); in TEST_F()
1287 << toString(textBuf, actual); in TEST_F()
1302 << toString(textBuf, actual); in TEST_F()
1317 << toString(textBuf, actual); in TEST_F()
1332 << toString(textBuf, actual); in TEST_F()
1350 << toString(textBuf, actual); in TEST_F()
1362 const auto textBuf = utf8ToUtf16("This (is an) example text."); in TEST_F() local
1369 builder.addCustomRun<ConstantRun>(Range(11, textBuf.size()), "en-US", CHAR_WIDTH, ASCENT, in TEST_F()
1373 builder.build(textBuf, false /* compute hyphenation */, in TEST_F()
1377 return breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
1392 << toString(textBuf, actual); in TEST_F()
1406 << toString(textBuf, actual); in TEST_F()
1420 << toString(textBuf, actual); in TEST_F()
1435 << toString(textBuf, actual); in TEST_F()
1451 << toString(textBuf, actual); in TEST_F()
1469 << toString(textBuf, actual); in TEST_F()
1488 << toString(textBuf, actual); in TEST_F()
1509 << toString(textBuf, actual); in TEST_F()
1540 << toString(textBuf, actual); in TEST_F()
1546 const std::vector<uint16_t> textBuf = utf8ToUtf16("example \u2066example"); in TEST_F() local
1557 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F()
1560 << toString(textBuf, actual); in TEST_F()