Lines Matching refs:source
35 str_totext(const char *source, isc_buffer_t *target);
48 base32_totext(isc_region_t *source, int wordlength, const char *wordbreak,
58 while (source->length > 0) {
59 buf[0] = base[((source->base[0]>>3)&0x1f)]; /* 5 + */
60 if (source->length == 1) {
61 buf[1] = base[(source->base[0]<<2)&0x1c];
67 buf[1] = base[((source->base[0]<<2)&0x1c)| /* 3 = 8 */
68 ((source->base[1]>>6)&0x03)]; /* 2 + */
69 buf[2] = base[((source->base[1]>>1)&0x1f)]; /* 5 + */
70 if (source->length == 2) {
71 buf[3] = base[(source->base[1]<<4)&0x10];
76 buf[3] = base[((source->base[1]<<4)&0x10)| /* 1 = 8 */
77 ((source->base[2]>>4)&0x0f)]; /* 4 + */
78 if (source->length == 3) {
79 buf[4] = base[(source->base[2]<<1)&0x1e];
84 buf[4] = base[((source->base[2]<<1)&0x1e)| /* 4 = 8 */
85 ((source->base[3]>>7)&0x01)]; /* 1 + */
86 buf[5] = base[((source->base[3]>>2)&0x1f)]; /* 5 + */
87 if (source->length == 4) {
88 buf[6] = base[(source->base[3]<<3)&0x18];
93 buf[6] = base[((source->base[3]<<3)&0x18)| /* 2 = 8 */
94 ((source->base[4]>>5)&0x07)]; /* 3 + */
95 buf[7] = base[source->base[4]&0x1f]; /* 5 = 8 */
97 isc_region_consume(source, 5);
100 if (source->length != 0 && wordlength >= 0 &&
107 if (source->length > 0)
108 isc_region_consume(source, source->length);
113 isc_base32_totext(isc_region_t *source, int wordlength,
116 return (base32_totext(source, wordlength, wordbreak, target,
121 isc_base32hex_totext(isc_region_t *source, int wordlength,
124 return (base32_totext(source, wordlength, wordbreak, target,
129 isc_base32hexnp_totext(isc_region_t *source, int wordlength,
132 return (base32_totext(source, wordlength, wordbreak, target,
359 base32_decoderegion(isc_region_t *source, const char base[],
365 while (source->length != 0) {
366 int c = *source->base;
368 isc_region_consume(source, 1);
375 isc_base32_decoderegion(isc_region_t *source, isc_buffer_t *target) {
376 return (base32_decoderegion(source, base32, ISC_TRUE, target));
380 isc_base32hex_decoderegion(isc_region_t *source, isc_buffer_t *target) {
381 return (base32_decoderegion(source, base32hex, ISC_TRUE, target));
385 isc_base32hexnp_decoderegion(isc_region_t *source, isc_buffer_t *target) {
386 return (base32_decoderegion(source, base32hex, ISC_FALSE, target));
390 str_totext(const char *source, isc_buffer_t *target) {
395 l = strlen(source);
400 memmove(region.base, source, l);