Lines Matching refs:c

82 static inline __attribute_const__ unsigned char dehex(char c) {  in dehex()  argument
83 if ((c>='0')&&(c<='9')) { in dehex()
84 return c-'0'; in dehex()
86 if ((c>='a')&&(c<='f')) { in dehex()
87 return c-'a'+10; in dehex()
89 if ((c>='A')&&(c<='F')) { in dehex()
90 return c-'A'+10; in dehex()
112 unsigned char c; in hfs_mac2nat() local
125 c = *p++; in hfs_mac2nat()
126 if ((c<32) || (c=='/') || (c>126) || (!count && (c=='.'))) { in hfs_mac2nat()
128 *out++ = hex[(c>>4) & 0xf]; in hfs_mac2nat()
129 *out++ = hex[c & 0xf]; in hfs_mac2nat()
132 *out++ = c; in hfs_mac2nat()
154 unsigned char c; in hfs_mac2cap() local
160 c = *p++; in hfs_mac2cap()
161 if ((c<32) || (c=='/') || (c>126)) { in hfs_mac2cap()
163 *out++ = hex[(c>>4) & 0xf]; in hfs_mac2cap()
164 *out++ = hex[c & 0xf]; in hfs_mac2cap()
167 *out++ = c; in hfs_mac2cap()
195 unsigned char c; in hfs_mac2eight() local
201 c = *p++; in hfs_mac2eight()
202 if (!c || (c=='/') || (c=='%')) { in hfs_mac2eight()
204 *out++ = hex[(c>>4) & 0xf]; in hfs_mac2eight()
205 *out++ = hex[c & 0xf]; in hfs_mac2eight()
208 *out++ = c; in hfs_mac2eight()
237 unsigned char c; in hfs_mac2seven() local
243 c = *p++; in hfs_mac2seven()
244 if (!c || (c=='/') || (c=='%') || (c&0x80)) { in hfs_mac2seven()
246 *out++ = hex[(c>>4) & 0xf]; in hfs_mac2seven()
247 *out++ = hex[c & 0xf]; in hfs_mac2seven()
250 *out++ = c; in hfs_mac2seven()
278 unsigned char c; in hfs_mac2alpha() local
289 c = *p++; in hfs_mac2alpha()
290 if ((p==lp) || ((c>='0')&&(c<='9')) || ((c>='A')&&(c<='Z')) || in hfs_mac2alpha()
291 ((c>='a')&&(c<='z')) || (c=='_')) { in hfs_mac2alpha()
292 *out++ = c; in hfs_mac2alpha()
296 *out++ = hex[(c>>4) & 0xf]; in hfs_mac2alpha()
297 *out++ = hex[c & 0xf]; in hfs_mac2alpha()
319 unsigned char c; in hfs_mac2triv() local
325 c = *p++; in hfs_mac2triv()
326 if (c=='/') { in hfs_mac2triv()
329 *out++ = c; in hfs_mac2triv()
362 unsigned char c; in hfs_mac2latin() local
368 c = *p++; in hfs_mac2latin()
370 if ((c & 0x80) && mac2latin_map[c & 0x7f]) { in hfs_mac2latin()
371 *out++ = mac2latin_map[c & 0x7f]; in hfs_mac2latin()
373 } else if ((c>=32) && (c<=126) && (c!='/') && (c!='%')) { in hfs_mac2latin()
374 *out++ = c; in hfs_mac2latin()
378 *out++ = hex[(c>>4) & 0xf]; in hfs_mac2latin()
379 *out++ = hex[c & 0xf]; in hfs_mac2latin()
401 unsigned char code, c, *count; in hfs_colon2mac() local
407 c = *in++; in hfs_colon2mac()
409 if (c!=':') { in hfs_colon2mac()
410 *p++ = c; in hfs_colon2mac()
442 unsigned char code, c, *count; in hfs_prcnt2mac() local
448 c = *in++; in hfs_prcnt2mac()
450 if (c==':') { in hfs_prcnt2mac()
452 } else if (c!='%') { in hfs_prcnt2mac()
453 *p++ = c; in hfs_prcnt2mac()
481 unsigned char c, *count; in hfs_triv2mac() local
487 c = *in++; in hfs_triv2mac()
489 if (c==':') { in hfs_triv2mac()
492 *p++ = c; in hfs_triv2mac()
516 unsigned char code, c, *count; in hfs_latin2mac() local
525 if ((c = mac2latin_map[i])) { in hfs_latin2mac()
526 latin2mac_map[(int)c - 128] = i + 128; in hfs_latin2mac()
535 c = *in++; in hfs_latin2mac()
538 if (c==':') { in hfs_latin2mac()
540 } else if (c!='%') { in hfs_latin2mac()
541 if (c<128 || !(*p = latin2mac_map[c-128])) { in hfs_latin2mac()
542 *p = c; in hfs_latin2mac()