• Home
  • Raw
  • Download

Lines Matching refs:dest

70     cups_utf8_t           *dest,	/* O - Target string */  in cupsCharsetToUTF8()  argument
86 …DEBUG_printf(("2cupsCharsetToUTF8(dest=%p, src=\"%s\", maxout=%d, encoding=%d)", (void *)dest, src… in cupsCharsetToUTF8()
88 if (!dest || !src || maxout < 1) in cupsCharsetToUTF8()
90 if (dest) in cupsCharsetToUTF8()
91 *dest = '\0'; in cupsCharsetToUTF8()
104 strlcpy((char *)dest, src, (size_t)maxout); in cupsCharsetToUTF8()
105 return ((int)strlen((char *)dest)); in cupsCharsetToUTF8()
112 destptr = dest; in cupsCharsetToUTF8()
120 destend = dest + maxout - 2; in cupsCharsetToUTF8()
137 return ((int)(destptr - dest)); in cupsCharsetToUTF8()
162 char *altdestptr = (char *)dest; /* Silence bogus GCC type-punned */ in cupsCharsetToUTF8()
172 return ((int)(altdestptr - (char *)dest)); in cupsCharsetToUTF8()
194 char *dest, /* O - Target string */ in cupsUTF8ToCharset() argument
210 if (!dest || !src || maxout < 1) in cupsUTF8ToCharset()
212 if (dest) in cupsUTF8ToCharset()
213 *dest = '\0'; in cupsUTF8ToCharset()
225 strlcpy(dest, (char *)src, (size_t)maxout); in cupsUTF8ToCharset()
226 return ((int)strlen(dest)); in cupsUTF8ToCharset()
233 destptr = dest; in cupsUTF8ToCharset()
242 destend = dest + maxout - 1; in cupsUTF8ToCharset()
266 return ((int)(destptr - dest)); in cupsUTF8ToCharset()
301 return ((int)(destptr - dest)); in cupsUTF8ToCharset()
335 cups_utf32_t *dest, /* O - Target string */ in cupsUTF8ToUTF32() argument
349 DEBUG_printf(("2cupsUTF8ToUTF32(dest=%p, src=\"%s\", maxout=%d)", (void *)dest, src, maxout)); in cupsUTF8ToUTF32()
351 if (dest) in cupsUTF8ToUTF32()
352 *dest = 0; in cupsUTF8ToUTF32()
354 if (!dest || !src || maxout < 1 || maxout > CUPS_MAX_USTRING) in cupsUTF8ToUTF32()
379 *dest++ = ch; in cupsUTF8ToUTF32()
411 *dest++ = ch32; in cupsUTF8ToUTF32()
453 *dest++ = ch32; in cupsUTF8ToUTF32()
505 *dest++ = ch32; in cupsUTF8ToUTF32()
529 *dest = 0; in cupsUTF8ToUTF32()
555 cups_utf8_t *dest, /* O - Target string */ in cupsUTF32ToUTF8() argument
569 DEBUG_printf(("2cupsUTF32ToUTF8(dest=%p, src=%p, maxout=%d)", (void *)dest, (void *)src, maxout)); in cupsUTF32ToUTF8()
571 if (dest) in cupsUTF32ToUTF8()
572 *dest = '\0'; in cupsUTF32ToUTF8()
574 if (!dest || !src || maxout < 1) in cupsUTF32ToUTF8()
585 start = dest; in cupsUTF32ToUTF8()
630 *dest++ = (cups_utf8_t)ch; in cupsUTF32ToUTF8()
633 DEBUG_printf(("4cupsUTF32ToUTF8: %08x => %02x", (unsigned)ch, dest[-1])); in cupsUTF32ToUTF8()
648 *dest++ = (cups_utf8_t)(0xc0 | ((ch >> 6) & 0x1f)); in cupsUTF32ToUTF8()
649 *dest++ = (cups_utf8_t)(0x80 | (ch & 0x3f)); in cupsUTF32ToUTF8()
653 dest[-2], dest[-1])); in cupsUTF32ToUTF8()
668 *dest++ = (cups_utf8_t)(0xe0 | ((ch >> 12) & 0x0f)); in cupsUTF32ToUTF8()
669 *dest++ = (cups_utf8_t)(0x80 | ((ch >> 6) & 0x3f)); in cupsUTF32ToUTF8()
670 *dest++ = (cups_utf8_t)(0x80 | (ch & 0x3f)); in cupsUTF32ToUTF8()
674 dest[-3], dest[-2], dest[-1])); in cupsUTF32ToUTF8()
689 *dest++ = (cups_utf8_t)(0xf0 | ((ch >> 18) & 0x07)); in cupsUTF32ToUTF8()
690 *dest++ = (cups_utf8_t)(0x80 | ((ch >> 12) & 0x3f)); in cupsUTF32ToUTF8()
691 *dest++ = (cups_utf8_t)(0x80 | ((ch >> 6) & 0x3f)); in cupsUTF32ToUTF8()
692 *dest++ = (cups_utf8_t)(0x80 | (ch & 0x3f)); in cupsUTF32ToUTF8()
696 (unsigned)ch, dest[-4], dest[-3], dest[-2], dest[-1])); in cupsUTF32ToUTF8()
700 *dest = '\0'; in cupsUTF32ToUTF8()
702 DEBUG_printf(("3cupsUTF32ToUTF8: Returning %d", (int)(dest - start))); in cupsUTF32ToUTF8()
704 return ((int)(dest - start)); in cupsUTF32ToUTF8()