Lines Matching refs:CHAR_WIDTH

81     constexpr float CHAR_WIDTH = 10.0;  in TEST_F()  local
89 constexpr float LINE_WIDTH = 1000 * CHAR_WIDTH; in TEST_F()
91 {"This is an example text.", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
94 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
100 constexpr float LINE_WIDTH = 24 * CHAR_WIDTH; in TEST_F()
102 {"This is an example text.", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
105 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
111 constexpr float LINE_WIDTH = 23 * CHAR_WIDTH; in TEST_F()
114 { "This is an example ", 18 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
115 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
119 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
125 constexpr float LINE_WIDTH = 8 * CHAR_WIDTH; in TEST_F()
128 { "This is ", 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
129 { "an " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
130 { "example ", 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
131 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
135 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
141 constexpr float LINE_WIDTH = 7 * CHAR_WIDTH; in TEST_F()
144 { "This is ", 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
145 { "an " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
146 { "example ", 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
147 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
151 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
157 constexpr float LINE_WIDTH = 6 * CHAR_WIDTH; in TEST_F()
160 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
161 { "is an ", 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
162 { "exampl", 6 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
163 { "e " , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
164 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
168 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
174 constexpr float LINE_WIDTH = 5 * CHAR_WIDTH; in TEST_F()
177 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
178 { "is an ", 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
179 { "examp" , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
180 { "le " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
181 { "text." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
185 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
191 constexpr float LINE_WIDTH = 4 * CHAR_WIDTH; in TEST_F()
194 { "This " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
195 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
196 { "an " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
197 { "exam" , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
198 { "ple " , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
199 { "text" , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
200 { "." , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
204 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
210 constexpr float LINE_WIDTH = 3 * CHAR_WIDTH; in TEST_F()
213 { "Thi" , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
214 { "s " , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
215 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
216 { "an " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
217 { "exa" , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
218 { "mpl" , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
219 { "e " , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
220 { "tex" , 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
221 { "t." , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
225 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
231 constexpr float LINE_WIDTH = 2 * CHAR_WIDTH; in TEST_F()
234 { "Th" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
235 { "is ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
236 { "is ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
237 { "an ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
238 { "ex" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
239 { "am" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
240 { "pl" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
241 { "e " , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
242 { "te" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
243 { "xt" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
244 { "." , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
248 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
254 constexpr float LINE_WIDTH = 1 * CHAR_WIDTH; in TEST_F()
257 { "T" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
258 { "h" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
259 { "i" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
260 { "s ", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
261 { "i" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
262 { "s ", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
263 { "a" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
264 { "n ", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
265 { "e" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
266 { "x" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
267 { "a" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
268 { "m" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
269 { "p" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
270 { "l" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
271 { "e ", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
272 { "t" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
273 { "e" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
274 { "x" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
275 { "t" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
276 { "." , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
280 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
288 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
299 constexpr float LINE_WIDTH = 1000 * CHAR_WIDTH; in TEST_F()
301 {"Hyphenation is hyphenation.", 27 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
304 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
310 constexpr float LINE_WIDTH = 27 * CHAR_WIDTH; in TEST_F()
312 {"Hyphenation is hyphenation.", 27 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
315 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
321 constexpr float LINE_WIDTH = 26 * CHAR_WIDTH; in TEST_F()
324 { "Hyphenation is " , 14 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
325 { "hyphenation." , 12 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
329 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
335 constexpr float LINE_WIDTH = 17 * CHAR_WIDTH; in TEST_F()
338 { "Hyphenation is " , 14 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
339 { "hyphenation." , 12 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
343 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
349 constexpr float LINE_WIDTH = 12 * CHAR_WIDTH; in TEST_F()
352 { "Hyphenation " , 11 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
353 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
354 { "hyphenation." , 12 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
358 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
364 constexpr float LINE_WIDTH = 10 * CHAR_WIDTH; in TEST_F()
367 { "Hyphena-", 8 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
368 { "tion is ", 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
369 { "hyphena-", 8 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
370 { "tion." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
374 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
380 constexpr float LINE_WIDTH = 8 * CHAR_WIDTH; in TEST_F()
383 { "Hyphena-", 8 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
384 { "tion is ", 7 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
385 { "hyphena-", 8 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
386 { "tion." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
390 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
396 constexpr float LINE_WIDTH = 7 * CHAR_WIDTH; in TEST_F()
399 { "Hyphen-", 7 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
400 { "ation " , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
401 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
402 { "hyphen-", 7 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
403 { "ation." , 6 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
407 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
413 constexpr float LINE_WIDTH = 6 * CHAR_WIDTH; in TEST_F()
416 { "Hy-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
417 { "phena-", 6 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
418 { "tion " , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
419 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
420 { "hy-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
421 { "phena-", 6 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
422 { "tion." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
426 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
432 constexpr float LINE_WIDTH = 5 * CHAR_WIDTH; in TEST_F()
435 { "Hy-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
436 { "phen-" , 5 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
437 { "ation ", 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
438 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
439 { "hy-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
440 { "phen-" , 5 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
441 { "a-" , 2 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
442 { "tion." , 5 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
446 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
452 constexpr float LINE_WIDTH = 4 * CHAR_WIDTH; in TEST_F()
455 { "Hy-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
456 { "phen" , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
457 { "a-" , 2 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
458 { "tion ", 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
459 { "is " , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
460 { "hy-" , 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
461 { "phen" , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
462 { "a-" , 2 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
463 { "tion" , 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
464 { "." , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
468 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
474 constexpr float LINE_WIDTH = 3 * CHAR_WIDTH; in TEST_F()
477 { "Hy-", 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
478 { "phe", 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
479 { "na-", 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
480 { "tio", 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
481 { "n " , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
482 { "is ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
483 { "hy-", 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
484 { "phe", 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
485 { "na-", 3 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
486 { "tio", 3 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
487 { "n." , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
491 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
497 constexpr float LINE_WIDTH = 2 * CHAR_WIDTH; in TEST_F()
500 { "Hy" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
501 { "ph" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
502 { "en" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
503 { "a-" , 2 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
504 { "ti" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
505 { "on ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
506 { "is ", 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
507 { "hy" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
508 { "ph" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
509 { "en" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
510 { "a-" , 2 * CHAR_WIDTH, NO_START_HYPHEN, END_HYPHEN }, in TEST_F()
511 { "ti" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
512 { "on" , 2 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
513 { "." , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
517 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
523 constexpr float LINE_WIDTH = 1 * CHAR_WIDTH; in TEST_F()
526 { "H" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
527 { "y" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
528 { "p" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
529 { "h" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
530 { "e" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
531 { "n" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
532 { "a" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
533 { "t" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
534 { "i" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
535 { "o" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
536 { "n ", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
537 { "i" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
538 { "s ", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
539 { "h" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
540 { "y" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
541 { "p" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
542 { "h" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
543 { "e" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
544 { "n" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
545 { "a" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
546 { "t" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
547 { "i" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
548 { "o" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
549 { "n" , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
550 { "." , 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN }, in TEST_F()
554 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
562 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
573 constexpr float LINE_WIDTH = 1000 * CHAR_WIDTH; in TEST_F()
575 {"czerwono-niebieska", 18 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
578 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, "pl", LINE_WIDTH); in TEST_F()
584 constexpr float LINE_WIDTH = 18 * CHAR_WIDTH; in TEST_F()
586 {"czerwono-niebieska", 18 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
589 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, "pl", LINE_WIDTH); in TEST_F()
595 constexpr float LINE_WIDTH = 13 * CHAR_WIDTH; in TEST_F()
598 {"czerwono-" , 9 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
599 {"-niebieska", 10 * CHAR_WIDTH, START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
603 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, "pl", LINE_WIDTH); in TEST_F()
611 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
613 constexpr float LINE_WIDTH = 0 * CHAR_WIDTH; in TEST_F()
621 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
629 {"A", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
631 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
639 {"A", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
640 {"B", 1 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
642 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
650 constexpr float CHAR_WIDTH = 0.0; in TEST_F() local
661 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
672 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
680 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
686 constexpr float LINE_WIDTH = 24 * CHAR_WIDTH; in TEST_F()
690 {"This is an example text.", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
694 builder.addCustomRun<ConstantRun>(Range(0, 18), "en-US", CHAR_WIDTH); in TEST_F()
695 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "en-US", CHAR_WIDTH); in TEST_F()
709 {"This is an example text.", 24 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
713 builder.addCustomRun<ConstantRun>(Range(0, 18), "en-US", CHAR_WIDTH); in TEST_F()
714 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH); in TEST_F()
729 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
735 constexpr float LINE_WIDTH = 24 * CHAR_WIDTH; in TEST_F()
738 {"This is an url: ", 15 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
739 {"http://a.b", 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
741 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
747 constexpr float LINE_WIDTH = 24 * CHAR_WIDTH; in TEST_F()
750 {"This is an email: ", 17 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
751 {"a@example.com", 13 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
753 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); in TEST_F()
761 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
767 constexpr float LINE_WIDTH = 24 * CHAR_WIDTH; in TEST_F()
771 {"This is an url: ", 15 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
772 {"http://a.b", 10 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
776 builder.addCustomRun<ConstantRun>(Range(0, 18), "en-US", CHAR_WIDTH); in TEST_F()
777 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH); in TEST_F()
792 {"This is an email: ", 17 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
793 {"a@example.com", 13 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
797 builder.addCustomRun<ConstantRun>(Range(0, 18), "en-US", CHAR_WIDTH); in TEST_F()
798 builder.addCustomRun<ConstantRun>(Range(18, textBuf.size()), "fr-FR", CHAR_WIDTH); in TEST_F()
814 constexpr float CHAR_WIDTH = 10.0; in TEST_F() local
820 constexpr float LINE_WIDTH = 5 * CHAR_WIDTH; in TEST_F()
823 {"a \tb", 4 * CHAR_WIDTH, NO_START_HYPHEN, NO_END_HYPHEN}, in TEST_F()
827 builder.addCustomRun<ConstantRun>(Range(0, textBuf.size()), "en-US", CHAR_WIDTH); in TEST_F()
831 TabStops tabStops(nullptr, 0, CHAR_WIDTH); in TEST_F()