| /dragonfly/contrib/file/src/ |
| HD | is_json.c | 78 json_isspace(const unsigned char uc) in json_isspace() argument 80 switch (uc) { in json_isspace() 92 json_isdigit(unsigned char uc) in json_isdigit() argument 94 switch (uc) { in json_isdigit() 104 json_isxdigit(unsigned char uc) in json_isxdigit() argument 106 if (json_isdigit(uc)) in json_isxdigit() 108 switch (uc) { in json_isxdigit() 118 json_skip_space(const unsigned char *uc, const unsigned char *ue) in json_skip_space() argument 120 while (uc < ue && json_isspace(*uc)) in json_skip_space() 121 uc++; in json_skip_space() [all …]
|
| HD | is_csv.c | 67 eatquote(const unsigned char *uc, const unsigned char *ue) in eatquote() argument 71 while (uc < ue) { in eatquote() 72 unsigned char c = *uc++; in eatquote() 76 return --uc; in eatquote() 92 csv_parse(const unsigned char *uc, const unsigned char *ue) in csv_parse() argument 96 while (uc < ue) { in csv_parse() 97 switch (*uc++) { in csv_parse() 100 uc = eatquote(uc, ue); in csv_parse() 135 const unsigned char *uc = CAST(const unsigned char *, b->fbuf); in file_is_csv() local 136 const unsigned char *ue = uc + b->flen; in file_is_csv() [all …]
|
| HD | encoding.c | 486 uint32_t uc; in looks_ucs16() local 489 uc = CAST(uint32_t, in looks_ucs16() 492 uc = CAST(uint32_t, in looks_ucs16() 495 uc &= 0xffff; in looks_ucs16() 497 switch (uc) { in looks_ucs16() 502 if (UCS16_NOCHAR(uc)) in looks_ucs16() 507 if (!UCS16_LOSURR(uc)) in looks_ucs16() 509 uc = 0x10000 + 0x400 * (hi - 1) + (uc - 0xdc00); in looks_ucs16() 512 if (uc < 128 && text_chars[CAST(size_t, uc)] != T) in looks_ucs16() 514 ubf[(*ulen)++] = uc; in looks_ucs16() [all …]
|
| /dragonfly/contrib/grep/lib/uniwidth/ |
| HD | width.c | 415 uc_width (ucs4_t uc, const char *encoding) in uc_width() argument 418 if ((uc >> 9) < 248) in uc_width() 420 int ind = nonspacing_table_ind[uc >> 9]; in uc_width() 422 if ((nonspacing_table_data[64*ind + ((uc >> 3) & 63)] >> (uc & 7)) & 1) in uc_width() 424 if (uc > 0 && uc < 0xa0) in uc_width() 430 else if ((uc >> 9) == (0xe0000 >> 9)) in uc_width() 432 if (uc >= 0xe0100) in uc_width() 434 if (uc <= 0xe01ef) in uc_width() 439 if (uc >= 0xe0020 ? uc <= 0xe007f : uc == 0xe0001) in uc_width() 447 if (uc >= 0x1100 in uc_width() [all …]
|
| /dragonfly/contrib/grep/lib/unistr/ |
| HD | u8-uctomb.c | 31 u8_uctomb (uint8_t *s, ucs4_t uc, int n) in u8_uctomb() argument 33 if (uc < 0x80) in u8_uctomb() 37 s[0] = uc; in u8_uctomb() 46 if (uc < 0x800) in u8_uctomb() 48 else if (uc < 0x10000) in u8_uctomb() 50 if (uc < 0xd800 || uc >= 0xe000) in u8_uctomb() 55 else if (uc < 0x110000) in u8_uctomb() 64 case 4: s[3] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x10000; in u8_uctomb() 65 case 3: s[2] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x800; in u8_uctomb() 66 case 2: s[1] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0xc0; in u8_uctomb() [all …]
|
| HD | u8-uctomb-aux.c | 32 u8_uctomb_aux (uint8_t *s, ucs4_t uc, int n) in u8_uctomb_aux() argument 36 if (uc < 0x80) in u8_uctomb_aux() 39 else if (uc < 0x800) in u8_uctomb_aux() 41 else if (uc < 0x10000) in u8_uctomb_aux() 43 if (uc < 0xd800 || uc >= 0xe000) in u8_uctomb_aux() 48 else if (uc < 0x110000) in u8_uctomb_aux() 58 case 4: s[3] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x10000; in u8_uctomb_aux() 60 case 3: s[2] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x800; in u8_uctomb_aux() 62 case 2: s[1] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0xc0; in u8_uctomb_aux() 63 /*case 1:*/ s[0] = uc; in u8_uctomb_aux()
|
| /dragonfly/contrib/bzip2/ |
| HD | decompress.c | 108 UChar uc; in BZ2_decompress() local 197 GET_UCHAR(BZ_X_MAGIC_1, uc); in BZ2_decompress() 198 if (uc != BZ_HDR_B) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress() 200 GET_UCHAR(BZ_X_MAGIC_2, uc); in BZ2_decompress() 201 if (uc != BZ_HDR_Z) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress() 203 GET_UCHAR(BZ_X_MAGIC_3, uc) in BZ2_decompress() 204 if (uc != BZ_HDR_h) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress() 222 GET_UCHAR(BZ_X_BLKHDR_1, uc); in BZ2_decompress() 224 if (uc == 0x17) goto endhdr_2; in BZ2_decompress() 225 if (uc != 0x31) RETURN(BZ_DATA_ERROR); in BZ2_decompress() [all …]
|
| /dragonfly/tools/regression/bin/sh/expansion/ |
| HD | set-u1.0 | 3 ${SH} -uc 'unset foo; echo $foo' 2>/dev/null && exit 1 4 ${SH} -uc 'foo=; echo $foo' >/dev/null || exit 1 5 ${SH} -uc 'foo=1; echo $foo' >/dev/null || exit 1 7 ${SH} -uc 'unset foo; echo ${foo-}' >/dev/null || exit 1 8 ${SH} -uc 'unset foo; echo ${foo+}' >/dev/null || exit 1 9 ${SH} -uc 'unset foo; echo ${foo=}' >/dev/null || exit 1 11 ${SH} -uc 'unset foo; echo ${#foo}' 2>/dev/null && exit 1 12 ${SH} -uc 'foo=; echo ${#foo}' >/dev/null || exit 1 13 ${SH} -uc 'unset foo; echo ${foo#?}' 2>/dev/null && exit 1 14 ${SH} -uc 'foo=1; echo ${foo#?}' >/dev/null || exit 1 [all …]
|
| /dragonfly/lib/libc/gen/ |
| HD | unvis.c | 194 unsigned char uc = (unsigned char)c; in unvis() local 351 if (isoctal(uc)) { in unvis() 367 if (isoctal(uc)) { in unvis() 377 if (!isxdigit(uc)) in unvis() 381 if (isxdigit(uc)) { in unvis() 382 *cp = xtod(uc); in unvis() 394 if (isxdigit(uc)) { in unvis() 395 *cp = xtod(uc) | (*cp << 4); in unvis() 401 if (uc == '\n' || uc == '\r') { in unvis() 405 if (isxdigit(uc) && (isdigit(uc) || isupper(uc))) { in unvis() [all …]
|
| /dragonfly/contrib/libpcap/ |
| HD | fmtutils.c | 108 uint32_t uc; in utf_16le_to_utf_8_truncated() local 135 uc = REPLACEMENT_CHARACTER; in utf_16le_to_utf_8_truncated() 154 uc = SURROGATE_VALUE(c, c2); in utf_16le_to_utf_8_truncated() 161 uc = REPLACEMENT_CHARACTER; in utf_16le_to_utf_8_truncated() 175 uc = REPLACEMENT_CHARACTER; in utf_16le_to_utf_8_truncated() 181 uc = c; in utf_16le_to_utf_8_truncated() 189 if (uc < 0x0080) { in utf_16le_to_utf_8_truncated() 198 *utf_8++ = (char)uc; in utf_16le_to_utf_8_truncated() 200 } else if (uc < 0x0800) { in utf_16le_to_utf_8_truncated() 209 *utf_8++ = ((uc >> 6) & 0x3F) | 0xC0; in utf_16le_to_utf_8_truncated() [all …]
|
| /dragonfly/contrib/mdocml/ |
| HD | term.c | 527 int sz, uc; in term_word() local 570 uc = mchars_num2uc(seq + 1, sz - 1); in term_word() 573 uc = mchars_num2char(seq, sz); in term_word() 574 if (uc < 0) in term_word() 583 uc = mchars_spec2cp(seq, sz); in term_word() 584 if (uc > 0) in term_word() 585 encode1(p, uc); in term_word() 589 uc = *seq; in term_word() 632 uc = -p->col; in term_word() 634 uc = 0; in term_word() [all …]
|
| HD | term_ascii.c | 299 ascii_uc2str(int uc) in ascii_uc2str() argument 368 assert(uc >= 0); in ascii_uc2str() 369 if ((size_t)uc < sizeof(tab)/sizeof(tab[0])) in ascii_uc2str() 370 return tab[uc]; in ascii_uc2str() 371 return mchars_uc2str(uc); in ascii_uc2str()
|
| /dragonfly/gnu/usr.bin/rcs/lib/ |
| HD | rcsfcmp.c | 162 register int xc, uc; local 186 Igeteof_(ufp, uc, ueof=true;) 189 if (xc != uc) 196 uc = 0; /* Keep lint happy. */ 204 Igeteof_(ufp, uc, ueof=true;) 212 Igeteof_(ufp, uc, ueof=true;) 215 if (xc != uc) 229 (xc==KDELIM || xc==VDELIM) && (uc==KDELIM || uc==VDELIM) && 237 if (xc != uc) { 239 uc = discardkeyval(uc, ufp); [all …]
|
| /dragonfly/lib/libc/rpc/ |
| HD | svc_dg.c | 384 struct cl_cache *uc; in svc_dg_enablecache() local 392 uc = ALLOC(struct cl_cache, 1); in svc_dg_enablecache() 393 if (uc == NULL) { in svc_dg_enablecache() 398 uc->uc_size = size; in svc_dg_enablecache() 399 uc->uc_nextvictim = 0; in svc_dg_enablecache() 400 uc->uc_entries = ALLOC(cache_ptr, size * SPARSENESS); in svc_dg_enablecache() 401 if (uc->uc_entries == NULL) { in svc_dg_enablecache() 403 FREE(uc, struct cl_cache, 1); in svc_dg_enablecache() 407 MEMZERO(uc->uc_entries, cache_ptr, size * SPARSENESS); in svc_dg_enablecache() 408 uc->uc_fifo = ALLOC(cache_ptr, size); in svc_dg_enablecache() [all …]
|
| /dragonfly/contrib/grep/lib/ |
| HD | localeinfo.c | 98 unsigned char uc = i; in init_localeinfo() local 102 localeinfo->sbclen[uc] = len <= 1 ? 1 : - (int) - len; in init_localeinfo() 103 localeinfo->sbctowc[uc] = len <= 1 ? wc : WEOF; in init_localeinfo() 138 wint_t uc = towupper (c); in case_folded_counterparts() local 139 wint_t lc = towlower (uc); in case_folded_counterparts() 140 if (uc != c) in case_folded_counterparts() 141 folded[n++] = uc; in case_folded_counterparts() 142 if (lc != uc && lc != c && towupper (lc) == uc) in case_folded_counterparts() 147 if (li != lc && li != uc && li != c && towupper (li) == uc) in case_folded_counterparts()
|
| /dragonfly/contrib/libarchive/libarchive/ |
| HD | archive_string_composition.h | 987 #define IS_DECOMPOSABLE_BLOCK(uc) \ argument 988 (((uc)>>8) <= 0x1D2 && u_decomposable_blocks[(uc)>>8]) 1008 #define CCC(uc) \ argument 1009 (((uc) > 0x1D244)?0:\ 1010 ccc_val[ccc_val_index[ccc_index[(uc)>>8]][((uc)>>4)&0x0F]][(uc)&0x0F])
|
| HD | archive_string.c | 131 #define IS_HIGH_SURROGATE_LA(uc) ((uc) >= 0xD800 && (uc) <= 0xDBFF) argument 132 #define IS_LOW_SURROGATE_LA(uc) ((uc) >= 0xDC00 && (uc) <= 0xDFFF) argument 133 #define IS_SURROGATE_PAIR_LA(uc) ((uc) >= 0xD800 && (uc) <= 0xDFFF) argument 2430 combine_surrogate_pair(uint32_t uc, uint32_t uc2) in combine_surrogate_pair() argument 2432 uc -= 0xD800; in combine_surrogate_pair() 2433 uc *= 0x400; in combine_surrogate_pair() 2434 uc += uc2 - 0xDC00; in combine_surrogate_pair() 2435 uc += 0x10000; in combine_surrogate_pair() 2436 return (uc); in combine_surrogate_pair() 2488 unicode_to_utf8(char *p, size_t remaining, uint32_t uc) in unicode_to_utf8() argument [all …]
|
| /dragonfly/gnu/usr.bin/grep/libgreputils/ |
| HD | unistr.h | 309 u8_uctomb_aux (uint8_t *s, ucs4_t uc, int n); 312 u8_uctomb (uint8_t *s, ucs4_t uc, int n); 315 u8_uctomb (uint8_t *s, ucs4_t uc, int n) in u8_uctomb() argument 317 if (uc < 0x80 && n > 0) in u8_uctomb() 319 s[0] = uc; in u8_uctomb() 323 return u8_uctomb_aux (s, uc, n); in u8_uctomb() 331 u16_uctomb_aux (uint16_t *s, ucs4_t uc, int n); 334 u16_uctomb (uint16_t *s, ucs4_t uc, int n); 337 u16_uctomb (uint16_t *s, ucs4_t uc, int n) in u16_uctomb() argument 339 if (uc < 0xd800 && n > 0) in u16_uctomb() [all …]
|
| /dragonfly/contrib/pam_passwdqc/ |
| HD | passwdqc_filter.h | 75 unsigned char uc[16]; member 108 i = (uint32_t)h->uc[0] << 24; in passwdqc_filter_h2i() 109 i |= (uint32_t)h->uc[1] << 16; in passwdqc_filter_h2i() 110 i |= (uint32_t)h->uc[2] << 8; in passwdqc_filter_h2i() 111 i |= (uint32_t)h->uc[3]; in passwdqc_filter_h2i() 123 f = (uint64_t)h->uc[8]; in passwdqc_filter_h2f() 124 f |= (uint64_t)h->uc[9] << 8; in passwdqc_filter_h2f() 125 f |= (uint64_t)h->uc[10] << 16; in passwdqc_filter_h2f() 126 f |= (uint64_t)h->uc[11] << 24; in passwdqc_filter_h2f() 127 f |= (uint64_t)h->uc[12] << 32; in passwdqc_filter_h2f() [all …]
|
| /dragonfly/contrib/tcsh-6/ |
| HD | ed.init.c | 56 #define uc unsigned char macro 59 (uc)CINTR, (uc)CQUIT, (uc)CERASE, (uc)CKILL, 60 (uc)CEOF, (uc)CEOL, (uc)CEOL2, (uc)CSWTCH, 61 (uc)CDSWTCH, (uc)CERASE2, (uc)CSTART, (uc)CSTOP, 62 (uc)CWERASE, (uc)CSUSP, (uc)CDSUSP, (uc)CREPRINT, 63 (uc)CDISCARD, (uc)CLNEXT, (uc)CSTATUS, (uc)CPAGE, 64 (uc)CPGOFF, (uc)CKILL2, (uc)CBRK, (uc)CMIN, 65 (uc)CTIME, (uc)CCHECKPT
|
| /dragonfly/contrib/gcc-4.7/gcc/ |
| HD | fp-test.c | 69 volatile unsigned char uc; variable 114 uc = f1; in main() 125 f1 = uc; in main() 160 uc = d1; in main() 171 d1 = uc; in main() 206 uc = D1; in main() 217 D1 = uc; in main()
|
| /dragonfly/contrib/dialog/ |
| HD | trace.c | 133 const wchar_t *uc; in dlg_trace_win() local 136 || (uc = wunctrl((&cch))) == 0 in dlg_trace_win() 137 || uc[1] != 0 in dlg_trace_win() 138 || wcwidth(uc[0]) <= 0) { in dlg_trace_win() 143 const wchar_t *ucp = uc; in dlg_trace_win() 147 k += wcwidth(uc[0]) - 1; in dlg_trace_win()
|
| /dragonfly/tools/tools/locale/tools/ |
| HD | charmaps.pm | 98 my $uc = $attrs{unicode}; 99 $d{T}{$e}{$k}{unicode} = $uc; 103 my $uc = $attrs{ucc}; 104 $d{T}{$e}{$k}{ucc} = $uc;
|
| /dragonfly/contrib/tre/lib/ |
| HD | tre-match-utils.h | 403 tre_cint_t uc, lc; in tre_bracket_match() local 413 uc = tre_toupper_l(wc, tnfa->loc); in tre_bracket_match() 417 uc = wc; in tre_bracket_match() 432 match = (b->value == uc || b->value == lc); in tre_bracket_match() 451 ue = __collate_equiv_value(tnfa->loc, &uc, 1); in tre_bracket_match() 471 match = (tre_isctype_l(uc, b->value, tnfa->loc) || in tre_bracket_match() 481 ue = __collate_equiv_value(tnfa->loc, &uc, 1); in tre_bracket_match()
|
| /dragonfly/contrib/gdb-7/readline/ |
| HD | rltty.c | 837 unsigned char uc; local 839 uc = tiop->c_cc[sc]; 840 if (uc != (unsigned char)_POSIX_VDISABLE && kmap[uc].type == ISFUNC) 841 kmap[uc].function = func; 845 #define RESET_SPECIAL(uc) \ argument 846 if (uc != (unsigned char)_POSIX_VDISABLE && kmap[uc].type == ISFUNC) \ 847 kmap[uc].function = rl_insert;
|