Lines Matching defs:source
34 str_totext(const char *source, isc_buffer_t *target);
44 isc_base64_totext(isc_region_t *source, int wordlength,
54 while (source->length > 2) {
55 buf[0] = base64[(source->base[0]>>2)&0x3f];
56 buf[1] = base64[((source->base[0]<<4)&0x30)|
57 ((source->base[1]>>4)&0x0f)];
58 buf[2] = base64[((source->base[1]<<2)&0x3c)|
59 ((source->base[2]>>6)&0x03)];
60 buf[3] = base64[source->base[2]&0x3f];
62 isc_region_consume(source, 3);
65 if (source->length != 0 &&
72 if (source->length == 2) {
73 buf[0] = base64[(source->base[0]>>2)&0x3f];
74 buf[1] = base64[((source->base[0]<<4)&0x30)|
75 ((source->base[1]>>4)&0x0f)];
76 buf[2] = base64[((source->base[1]<<2)&0x3c)];
79 isc_region_consume(source, 2);
80 } else if (source->length == 1) {
81 buf[0] = base64[(source->base[0]>>2)&0x3f];
82 buf[1] = base64[((source->base[0]<<4)&0x30)];
85 isc_region_consume(source, 1);
218 str_totext(const char *source, isc_buffer_t *target) {
223 l = strlen(source);
228 memmove(region.base, source, l);