Lines Matching refs:destptr
80 cups_utf8_t *destptr; /* Pointer into UTF-8 buffer */ in cupsCharsetToUTF8() local
117 destptr = dest; in cupsCharsetToUTF8()
127 while (*src && destptr < destend) in cupsCharsetToUTF8()
133 *destptr++ = (cups_utf8_t)(0xc0 | (ch >> 6)); in cupsCharsetToUTF8()
134 *destptr++ = (cups_utf8_t)(0x80 | (ch & 0x3f)); in cupsCharsetToUTF8()
137 *destptr++ = (cups_utf8_t)ch; in cupsCharsetToUTF8()
140 *destptr = '\0'; in cupsCharsetToUTF8()
142 return ((int)(destptr - dest)); in cupsCharsetToUTF8()
187 *destptr = '\0'; in cupsCharsetToUTF8()
204 char *destptr; /* Pointer into destination */ in cupsUTF8ToCharset() local
238 destptr = dest; in cupsUTF8ToCharset()
249 while (*src && destptr < destend) in cupsUTF8ToCharset()
258 *destptr++ = (char)ch; in cupsUTF8ToCharset()
260 *destptr++ = '?'; in cupsUTF8ToCharset()
264 *destptr++ = '?'; in cupsUTF8ToCharset()
266 *destptr++ = (char)ch; in cupsUTF8ToCharset()
269 *destptr = '\0'; in cupsUTF8ToCharset()
271 return ((int)(destptr - dest)); in cupsUTF8ToCharset()
301 iconv(map_from_utf8, &altsrc, &srclen, &destptr, &outBytesLeft); in cupsUTF8ToCharset()
302 *destptr = '\0'; in cupsUTF8ToCharset()
306 return ((int)(destptr - dest)); in cupsUTF8ToCharset()
316 *destptr = '\0'; in cupsUTF8ToCharset()