Lines Matching defs:escaped
48 char *escaped;
55 escaped = sbus_opath_escape_part(mem_ctx, "noescape");
56 assert_non_null(escaped);
57 assert_string_equal(escaped, "noescape");
58 raw = sbus_opath_unescape_part(mem_ctx, escaped);
59 talloc_free(escaped);
64 escaped = sbus_opath_escape_part(mem_ctx, "redhat.com");
65 assert_non_null(escaped);
66 assert_string_equal(escaped, "redhat_2ecom"); /* dot is 0x2E in ASCII */
67 raw = sbus_opath_unescape_part(mem_ctx, escaped);
68 talloc_free(escaped);
73 escaped = sbus_opath_escape_part(mem_ctx, "path_with_underscore");
74 assert_non_null(escaped);
76 assert_string_equal(escaped, "path_5fwith_5funderscore");
77 raw = sbus_opath_unescape_part(mem_ctx, escaped);
78 talloc_free(escaped);
84 escaped = sbus_opath_escape_part(mem_ctx, "");
85 assert_non_null(escaped);
86 assert_string_equal(escaped, "_");
87 raw = sbus_opath_unescape_part(mem_ctx, escaped);
88 talloc_free(escaped);
94 escaped = sbus_opath_escape_part(mem_ctx, NULL);
95 assert_null(escaped);