Lines Matching refs:source
179 str_totext(const char *source, isc_buffer_t *target) {
184 l = strlen(source);
189 memmove(region.base, source, l);
195 maybe_numeric(unsigned int *valuep, isc_textregion_t *source,
202 if (! isdigit(source->base[0] & 0xff) ||
203 source->length > NUMBERSIZE - 1)
211 strncpy(buffer, source->base, NUMBERSIZE);
212 INSIST(buffer[source->length] == '\0');
226 dns_mnemonic_fromtext(unsigned int *valuep, isc_textregion_t *source,
232 result = maybe_numeric(valuep, source, max, ISC_FALSE);
239 if (n == source->length &&
240 strncasecmp(source->base, table[i].name, n) == 0) {
265 dns_rcode_fromtext(dns_rcode_t *rcodep, isc_textregion_t *source) {
267 RETERR(dns_mnemonic_fromtext(&value, source, rcodes, 0xffff));
278 dns_tsigrcode_fromtext(dns_rcode_t *rcodep, isc_textregion_t *source) {
280 RETERR(dns_mnemonic_fromtext(&value, source, tsigrcodes, 0xffff));
291 dns_cert_fromtext(dns_cert_t *certp, isc_textregion_t *source) {
293 RETERR(dns_mnemonic_fromtext(&value, source, certs, 0xffff));
304 dns_secalg_fromtext(dns_secalg_t *secalgp, isc_textregion_t *source) {
306 RETERR(dns_mnemonic_fromtext(&value, source, secalgs, 0xff));
317 dns_secproto_fromtext(dns_secproto_t *secprotop, isc_textregion_t *source) {
319 RETERR(dns_mnemonic_fromtext(&value, source, secprotos, 0xff));
330 dns_hashalg_fromtext(unsigned char *hashalg, isc_textregion_t *source) {
332 RETERR(dns_mnemonic_fromtext(&value, source, hashalgs, 0xff));
338 dns_keyflags_fromtext(dns_keyflags_t *flagsp, isc_textregion_t *source)
344 result = maybe_numeric(&value, source, 0xffff, ISC_TRUE);
352 text = source->base;
353 end = source->base + source->length;
389 dns_rdataclass_fromtext(dns_rdataclass_t *classp, isc_textregion_t *source) {
391 if (((sizeof(string) - 1) == source->length) \
392 && (strncasecmp(source->base, string, source->length) == 0)) { \
397 switch (tolower((unsigned char)source->base[0])) {
410 if (source->length > 5 &&
411 source->length < (5 + sizeof("65000")) &&
412 strncasecmp("class", source->base, 5) == 0) {
417 strncpy(buf, source->base + 5, source->length - 5);
418 buf[source->length - 5] = '\0';