Lines Matching refs:source
43 str_totext(const char *source, isc_buffer_t *target);
53 isc_base64_totext(isc_region_t *source, int wordlength,
63 while (source->length > 2) {
64 buf[0] = base64[(source->base[0]>>2)&0x3f];
65 buf[1] = base64[((source->base[0]<<4)&0x30)|
66 ((source->base[1]>>4)&0x0f)];
67 buf[2] = base64[((source->base[1]<<2)&0x3c)|
68 ((source->base[2]>>6)&0x03)];
69 buf[3] = base64[source->base[2]&0x3f];
71 isc_region_consume(source, 3);
74 if (source->length != 0 &&
81 if (source->length == 2) {
82 buf[0] = base64[(source->base[0]>>2)&0x3f];
83 buf[1] = base64[((source->base[0]<<4)&0x30)|
84 ((source->base[1]>>4)&0x0f)];
85 buf[2] = base64[((source->base[1]<<2)&0x3c)];
88 isc_region_consume(source, 2);
89 } else if (source->length == 1) {
90 buf[0] = base64[(source->base[0]>>2)&0x3f];
91 buf[1] = base64[((source->base[0]<<4)&0x30)];
94 isc_region_consume(source, 1);
227 str_totext(const char *source, isc_buffer_t *target) {
232 l = strlen(source);
237 memmove(region.base, source, l);