/dragonfly/contrib/file/src/ |
H A D | is_json.c | 120 while (uc < ue && json_isspace(*uc)) in json_skip_space() 121 uc++; in json_skip_space() 187 uc = json_skip_space(uc, ue); in json_parse_array() 223 uc = json_skip_space(uc, ue); in json_parse_object() 239 uc = json_skip_space(uc, ue); in json_parse_object() 286 for (; uc < ue; uc++) { in json_parse_number() 295 for (; uc < ue; uc++) { in json_parse_number() 302 if (got && (*uc == 'e' || *uc == 'E')) { in json_parse_number() 307 if (*uc == '+' || *uc == '-') in json_parse_number() 309 for (; uc < ue; uc++) { in json_parse_number() [all …]
|
H A D | 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 …]
|
H A D | 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() 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() 515 if (UCS16_HISURR(uc)) in looks_ucs16() [all …]
|
/dragonfly/contrib/diffutils/lib/uniwidth/ |
H A D | width.c | 424 if (uc > 0 && uc < 0xa0) in uc_width() 439 if (uc >= 0xe0020 ? uc <= 0xe007f : uc == 0xe0001) in uc_width() 447 if (uc >= 0x1100 in uc_width() 449 || (uc >= 0x2329 && uc < 0x232b) /* Angle Brackets */ in uc_width() 450 || (uc >= 0x2e80 && uc < 0xa4d0 /* CJK ... Yi */ in uc_width() 451 && !(uc == 0x303f) && !(uc >= 0x4dc0 && uc < 0x4e00)) in uc_width() 452 || (uc >= 0xac00 && uc < 0xd7a4) /* Hangul Syllables */ in uc_width() 455 || (uc >= 0xfe30 && uc < 0xfe70) /* CJK Compatibility Forms */ in uc_width() 456 || (uc >= 0xff00 && uc < 0xff61) /* Fullwidth Forms */ in uc_width() 457 || (uc >= 0xffe0 && uc < 0xffe7) /* Fullwidth Signs */ in uc_width() [all …]
|
/dragonfly/contrib/grep/lib/uniwidth/ |
H A D | width.c | 424 if (uc > 0 && uc < 0xa0) in uc_width() 439 if (uc >= 0xe0020 ? uc <= 0xe007f : uc == 0xe0001) in uc_width() 447 if (uc >= 0x1100 in uc_width() 449 || (uc >= 0x2329 && uc < 0x232b) /* Angle Brackets */ in uc_width() 450 || (uc >= 0x2e80 && uc < 0xa4d0 /* CJK ... Yi */ in uc_width() 451 && !(uc == 0x303f) && !(uc >= 0x4dc0 && uc < 0x4e00)) in uc_width() 452 || (uc >= 0xac00 && uc < 0xd7a4) /* Hangul Syllables */ in uc_width() 455 || (uc >= 0xfe30 && uc < 0xfe70) /* CJK Compatibility Forms */ in uc_width() 456 || (uc >= 0xff00 && uc < 0xff61) /* Fullwidth Forms */ in uc_width() 457 || (uc >= 0xffe0 && uc < 0xffe7) /* Fullwidth Signs */ in uc_width() [all …]
|
/dragonfly/contrib/diffutils/lib/unistr/ |
H A D | 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 …]
|
H A D | 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/grep/lib/unistr/ |
H A D | 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 …]
|
H A D | 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/ |
H A D | decompress.c | 108 UChar uc; in BZ2_decompress() local 197 GET_UCHAR(BZ_X_MAGIC_1, uc); in BZ2_decompress() 203 GET_UCHAR(BZ_X_MAGIC_3, uc) in BZ2_decompress() 242 GET_UCHAR(BZ_X_BCRC_1, uc); in BZ2_decompress() 244 GET_UCHAR(BZ_X_BCRC_2, uc); in BZ2_decompress() 246 GET_UCHAR(BZ_X_BCRC_3, uc); in BZ2_decompress() 248 GET_UCHAR(BZ_X_BCRC_4, uc); in BZ2_decompress() 269 if (uc == 1) in BZ2_decompress() 295 if (uc == 0) break; in BZ2_decompress() 539 s->cftabCopy[uc]++; in BZ2_decompress() [all …]
|
/dragonfly/tools/regression/bin/sh/expansion/ |
H A D | 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 12 ${SH} -uc 'foo=; echo ${#foo}' >/dev/null || exit 1 22 ${SH} -uc 'echo $!' 2>/dev/null && exit 1 23 ${SH} -uc ':& echo $!' >/dev/null || exit 1 24 ${SH} -uc 'echo $#' >/dev/null || exit 1 25 ${SH} -uc 'echo $1' 2>/dev/null && exit 1 26 ${SH} -uc 'echo $1' ${SH} x >/dev/null || exit 1 27 ${SH} -uc 'echo $2' ${SH} x 2>/dev/null && exit 1 [all …]
|
/dragonfly/lib/libc/gen/ |
H A D | unvis.c | 382 *cp = xtod(uc); in unvis() 401 if (uc == '\n' || uc == '\r') { in unvis() 405 if (isxdigit(uc) && (isdigit(uc) || isupper(uc))) { in unvis() 406 *cp = XTOD(uc); in unvis() 413 if (isxdigit(uc) && (isdigit(uc) || isupper(uc))) { in unvis() 421 switch (uc) { in unvis() 429 *cp = uc; in unvis() 448 if (uc == ';') in unvis() 449 uc = '\0'; in unvis() 461 if (uc != 0) { in unvis() [all …]
|
/dragonfly/contrib/libpcap/ |
H A D | 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/ |
H A D | term.c | 589 uc = *seq; in term_word() 634 uc = 0; in term_word() 664 lsz = uc; in term_word() 666 uc = -1; in term_word() 684 uc = -1; in term_word() 688 uc = *cp; in term_word() 689 if (uc < 0x20 || (uc > 0x7E && uc < 0xA0)) in term_word() 744 if ((uc < 0x20 && uc != 0x09) || in term_word() 745 (uc > 0x7E && uc < 0xA0)) in term_word() 1012 if ((uc < 0x20 && uc != 0x09) || in term_strlen() [all …]
|
/dragonfly/gnu/usr.bin/rcs/lib/ |
H A D | rcsfcmp.c | 162 register int xc, uc; local 189 if (xc != uc) 196 uc = 0; /* Keep lint happy. */ 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); 259 if (xc != uc) 264 Igeteof_(ufp, uc, ueof=true;) [all …]
|
/dragonfly/lib/libc/rpc/ |
H A D | svc_dg.c | 384 struct cl_cache *uc; in svc_dg_enablecache() local 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() 401 if (uc->uc_entries == NULL) { in svc_dg_enablecache() 409 if (uc->uc_fifo == NULL) { in svc_dg_enablecache() 454 victim = uc->uc_fifo[uc->uc_nextvictim]; in cache_set() 493 su->su_xid, uc->uc_prog, uc->uc_vers, in cache_set() 494 uc->uc_proc, uaddr); in cache_set() 514 uc->uc_fifo[uc->uc_nextvictim++] = victim; in cache_set() [all …]
|
/dragonfly/contrib/grep/lib/ |
H A D | 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/ |
H A D | 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])
|
H A D | 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 2566 uc = combine_surrogate_pair(uc, uc2); in utf16_to_unicode() 2583 if (IS_SURROGATE_PAIR_LA(uc) || uc > UNICODE_MAX) { in utf16_to_unicode() 2589 *pwc = uc; in utf16_to_unicode() 3197 if ((uc >= 0x2000 && uc <= 0x2FFF) || in get_nfd() 3198 (uc >= 0xF900 && uc <= 0xFAFF) || in get_nfd() 3199 (uc >= 0x2F800 && uc <= 0x2FAFF)) in get_nfd() 3209 if (uc == 0x1109A || uc == 0x1109C || uc == 0x110AB) in get_nfd() [all …]
|
/dragonfly/gnu/usr.bin/diff/libdiffutils/ |
H A D | unistr.h | 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() 337 u16_uctomb (uint16_t *s, ucs4_t uc, int n) in u16_uctomb() argument 339 if (uc < 0xd800 && n > 0) in u16_uctomb() 341 s[0] = uc; in u16_uctomb() 345 return u16_uctomb_aux (s, uc, n); in u16_uctomb() 356 u32_uctomb (uint32_t *s, ucs4_t uc, int n) in u32_uctomb() argument 358 if (uc < 0xd800 || (uc >= 0xe000 && uc < 0x110000)) in u32_uctomb() [all …]
|
/dragonfly/gnu/usr.bin/grep/libgreputils/ |
H A D | unistr.h | 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() 337 u16_uctomb (uint16_t *s, ucs4_t uc, int n) in u16_uctomb() argument 339 if (uc < 0xd800 && n > 0) in u16_uctomb() 341 s[0] = uc; in u16_uctomb() 345 return u16_uctomb_aux (s, uc, n); in u16_uctomb() 356 u32_uctomb (uint32_t *s, ucs4_t uc, int n) in u32_uctomb() argument 358 if (uc < 0xd800 || (uc >= 0xe000 && uc < 0x110000)) in u32_uctomb() [all …]
|
/dragonfly/contrib/pam_passwdqc/ |
H A D | 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() 275 MD4_Final(dst->uc, &ctx); in passwdqc_filter_md4() [all …]
|
/dragonfly/contrib/tcsh-6/ |
H A D | 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/ |
H A D | 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/ |
H A D | 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()
|