Searched refs:EXTRACT_CUNESCAPE_RELAX (Results 1 - 3 of 3) sorted by relevance

/systemd/src/basic/
H A Dextract-word.h27 EXTRACT_CUNESCAPE_RELAX = 4, enumerator in enum:ExtractFlags
H A Dextract-word.c90 if ((flags & EXTRACT_CUNESCAPE_RELAX) &&
93 * EXTRACT_CUNESCAPE_RELAX mode, keep it verbatim in the
97 * mode, EXTRACT_CUNESCAPE_RELAX mode does not allow them.
113 if (flags & EXTRACT_CUNESCAPE_RELAX) {
213 * but this time using EXTRACT_CUNESCAPE_RELAX to keep the
224 if (r == -EINVAL && !(flags & EXTRACT_CUNESCAPE_RELAX)) {
226 /* Retry it with EXTRACT_CUNESCAPE_RELAX. */
228 r = extract_first_word(p, ret, separators, flags|EXTRACT_CUNESCAPE_RELAX);
/systemd/src/test/
H A Dtest-extract-word.c167 assert_se(extract_first_word(&p, &t, NULL, EXTRACT_CUNESCAPE_RELAX) > 0);
173 assert_se(extract_first_word(&p, &t, NULL, EXTRACT_CUNESCAPE_RELAX|EXTRACT_RELAX) > 0);
179 assert_se(extract_first_word(&p, &t, NULL, EXTRACT_CUNESCAPE|EXTRACT_CUNESCAPE_RELAX) > 0);
225 assert_se(extract_first_word(&p, &t, NULL, EXTRACT_QUOTES|EXTRACT_CUNESCAPE_RELAX) == -EINVAL);
229 assert_se(extract_first_word(&p, &t, NULL, EXTRACT_QUOTES|EXTRACT_CUNESCAPE_RELAX|EXTRACT_RELAX) > 0);
235 assert_se(extract_first_word(&p, &t, NULL, EXTRACT_QUOTES|EXTRACT_CUNESCAPE|EXTRACT_CUNESCAPE_RELAX|EXTRACT_RELAX) > 0);
247 assert_se(extract_first_word(&p, &t, NULL, EXTRACT_CUNESCAPE_RELAX) > 0);
253 assert_se(extract_first_word(&p, &t, NULL, EXTRACT_CUNESCAPE_RELAX|EXTRACT_RELAX) > 0);
263 assert_se(extract_first_word(&p, &t, NULL, EXTRACT_CUNESCAPE|EXTRACT_CUNESCAPE_RELAX) > 0);
273 assert_se(extract_first_word(&p, &t, NULL, EXTRACT_CUNESCAPE|EXTRACT_CUNESCAPE_RELAX) >
[all...]

Completed in 12 milliseconds