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