Lines Matching refs:textBuf

92     const std::vector<uint16_t> textBuf = utf8ToUtf16("This is an example text.");  in TEST_F()  local
104 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
107 << toString(textBuf, actual); in TEST_F()
108 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
111 << toString(textBuf, actual); in TEST_F()
112 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
115 << toString(textBuf, actual); in TEST_F()
116 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
119 << toString(textBuf, actual); in TEST_F()
126 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
129 << toString(textBuf, actual); in TEST_F()
130 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
133 << toString(textBuf, actual); in TEST_F()
134 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
137 << toString(textBuf, actual); in TEST_F()
138 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
141 << toString(textBuf, actual); in TEST_F()
152 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
155 << toString(textBuf, actual); in TEST_F()
156 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
159 << toString(textBuf, actual); in TEST_F()
167 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
170 << toString(textBuf, actual); in TEST_F()
177 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
180 << toString(textBuf, actual); in TEST_F()
191 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
194 << toString(textBuf, actual); in TEST_F()
201 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
204 << toString(textBuf, actual); in TEST_F()
211 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
214 << toString(textBuf, actual); in TEST_F()
221 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
224 << toString(textBuf, actual); in TEST_F()
235 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
238 << toString(textBuf, actual); in TEST_F()
245 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
248 << toString(textBuf, actual); in TEST_F()
255 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
258 << toString(textBuf, actual); in TEST_F()
265 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
268 << toString(textBuf, actual); in TEST_F()
279 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
282 << toString(textBuf, actual); in TEST_F()
289 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
292 << toString(textBuf, actual); in TEST_F()
299 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
302 << toString(textBuf, actual); in TEST_F()
309 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
312 << toString(textBuf, actual); in TEST_F()
323 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
326 << toString(textBuf, actual); in TEST_F()
327 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
330 << toString(textBuf, actual); in TEST_F()
331 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
334 << toString(textBuf, actual); in TEST_F()
335 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
338 << toString(textBuf, actual); in TEST_F()
350 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
353 << toString(textBuf, actual); in TEST_F()
354 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
357 << toString(textBuf, actual); in TEST_F()
358 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
361 << toString(textBuf, actual); in TEST_F()
369 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
372 << toString(textBuf, actual); in TEST_F()
385 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
388 << toString(textBuf, actual); in TEST_F()
396 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
399 << toString(textBuf, actual); in TEST_F()
408 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
411 << toString(textBuf, actual); in TEST_F()
419 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
422 << toString(textBuf, actual); in TEST_F()
435 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
438 << toString(textBuf, actual); in TEST_F()
439 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
442 << toString(textBuf, actual); in TEST_F()
451 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
454 << toString(textBuf, actual); in TEST_F()
455 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
458 << toString(textBuf, actual); in TEST_F()
471 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
474 << toString(textBuf, actual); in TEST_F()
475 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
478 << toString(textBuf, actual); in TEST_F()
487 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
490 << toString(textBuf, actual); in TEST_F()
491 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
494 << toString(textBuf, actual); in TEST_F()
509 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
512 << toString(textBuf, actual); in TEST_F()
513 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
516 << toString(textBuf, actual); in TEST_F()
526 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
529 << toString(textBuf, actual); in TEST_F()
530 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
533 << toString(textBuf, actual); in TEST_F()
548 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
551 << toString(textBuf, actual); in TEST_F()
552 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
555 << toString(textBuf, actual); in TEST_F()
565 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
568 << toString(textBuf, actual); in TEST_F()
569 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
572 << toString(textBuf, actual); in TEST_F()
589 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
592 << toString(textBuf, actual); in TEST_F()
606 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
609 << toString(textBuf, actual); in TEST_F()
622 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
625 << toString(textBuf, actual); in TEST_F()
639 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
642 << toString(textBuf, actual); in TEST_F()
662 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
665 << toString(textBuf, actual); in TEST_F()
682 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
685 << toString(textBuf, actual); in TEST_F()
700 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
703 << toString(textBuf, actual); in TEST_F()
719 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
722 << toString(textBuf, actual); in TEST_F()
743 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
746 << toString(textBuf, actual); in TEST_F()
747 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
750 << toString(textBuf, actual); in TEST_F()
768 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
771 << toString(textBuf, actual); in TEST_F()
772 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
775 << toString(textBuf, actual); in TEST_F()
804 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
807 << toString(textBuf, actual); in TEST_F()
808 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
811 << toString(textBuf, actual); in TEST_F()
812 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
815 << toString(textBuf, actual); in TEST_F()
816 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
819 << toString(textBuf, actual); in TEST_F()
828 const std::vector<uint16_t> textBuf = utf8ToUtf16("czerwono-niebieska"); in TEST_F() local
841 const auto actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, "pl", in TEST_F()
845 << toString(textBuf, actual); in TEST_F()
853 const auto actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, "pl", in TEST_F()
857 << toString(textBuf, actual); in TEST_F()
868 const auto actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, "pl", in TEST_F()
872 << toString(textBuf, actual); in TEST_F()
886 const auto textBuf = utf8ToUtf16(""); in TEST_F() local
889 doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
892 << toString(textBuf, actual); in TEST_F()
895 const auto textBuf = utf8ToUtf16("A"); in TEST_F() local
900 doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
903 << toString(textBuf, actual); in TEST_F()
906 const auto textBuf = utf8ToUtf16("AB"); in TEST_F() local
912 doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
915 << toString(textBuf, actual); in TEST_F()
928 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() local
933 doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
936 << toString(textBuf, actual); in TEST_F()
940 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() local
945 doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
948 << toString(textBuf, actual); in TEST_F()
961 const auto textBuf = utf8ToUtf16("This is an example text."); in TEST_F() local
969 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "en-US", CHAR_WIDTH); in TEST_F()
971 textBuf, true /* compute hyphenation */, false /* compute full layout */); in TEST_F()
974 doLineBreak(textBuf, *measuredText, HIGH_QUALITY, NORMAL_HYPHENATION, LINE_WIDTH); in TEST_F()
977 << toString(textBuf, actual); in TEST_F()
986 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH); in TEST_F()
988 textBuf, true /* compute hyphenation */, false /* compute full layout */); in TEST_F()
990 doLineBreak(textBuf, *measuredText, HIGH_QUALITY, NORMAL_HYPHENATION, LINE_WIDTH); in TEST_F()
993 << toString(textBuf, actual); in TEST_F()
1008 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F() local
1016 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1019 << toString(textBuf, actual); in TEST_F()
1020 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1023 << toString(textBuf, actual); in TEST_F()
1030 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1033 << toString(textBuf, actual); in TEST_F()
1034 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1037 << toString(textBuf, actual); in TEST_F()
1041 const auto textBuf = utf8ToUtf16("This is an email: a@example.com"); in TEST_F() local
1049 auto actual = doLineBreak(textBuf, HIGH_QUALITY, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1052 << toString(textBuf, actual); in TEST_F()
1053 actual = doLineBreak(textBuf, HIGH_QUALITY, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1056 << toString(textBuf, actual); in TEST_F()
1057 actual = doLineBreak(textBuf, BALANCED, NO_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1060 << toString(textBuf, actual); in TEST_F()
1061 actual = doLineBreak(textBuf, BALANCED, NORMAL_HYPHENATION, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
1064 << toString(textBuf, actual); in TEST_F()
1080 const auto textBuf = utf8ToUtf16("This is an url: http://a.b"); in TEST_F() local
1083 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH); in TEST_F()
1085 textBuf, true /* compute hyphenation */, false /* compute full layout */); in TEST_F()
1095 auto actual = doLineBreak(textBuf, *measured, HIGH_QUALITY, NO_HYPHENATION, LINE_WIDTH); in TEST_F()
1098 << toString(textBuf, actual); in TEST_F()
1099 actual = doLineBreak(textBuf, *measured, HIGH_QUALITY, NORMAL_HYPHENATION, LINE_WIDTH); in TEST_F()
1102 << toString(textBuf, actual); in TEST_F()
1111 actual = doLineBreak(textBuf, *measured, BALANCED, NO_HYPHENATION, LINE_WIDTH); in TEST_F()
1114 << toString(textBuf, actual); in TEST_F()
1115 actual = doLineBreak(textBuf, *measured, BALANCED, NORMAL_HYPHENATION, LINE_WIDTH); in TEST_F()
1118 << toString(textBuf, actual); in TEST_F()
1121 const auto textBuf = utf8ToUtf16("This is an email: a@example.com"); in TEST_F() local
1124 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH); in TEST_F()
1126 textBuf, true /* compute hyphenation */, false /* compute full layout */); in TEST_F()
1135 auto actual = doLineBreak(textBuf, *measured, HIGH_QUALITY, NO_HYPHENATION, LINE_WIDTH); in TEST_F()
1138 << toString(textBuf, actual); in TEST_F()
1139 actual = doLineBreak(textBuf, *measured, HIGH_QUALITY, NORMAL_HYPHENATION, LINE_WIDTH); in TEST_F()
1142 << toString(textBuf, actual); in TEST_F()
1143 actual = doLineBreak(textBuf, *measured, BALANCED, NO_HYPHENATION, LINE_WIDTH); in TEST_F()
1146 << toString(textBuf, actual); in TEST_F()
1147 actual = doLineBreak(textBuf, *measured, BALANCED, NORMAL_HYPHENATION, LINE_WIDTH); in TEST_F()
1150 << toString(textBuf, actual); in TEST_F()