Lines Matching refs:unquoted
9 /* VSTRING *xtext_quote(quoted, unquoted, special)
11 /* const char *unquoted;
14 /* VSTRING *xtext_quote_append(unquoted, quoted, special)
15 /* VSTRING *unquoted;
19 /* VSTRING *xtext_unquote(unquoted, quoted)
20 /* VSTRING *unquoted;
32 /* result value is the unquoted argument in case of success, a null pointer
64 /* xtext_quote_append - append unquoted data to quoted data */
66 VSTRING *xtext_quote_append(VSTRING *quoted, const char *unquoted,
72 for (cp = unquoted; (ch = *(unsigned const char *) cp) != 0; cp++) {
84 /* xtext_quote - unquoted data to quoted */
86 VSTRING *xtext_quote(VSTRING *quoted, const char *unquoted, const char *special)
89 xtext_quote_append(quoted, unquoted, special);
93 /* xtext_unquote - quoted data to unquoted */
95 VSTRING *xtext_unquote(VSTRING *unquoted, const char *quoted)
100 VSTRING_RESET(unquoted);
121 VSTRING_ADDCH(unquoted, ch);
123 VSTRING_TERMINATE(unquoted);
124 return (unquoted);
149 VSTRING *unquoted = vstring_alloc(BUFLEN);
153 while ((len = read_buf(VSTREAM_IN, unquoted)) > 0) {
154 xtext_quote(quoted, STR(unquoted), "+=");
155 if (xtext_unquote(unquoted, STR(quoted)) == 0)
157 if (LEN(unquoted) != len)
158 msg_fatal("len %ld != unquoted len %ld",
159 (long) len, (long) LEN(unquoted));
160 if (vstream_fwrite(VSTREAM_OUT, STR(unquoted), LEN(unquoted)) != LEN(unquoted))
164 vstring_free(unquoted);