Lines Matching defs:unescaped
621 _cleanup_free_ char *unescaped;
623 assert_se(cunescape("abc\\\\\\\"\\b\\f\\a\\n\\r\\t\\v\\003\\177\\234\\313\\000\\x00", 0, &unescaped) < 0);
624 assert_se(cunescape("abc\\\\\\\"\\b\\f\\a\\n\\r\\t\\v\\003\\177\\234\\313\\000\\x00", UNESCAPE_RELAX, &unescaped) >= 0);
625 assert_se(streq_ptr(unescaped, "abc\\\"\b\f\a\n\r\t\v\003\177\234\313\\000\\x00"));
626 unescaped = mfree(unescaped);
629 assert_se(cunescape("\\x0", 0, &unescaped) < 0);
630 assert_se(cunescape("\\x0", UNESCAPE_RELAX, &unescaped) >= 0);
631 assert_se(streq_ptr(unescaped, "\\x0"));
632 unescaped = mfree(unescaped);
634 assert_se(cunescape("\\x", 0, &unescaped) < 0);
635 assert_se(cunescape("\\x", UNESCAPE_RELAX, &unescaped) >= 0);
636 assert_se(streq_ptr(unescaped, "\\x"));
637 unescaped = mfree(unescaped);
639 assert_se(cunescape("\\", 0, &unescaped) < 0);
640 assert_se(cunescape("\\", UNESCAPE_RELAX, &unescaped) >= 0);
641 assert_se(streq_ptr(unescaped, "\\"));
642 unescaped = mfree(unescaped);
644 assert_se(cunescape("\\11", 0, &unescaped) < 0);
645 assert_se(cunescape("\\11", UNESCAPE_RELAX, &unescaped) >= 0);
646 assert_se(streq_ptr(unescaped, "\\11"));
647 unescaped = mfree(unescaped);
649 assert_se(cunescape("\\1", 0, &unescaped) < 0);
650 assert_se(cunescape("\\1", UNESCAPE_RELAX, &unescaped) >= 0);
651 assert_se(streq_ptr(unescaped, "\\1"));
652 unescaped = mfree(unescaped);
654 assert_se(cunescape("\\u0000", 0, &unescaped) < 0);
655 assert_se(cunescape("\\u00DF\\U000000df\\u03a0\\U00000041", UNESCAPE_RELAX, &unescaped) >= 0);
656 assert_se(streq_ptr(unescaped, "ßßΠA"));
657 unescaped = mfree(unescaped);
659 assert_se(cunescape("\\073", 0, &unescaped) >= 0);
660 assert_se(streq_ptr(unescaped, ";"));