Lines Matching refs:source

39 str_totext(const char *source, isc_buffer_t *target);
49 isc_base64_totext(isc_region_t *source, int wordlength, const char *wordbreak, in isc_base64_totext() argument
59 while (source->length > 2) { in isc_base64_totext()
60 buf[0] = base64[(source->base[0] >> 2) & 0x3f]; in isc_base64_totext()
61 buf[1] = base64[((source->base[0] << 4) & 0x30) | in isc_base64_totext()
62 ((source->base[1] >> 4) & 0x0f)]; in isc_base64_totext()
63 buf[2] = base64[((source->base[1] << 2) & 0x3c) | in isc_base64_totext()
64 ((source->base[2] >> 6) & 0x03)]; in isc_base64_totext()
65 buf[3] = base64[source->base[2] & 0x3f]; in isc_base64_totext()
67 isc_region_consume(source, 3); in isc_base64_totext()
70 if (source->length != 0 && (int)((loops + 1) * 4) >= wordlength) in isc_base64_totext()
76 if (source->length == 2) { in isc_base64_totext()
77 buf[0] = base64[(source->base[0] >> 2) & 0x3f]; in isc_base64_totext()
78 buf[1] = base64[((source->base[0] << 4) & 0x30) | in isc_base64_totext()
79 ((source->base[1] >> 4) & 0x0f)]; in isc_base64_totext()
80 buf[2] = base64[((source->base[1] << 2) & 0x3c)]; in isc_base64_totext()
83 isc_region_consume(source, 2); in isc_base64_totext()
84 } else if (source->length == 1) { in isc_base64_totext()
85 buf[0] = base64[(source->base[0] >> 2) & 0x3f]; in isc_base64_totext()
86 buf[1] = base64[((source->base[0] << 4) & 0x30)]; in isc_base64_totext()
89 isc_region_consume(source, 1); in isc_base64_totext()
245 str_totext(const char *source, isc_buffer_t *target) { in str_totext() argument
250 l = strlen(source); in str_totext()
256 memmove(region.base, source, l); in str_totext()