• Home
  • Raw
  • Download

Lines Matching refs:dst

62 vis(char *dst, int c, int flag, int nextc)  in vis()  argument
67 *dst++ = '\\'; in vis()
68 *dst++ = c; in vis()
69 *dst = '\0'; in vis()
70 return (dst); in vis()
76 *dst++ = '\\'; in vis()
77 *dst++ = 'n'; in vis()
80 *dst++ = '\\'; in vis()
81 *dst++ = 'r'; in vis()
84 *dst++ = '\\'; in vis()
85 *dst++ = 'b'; in vis()
88 *dst++ = '\\'; in vis()
89 *dst++ = 'a'; in vis()
92 *dst++ = '\\'; in vis()
93 *dst++ = 'v'; in vis()
96 *dst++ = '\\'; in vis()
97 *dst++ = 't'; in vis()
100 *dst++ = '\\'; in vis()
101 *dst++ = 'f'; in vis()
104 *dst++ = '\\'; in vis()
105 *dst++ = 's'; in vis()
108 *dst++ = '\\'; in vis()
109 *dst++ = '0'; in vis()
111 *dst++ = '0'; in vis()
112 *dst++ = '0'; in vis()
119 *dst++ = '\\'; in vis()
120 *dst++ = ((u_char)c >> 6 & 07) + '0'; in vis()
121 *dst++ = ((u_char)c >> 3 & 07) + '0'; in vis()
122 *dst++ = ((u_char)c & 07) + '0'; in vis()
126 *dst++ = '\\'; in vis()
129 *dst++ = 'M'; in vis()
132 *dst++ = '^'; in vis()
134 *dst++ = '?'; in vis()
136 *dst++ = c + '@'; in vis()
138 *dst++ = '-'; in vis()
139 *dst++ = c; in vis()
142 *dst = '\0'; in vis()
143 return (dst); in vis()
161 strvis(char *dst, const char *src, int flag) in strvis() argument
166 for (start = dst; (c = *src);) in strvis()
167 dst = vis(dst, c, flag, *++src); in strvis()
168 *dst = '\0'; in strvis()
169 return (dst - start); in strvis()
174 strnvis(char *dst, const char *src, size_t siz, int flag) in strnvis() argument
181 for (start = dst, end = start + siz - 1; (c = *src) && dst < end; ) { in strnvis()
186 if (dst + 1 >= end) { in strnvis()
190 *dst++ = '\\'; in strnvis()
193 *dst++ = c; in strnvis()
197 if (dst + i <= end) { in strnvis()
198 memcpy(dst, tbuf, i); in strnvis()
199 dst += i; in strnvis()
207 *dst = '\0'; in strnvis()
208 if (dst + i > end) { in strnvis()
211 dst += vis(tbuf, c, flag, *++src) - tbuf; in strnvis()
213 return (dst - start); in strnvis()
236 strvisx(char *dst, const char *src, size_t len, int flag) in strvisx() argument
241 for (start = dst; len > 1; len--) { in strvisx()
243 dst = vis(dst, c, flag, *++src); in strvisx()
246 dst = vis(dst, *src, flag, '\0'); in strvisx()
247 *dst = '\0'; in strvisx()
248 return (dst - start); in strvisx()