Lines Matching refs:textBuf
83 const std::vector<uint16_t> textBuf = utf8ToUtf16("This is an example text."); in TEST_F() local
94 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
97 << toString(textBuf, actual); in TEST_F()
105 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
108 << toString(textBuf, actual); in TEST_F()
119 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
122 << toString(textBuf, actual); in TEST_F()
135 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
138 << toString(textBuf, actual); in TEST_F()
151 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
154 << toString(textBuf, actual); in TEST_F()
168 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
171 << toString(textBuf, actual); in TEST_F()
185 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
188 << toString(textBuf, actual); in TEST_F()
204 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
207 << toString(textBuf, actual); in TEST_F()
225 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
228 << toString(textBuf, actual); in TEST_F()
248 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
251 << toString(textBuf, actual); in TEST_F()
280 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
283 << toString(textBuf, actual); in TEST_F()
291 const std::vector<uint16_t> textBuf = utf8ToUtf16("Hyphenation is hyphenation."); in TEST_F() local
304 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
307 << toString(textBuf, actual); in TEST_F()
315 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
318 << toString(textBuf, actual); in TEST_F()
329 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
332 << toString(textBuf, actual); in TEST_F()
343 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
346 << toString(textBuf, actual); in TEST_F()
358 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
361 << toString(textBuf, actual); in TEST_F()
374 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
377 << toString(textBuf, actual); in TEST_F()
390 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
393 << toString(textBuf, actual); in TEST_F()
407 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
410 << toString(textBuf, actual); in TEST_F()
426 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
429 << toString(textBuf, actual); in TEST_F()
446 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
449 << toString(textBuf, actual); in TEST_F()
468 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
471 << toString(textBuf, actual); in TEST_F()
491 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
494 << toString(textBuf, actual); in TEST_F()
517 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
520 << toString(textBuf, actual); in TEST_F()
554 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
557 << toString(textBuf, actual); in TEST_F()
565 const std::vector<uint16_t> textBuf = utf8ToUtf16("czerwono-niebieska"); in TEST_F() local
578 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, "pl", LINE_WIDTH); in TEST_F()
581 << toString(textBuf, actual); in TEST_F()
589 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, "pl", LINE_WIDTH); in TEST_F()
592 << toString(textBuf, actual); in TEST_F()
603 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, "pl", LINE_WIDTH); in TEST_F()
606 << toString(textBuf, actual); in TEST_F()
619 const auto textBuf = utf8ToUtf16(""); in TEST_F() local
621 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
624 << toString(textBuf, actual); in TEST_F()
627 const auto textBuf = utf8ToUtf16("A"); in TEST_F() local
631 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
634 << toString(textBuf, actual); in TEST_F()
637 const auto textBuf = utf8ToUtf16("AB"); in TEST_F() local
642 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
645 << toString(textBuf, actual); in TEST_F()
657 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() local
661 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
664 << toString(textBuf, actual); in TEST_F()
668 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() local
672 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
675 << toString(textBuf, actual); in TEST_F()
687 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() local
695 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "en-US", CHAR_WIDTH); in TEST_F()
697 textBuf, false /* compute hyphenation */, false /* compute full layout */); in TEST_F()
702 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
705 << toString(textBuf, actual); in TEST_F()
714 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH); in TEST_F()
716 textBuf, false /* compute hyphenation */, false /* compute full layout */); in TEST_F()
721 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
724 << toString(textBuf, actual); in TEST_F()
736 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F() local
741 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
744 << toString(textBuf, actual); in TEST_F()
748 const auto textBuf = utf8ToUtf16("This is an email: a@example.com"); in TEST_F() local
753 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
756 << toString(textBuf, actual); in TEST_F()
769 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F() local
777 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH); in TEST_F()
779 textBuf, false /* compute hyphenation */, false /* compute full layout */); in TEST_F()
784 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
787 << toString(textBuf, actual); in TEST_F()
790 const auto textBuf = utf8ToUtf16("This is an email: a@example.com"); in TEST_F() local
798 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH); in TEST_F()
800 textBuf, false /* compute hyphenation */, false /* compute full layout */); in TEST_F()
805 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
808 << toString(textBuf, actual); in TEST_F()
821 const auto textBuf = utf8ToUtf16("a \tb"); in TEST_F() local
827 builder.addCustomRun<ConstantRun>(Range(0, textBuf.size()), "en-US", CHAR_WIDTH); in TEST_F()
829 textBuf, false /* compute hyphenation */, false /* compute full layout */); in TEST_F()
834 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
837 << toString(textBuf, actual); in TEST_F()