Lines Matching refs:roundtrip
192 // check escape/unescape roundtrip
228 void roundtrip(bool success_expected, const std::string& s);
230 void roundtrip(bool success_expected, const std::string& s)
252 // roundtrip succeeds
255 // after roundtrip, the same string is stored
277 roundtrip(true, "κόσμε");
285 roundtrip(true, std::string("\0", 1));
287 roundtrip(true, "\xc2\x80");
289 roundtrip(true, "\xe0\xa0\x80");
291 roundtrip(true, "\xf0\x90\x80\x80");
294 roundtrip(false, "\xF8\x88\x80\x80\x80");
296 roundtrip(false, "\xFC\x84\x80\x80\x80\x80");
302 roundtrip(true, "\x7f");
304 roundtrip(true, "\xdf\xbf");
306 roundtrip(true, "\xef\xbf\xbf");
309 roundtrip(false, "\xF7\xBF\xBF\xBF");
311 roundtrip(false, "\xFB\xBF\xBF\xBF\xBF");
313 roundtrip(false, "\xFD\xBF\xBF\xBF\xBF\xBF");
319 roundtrip(true, "\xed\x9f\xbf");
321 roundtrip(true, "\xee\x80\x80");
323 roundtrip(true, "\xef\xbf\xbd");
325 roundtrip(true, "\xf4\x8f\xbf\xbf");
328 roundtrip(false, "\xf4\x90\x80\x80");
340 roundtrip(false, "\x80");
342 roundtrip(false, "\xbf");
345 roundtrip(false, "\x80\xbf");
347 roundtrip(false, "\x80\xbf\x80");
349 roundtrip(false, "\x80\xbf\x80\xbf");
351 roundtrip(false, "\x80\xbf\x80\xbf\x80");
353 roundtrip(false, "\x80\xbf\x80\xbf\x80\xbf");
355 roundtrip(false, "\x80\xbf\x80\xbf\x80\xbf\x80");
358 roundtrip(false, "\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf");
364 roundtrip(false, "\xc0 \xc1 \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce \xcf \xd0 \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd \xde \xdf");
366 roundtrip(false, "\xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee \xef");
368 roundtrip(false, "\xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7");
370 roundtrip(false, "\xf8 \xf9 \xfa \xfb");
372 roundtrip(false, "\xfc \xfd");
382 roundtrip(false, "\xc0");
384 roundtrip(false, "\xe0\x80");
386 roundtrip(false, "\xf0\x80\x80");
388 roundtrip(false, "\xf8\x80\x80\x80");
390 roundtrip(false, "\xfc\x80\x80\x80\x80");
392 roundtrip(false, "\xdf");
394 roundtrip(false, "\xef\xbf");
396 roundtrip(false, "\xf7\xbf\xbf");
398 roundtrip(false, "\xfb\xbf\xbf\xbf");
400 roundtrip(false, "\xfd\xbf\xbf\xbf\xbf");
407 roundtrip(false, "\xc0\xe0\x80\xf0\x80\x80\xf8\x80\x80\x80\xfc\x80\x80\x80\x80\xdf\xef\xbf\xf7\xbf\xbf\xfb\xbf\xbf\xbf\xfd\xbf\xbf\xbf\xbf");
415 roundtrip(false, "\xfe");
417 roundtrip(false, "\xff");
419 roundtrip(false, "\xfe\xfe\xff\xff");
452 roundtrip(false, "\xc0\xaf");
454 roundtrip(false, "\xe0\x80\xaf");
456 roundtrip(false, "\xf0\x80\x80\xaf");
458 roundtrip(false, "\xf8\x80\x80\x80\xaf");
460 roundtrip(false, "\xfc\x80\x80\x80\x80\xaf");
471 roundtrip(false, "\xc1\xbf");
473 roundtrip(false, "\xe0\x9f\xbf");
475 roundtrip(false, "\xf0\x8f\xbf\xbf");
477 roundtrip(false, "\xf8\x87\xbf\xbf\xbf");
479 roundtrip(false, "\xfc\x83\xbf\xbf\xbf\xbf");
489 roundtrip(false, "\xc0\x80");
491 roundtrip(false, "\xe0\x80\x80");
493 roundtrip(false, "\xf0\x80\x80\x80");
495 roundtrip(false, "\xf8\x80\x80\x80\x80");
497 roundtrip(false, "\xfc\x80\x80\x80\x80\x80");
511 roundtrip(false, "\xed\xa0\x80");
513 roundtrip(false, "\xed\xad\xbf");
515 roundtrip(false, "\xed\xae\x80");
517 roundtrip(false, "\xed\xaf\xbf");
519 roundtrip(false, "\xed\xb0\x80");
521 roundtrip(false, "\xed\xbe\x80");
523 roundtrip(false, "\xed\xbf\xbf");
529 roundtrip(false, "\xed\xa0\x80\xed\xb0\x80");
531 roundtrip(false, "\xed\xa0\x80\xed\xbf\xbf");
533 roundtrip(false, "\xed\xad\xbf\xed\xb0\x80");
535 roundtrip(false, "\xed\xad\xbf\xed\xbf\xbf");
537 roundtrip(false, "\xed\xae\x80\xed\xb0\x80");
539 roundtrip(false, "\xed\xae\x80\xed\xbf\xbf");
541 roundtrip(false, "\xed\xaf\xbf\xed\xb0\x80");
543 roundtrip(false, "\xed\xaf\xbf\xed\xbf\xbf");
569 roundtrip(true, "\xef\xbf\xbe");
571 roundtrip(true, "\xef\xbf\xbf");
574 roundtrip(true, "\xEF\xB7\x90");
575 roundtrip(true, "\xEF\xB7\x91");
576 roundtrip(true, "\xEF\xB7\x92");
577 roundtrip(true, "\xEF\xB7\x93");
578 roundtrip(true, "\xEF\xB7\x94");
579 roundtrip(true, "\xEF\xB7\x95");
580 roundtrip(true, "\xEF\xB7\x96");
581 roundtrip(true, "\xEF\xB7\x97");
582 roundtrip(true, "\xEF\xB7\x98");
583 roundtrip(true, "\xEF\xB7\x99");
584 roundtrip(true, "\xEF\xB7\x9A");
585 roundtrip(true, "\xEF\xB7\x9B");
586 roundtrip(true, "\xEF\xB7\x9C");
587 roundtrip(true, "\xEF\xB7\x9D");
588 roundtrip(true, "\xEF\xB7\x9E");
589 roundtrip(true, "\xEF\xB7\x9F");
590 roundtrip(true, "\xEF\xB7\xA0");
591 roundtrip(true, "\xEF\xB7\xA1");
592 roundtrip(true, "\xEF\xB7\xA2");
593 roundtrip(true, "\xEF\xB7\xA3");
594 roundtrip(true, "\xEF\xB7\xA4");
595 roundtrip(true, "\xEF\xB7\xA5");
596 roundtrip(true, "\xEF\xB7\xA6");
597 roundtrip(true, "\xEF\xB7\xA7");
598 roundtrip(true, "\xEF\xB7\xA8");
599 roundtrip(true, "\xEF\xB7\xA9");
600 roundtrip(true, "\xEF\xB7\xAA");
601 roundtrip(true, "\xEF\xB7\xAB");
602 roundtrip(true, "\xEF\xB7\xAC");
603 roundtrip(true, "\xEF\xB7\xAD");
604 roundtrip(true, "\xEF\xB7\xAE");
605 roundtrip(true, "\xEF\xB7\xAF");
608 roundtrip(true, "\xF0\x9F\xBF\xBF");
609 roundtrip(true, "\xF0\xAF\xBF\xBF");
610 roundtrip(true, "\xF0\xBF\xBF\xBF");
611 roundtrip(true, "\xF1\x8F\xBF\xBF");
612 roundtrip(true, "\xF1\x9F\xBF\xBF");
613 roundtrip(true, "\xF1\xAF\xBF\xBF");
614 roundtrip(true, "\xF1\xBF\xBF\xBF");
615 roundtrip(true, "\xF2\x8F\xBF\xBF");
616 roundtrip(true, "\xF2\x9F\xBF\xBF");
617 roundtrip(true, "\xF2\xAF\xBF\xBF");