Searched refs:EXTRACT_CUNESCAPE_RELAX (Results 1 - 3 of 3) sorted by relevance
/systemd/src/basic/ |
H A D | extract-word.h | 27 EXTRACT_CUNESCAPE_RELAX = 4, enumerator in enum:ExtractFlags
|
H A D | extract-word.c | 90 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 D | test-extract-word.c | 167 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