/external/flac/src/share/utf8/ |
D | charset_test.c | 30 int wc; in test_any() local 47 wc = 'x'; in test_any() 48 assert(charset_mbtowc(charset, &wc, "a", 0) == 0 && wc == 'x'); in test_any() 49 assert(charset_mbtowc(charset, &wc, "", 1) == 0 && wc == 0); in test_any() 50 assert(charset_mbtowc(charset, &wc, "b", 1) == 1 && wc == 'b'); in test_any() 51 assert(charset_mbtowc(charset, &wc, "", 2) == 0 && wc == 0); in test_any() 52 assert(charset_mbtowc(charset, &wc, "c", 2) == 1 && wc == 'c'); in test_any() 68 int wc; in test_utf8() local 75 wc = 0; in test_utf8() 76 assert(charset_mbtowc(charset, &wc, "\177", 1) == 1 && wc == 127); in test_utf8() [all …]
|
D | charset.c | 82 int wc, i, k; in utf8_mbtowc() local 117 wc = *s++ & ((1 << (7 - k)) - 1); in utf8_mbtowc() 121 wc = (wc << 6) | (*s++ & 0x3f); in utf8_mbtowc() 123 if (wc < (1 << (5 * k - 4))) in utf8_mbtowc() 126 *pwc = wc; in utf8_mbtowc() 132 uint32_t wc = wc1; in utf8_wctomb() local 136 if (wc < (1u << 7)) { in utf8_wctomb() 137 *s++ = wc; in utf8_wctomb() 140 else if (wc < (1u << 11)) { in utf8_wctomb() 141 *s++ = 0xc0 | (wc >> 6); in utf8_wctomb() [all …]
|
/external/mesa3d/src/glx/windows/ |
D | windowsgl.c | 79 WNDCLASSEX wc; in windows_create_context() local 80 wc.cbSize = sizeof(WNDCLASSEX); in windows_create_context() 81 wc.style = CS_HREDRAW | CS_VREDRAW; in windows_create_context() 82 wc.lpfnWndProc = DefWindowProc; in windows_create_context() 83 wc.cbClsExtra = 0; in windows_create_context() 84 wc.cbWndExtra = 0; in windows_create_context() 85 wc.hInstance = GetModuleHandle(NULL); in windows_create_context() 86 wc.hIcon = 0; in windows_create_context() 87 wc.hCursor = 0; in windows_create_context() 88 wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH); in windows_create_context() [all …]
|
/external/lzma/CPP/Windows/Control/ |
D | Window2.cpp | 53 WNDCLASS wc; in CreateEx() local 54 if (!::GetClassInfo(instance, className, &wc)) in CreateEx() 56 // wc.style = CS_HREDRAW | CS_VREDRAW; in CreateEx() 57 wc.style = 0; in CreateEx() 58 wc.lpfnWndProc = WindowProcedure; in CreateEx() 59 wc.cbClsExtra = 0; in CreateEx() 60 wc.cbWndExtra = 0; in CreateEx() 61 wc.hInstance = instance; in CreateEx() 62 wc.hIcon = NULL; in CreateEx() 63 wc.hCursor = LoadCursor(NULL, IDC_ARROW); in CreateEx() [all …]
|
/external/libcxx/include/support/ibm/ |
D | xlocale.h | 89 int iswalnum_l(wchar_t wc, locale_t locale) in iswalnum_l() argument 91 return __xiswalnum(locale, wc); in iswalnum_l() 95 int iswalpha_l(wchar_t wc, locale_t locale) in iswalpha_l() argument 97 return __xiswalpha(locale, wc); in iswalpha_l() 101 int iswblank_l(wchar_t wc, locale_t locale) in iswblank_l() argument 103 return __xiswblank(locale, wc); in iswblank_l() 107 int iswcntrl_l(wchar_t wc, locale_t locale) in iswcntrl_l() argument 109 return __xiswcntrl(locale, wc); in iswcntrl_l() 113 int iswdigit_l(wchar_t wc, locale_t locale) in iswdigit_l() argument 115 return __xiswdigit(locale, wc); in iswdigit_l() [all …]
|
/external/musl/src/multibyte/ |
D | wcrtomb.c | 6 size_t wcrtomb(char *restrict s, wchar_t wc, mbstate_t *restrict st) in wcrtomb() argument 9 if ((unsigned)wc < 0x80) { in wcrtomb() 10 *s = wc; in wcrtomb() 13 if (!IS_CODEUNIT(wc)) { in wcrtomb() 17 *s = wc; in wcrtomb() 19 } else if ((unsigned)wc < 0x800) { in wcrtomb() 20 *s++ = 0xc0 | (wc>>6); in wcrtomb() 21 *s = 0x80 | (wc&0x3f); in wcrtomb() 23 } else if ((unsigned)wc < 0xd800 || (unsigned)wc-0xe000 < 0x2000) { in wcrtomb() 24 *s++ = 0xe0 | (wc>>12); in wcrtomb() [all …]
|
D | mbtowc.c | 6 int mbtowc(wchar_t *restrict wc, const char *restrict src, size_t n) in mbtowc() argument 14 if (!wc) wc = &dummy; in mbtowc() 16 if (*s < 0x80) return !!(*wc = *s); in mbtowc() 17 if (MB_CUR_MAX==1) return (*wc = CODEUNIT(*s)), 1; in mbtowc() 29 *wc = c; in mbtowc() 36 *wc = c; in mbtowc() 41 *wc = c<<6 | *s++-0x80; in mbtowc()
|
/external/clang/test/CodeGen/ |
D | ppc64-inline-asm.c | 5 asm("crand %0, %1, %2" : "=wc"(o) : "wc"(b1), "wc"(b2) : ); in test_wc_i1() 8 // CHECK: call i8 asm "crand $0, $1, $2", "=^wc,^wc,^wc"(i1 %b1, i1 %b2) in test_wc_i1() 13 asm("crand %0, %1, %2" : "=wc"(o) : "wc"(b1), "wc"(b2) : ); in test_wc_i32() 16 // CHECK: call i32 asm "crand $0, $1, $2", "=^wc,^wc,^wc"(i32 %b1, i32 %b2) in test_wc_i32() 21 asm("crand %0, %1, %2" : "=wc"(o) : "wc"(b1), "wc"(b2) : ); in test_wc_i8() 24 // CHECK: call i8 asm "crand $0, $1, $2", "=^wc,^wc,^wc"(i8 %b1, i8 %b2) in test_wc_i8()
|
/external/musl/src/ctype/ |
D | wcwidth.c | 11 int wcwidth(wchar_t wc) in wcwidth() argument 13 if (wc < 0xffU) in wcwidth() 14 return (wc+1 & 0x7f) >= 0x21 ? 1 : wc ? -1 : 0; in wcwidth() 15 if ((wc & 0xfffeffffU) < 0xfffe) { in wcwidth() 16 if ((table[table[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1) in wcwidth() 18 if ((wtable[wtable[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1) in wcwidth() 22 if ((wc & 0xfffe) == 0xfffe) in wcwidth() 24 if (wc-0x20000U < 0x20000) in wcwidth() 26 if (wc == 0xe0001 || wc-0xe0020U < 0x5f || wc-0xe0100U < 0xef) in wcwidth()
|
D | iswctype.c | 17 int iswctype(wint_t wc, wctype_t type) in iswctype() argument 21 return iswalnum(wc); in iswctype() 23 return iswalpha(wc); in iswctype() 25 return iswblank(wc); in iswctype() 27 return iswcntrl(wc); in iswctype() 29 return iswdigit(wc); in iswctype() 31 return iswgraph(wc); in iswctype() 33 return iswlower(wc); in iswctype() 35 return iswprint(wc); in iswctype() 37 return iswpunct(wc); in iswctype() [all …]
|
D | iswprint.c | 10 int iswprint(wint_t wc) in iswprint() argument 12 if (wc < 0xffU) in iswprint() 13 return (wc+1 & 0x7f) >= 0x21; in iswprint() 14 if (wc < 0x2028U || wc-0x202aU < 0xd800-0x202a || wc-0xe000U < 0xfff9-0xe000) in iswprint() 16 if (wc-0xfffcU > 0x10ffff-0xfffc || (wc&0xfffe)==0xfffe) in iswprint()
|
/external/curl/lib/ |
D | wildcard.c | 41 CURLcode Curl_wildcard_init(struct WildcardData *wc) in Curl_wildcard_init() argument 43 Curl_llist_init(&wc->filelist, fileinfo_dtor); in Curl_wildcard_init() 44 wc->state = CURLWC_INIT; in Curl_wildcard_init() 49 void Curl_wildcard_dtor(struct WildcardData *wc) in Curl_wildcard_dtor() argument 51 if(!wc) in Curl_wildcard_dtor() 54 if(wc->dtor) { in Curl_wildcard_dtor() 55 wc->dtor(wc->protdata); in Curl_wildcard_dtor() 56 wc->dtor = ZERO_NULL; in Curl_wildcard_dtor() 57 wc->protdata = NULL; in Curl_wildcard_dtor() 59 DEBUGASSERT(wc->protdata == NULL); in Curl_wildcard_dtor() [all …]
|
/external/toybox/tests/ |
D | wc.test | 14 testing "wc" "wc >/dev/null && echo yes" "yes\n" "" "" 15 testing "empty file" "wc" " 0 0 0\n" "" "" 16 testing "standard input" "wc" " 1 3 5\n" "" "a b\nc" 17 testing "standard input -c" "wc -c" "5\n" "" "a b\nc" 18 testing "standard input -cl" "wc -cl" " 1 5\n" "" "a b\nc" 19 testing "-c" "wc -c file1" "26 file1\n" "" "" 20 testing "-l" "wc -l file1" "4 file1\n" "" "" 21 testing "-w" "wc -w file1" "5 file1\n" "" "" 22 testing "one file" "wc file1" "4 5 26 file1\n" "" "" 23 testing "multiple files" "wc input - file1" \ [all …]
|
D | ifconfig.test | 6 # Commands used: grep, grep -i, ip link, ip tuntap, wc -l 45 "ifconfig dummy0 down && ifconfig | grep dummy | wc -l" \ 51 "ifconfig dummy0 up && ifconfig dummy0 | grep dummy | wc -l" \ 58 "ifconfig dummy0 10.240.240.240 && ifconfig dummy0 | grep 10\.240\.240\.240 | wc -l" \ 65 "ifconfig dummy0 netmask 255.255.240.0 && ifconfig dummy0 | grep 255\.255\.240\.0 | wc -l" \ 72 "ifconfig dummy0 broadcast 10.240.240.255 && ifconfig dummy0 | grep 10\.240\.240\.255 | wc -l" \ 79 "ifconfig dummy0 default && ifconfig dummy0 | grep 10\.240\.240\.240 | wc -l" \ 86 "ifconfig dummy0 mtu 1269 && ifconfig dummy0 | grep 1269 | wc -l" \ 99 "ifconfig dummy0 mtu 2000 && ifconfig dummy0 | grep 2000 | wc -l" \ 106 "ifconfig dummy0 add ::2/126 && ifconfig dummy0 | grep \:\:2/126 | wc -l" \ [all …]
|
/external/libcxx/include/ |
D | wctype.h | 27 int iswalnum(wint_t wc); 28 int iswalpha(wint_t wc); 29 int iswblank(wint_t wc); // C99 30 int iswcntrl(wint_t wc); 31 int iswdigit(wint_t wc); 32 int iswgraph(wint_t wc); 33 int iswlower(wint_t wc); 34 int iswprint(wint_t wc); 35 int iswpunct(wint_t wc); 36 int iswspace(wint_t wc); [all …]
|
D | cwctype | 30 int iswalnum(wint_t wc); 31 int iswalpha(wint_t wc); 32 int iswblank(wint_t wc); // C99 33 int iswcntrl(wint_t wc); 34 int iswdigit(wint_t wc); 35 int iswgraph(wint_t wc); 36 int iswlower(wint_t wc); 37 int iswprint(wint_t wc); 38 int iswpunct(wint_t wc); 39 int iswspace(wint_t wc); [all …]
|
/external/toybox/lib/ |
D | utf8.c | 7 int (*escout)(FILE *out, int cols, int wc)) in crunch_str() argument 11 unsigned wc; in crunch_str() local 14 if ((bytes = utf8towc(&wc, end, 4))>0 && (col = wcwidth(wc))>=0) { in crunch_str() 15 if (!escmore || wc>255 || !strchr(escmore, wc)) { in crunch_str() 25 wc = *end; in crunch_str() 30 if ((col = escout(out, col, wc))<0) break; in crunch_str() 40 int crunch_escape(FILE *out, int cols, int wc) in crunch_escape() argument 45 if (wc<' ') rc = sprintf(buf, "^%c", '@'+wc); in crunch_escape() 46 else if (wc<256) rc = sprintf(buf, "<%02X>", wc); in crunch_escape() 47 else rc = sprintf(buf, "U+%04X", wc); in crunch_escape() [all …]
|
/external/mesa3d/src/gallium/targets/graw-gdi/ |
D | graw_gdi.c | 69 WNDCLASSEX wc; in graw_create_window_and_screen() local 86 memset(&wc, 0, sizeof wc); in graw_create_window_and_screen() 87 wc.cbSize = sizeof wc; in graw_create_window_and_screen() 88 wc.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW; in graw_create_window_and_screen() 89 wc.lpfnWndProc = window_proc; in graw_create_window_and_screen() 90 wc.lpszClassName = TEXT("graw-gdi"); in graw_create_window_and_screen() 91 wc.hInstance = GetModuleHandle(NULL); in graw_create_window_and_screen() 92 wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); in graw_create_window_and_screen() 93 wc.hCursor = LoadCursor(NULL, IDC_ARROW); in graw_create_window_and_screen() 94 wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1); in graw_create_window_and_screen() [all …]
|
/external/compiler-rt/lib/tsan/ |
D | analyze_libtsan.sh | 40 tot=$(wc -l < $file) 42 rsp=$(grep '(%rsp)' $file | wc -l) 43 push=$(grep 'push' $file | wc -l) 44 pop=$(grep 'pop' $file | wc -l) 45 call=$(grep 'call' $file | wc -l) 46 load=$(egrep 'mov .*\,.*\(.*\)|cmp .*\,.*\(.*\)' $file | wc -l) 47 store=$(egrep 'mov .*\(.*\),' $file | wc -l) 48 mov=$(grep 'mov' $file | wc -l) 49 lea=$(grep 'lea' $file | wc -l) 50 sh=$(grep 'shr\|shl' $file | wc -l) [all …]
|
/external/pdfium/third_party/libtiff/ |
D | tif_predict.c | 340 tmsize_t wc = cc / 2; in swabHorAcc16() local 342 TIFFSwabArrayOfShort(wp, wc); in swabHorAcc16() 352 tmsize_t wc = cc / 2; in horAcc16() local 361 if (wc > stride) { in horAcc16() 362 wc -= stride; in horAcc16() 365 wc -= stride; in horAcc16() 366 } while (wc > 0); in horAcc16() 375 tmsize_t wc = cc / 4; in swabHorAcc32() local 377 TIFFSwabArrayOfLong(wp, wc); in swabHorAcc32() 387 tmsize_t wc = cc / 4; in horAcc32() local [all …]
|
/external/f2fs-tools/lib/ |
D | libf2fs.c | 62 static const char *utf8_to_wchar(const char *input, wchar_t *wc, in utf8_to_wchar() argument 66 *wc = (wchar_t) input[0]; in utf8_to_wchar() 70 *wc = (((wchar_t) input[0] & 0x1f) << 6) | in utf8_to_wchar() 75 *wc = (((wchar_t) input[0] & 0x0f) << 12) | in utf8_to_wchar() 81 *wc = (((wchar_t) input[0] & 0x07) << 18) | in utf8_to_wchar() 88 *wc = (((wchar_t) input[0] & 0x03) << 24) | in utf8_to_wchar() 96 *wc = (((wchar_t) input[0] & 0x01) << 30) | in utf8_to_wchar() 107 static u_int16_t *wchar_to_utf16(u_int16_t *output, wchar_t wc, size_t outsize) in wchar_to_utf16() argument 109 if (wc <= 0xffff) { in wchar_to_utf16() 112 output[0] = cpu_to_le16(wc); in wchar_to_utf16() [all …]
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_exec_reloc.c | 100 enum mode { MEM, CPU, WC, GTT }; enumerator 144 case WC: in from_mmap() 371 char *wc; in basic_reloc() local 374 wc = gem_mmap__cpu(fd, obj.handle, 0, OBJSZ, PROT_WRITE); in basic_reloc() 376 wc = gem_mmap__gtt(fd, obj.handle, OBJSZ, PROT_WRITE); in basic_reloc() 378 wc = gem_mmap__wc(fd, obj.handle, 0, OBJSZ, PROT_WRITE); in basic_reloc() 383 memcpy(wc + reloc_offset, &offset, sizeof(offset)); in basic_reloc() 384 munmap(wc, OBJSZ); in basic_reloc() 402 char *wc; in basic_reloc() local 405 wc = gem_mmap__cpu(fd, obj.handle, 0, OBJSZ, PROT_READ); in basic_reloc() [all …]
|
/external/toybox/toys/other/ |
D | ascii.c | 42 static void codepoint(unsigned wc) in codepoint() argument 44 char *s = toybuf + sprintf(toybuf, "U+%04X : ", wc), *ss; in codepoint() 47 if (wc>31 && wc!=127) { in codepoint() 48 s += n = wctoutf8(ss = s, wc); in codepoint() 50 } else s = memcpy(s, (wc==127) ? "DEL" : low+wc*3, 3)+3; in codepoint() 59 unsigned wc; in unicode_main() local 66 else for (s = *args; (n = utf8towc(&wc, s, 4)) > 0; s += n) codepoint(wc); in unicode_main()
|
/external/skia/tools/gpu/gl/win/ |
D | CreatePlatformGLTestContext_win.cpp | 65 WNDCLASS wc; in WinGLTestContext() local 66 wc.cbClsExtra = 0; in WinGLTestContext() 67 wc.cbWndExtra = 0; in WinGLTestContext() 68 wc.hbrBackground = nullptr; in WinGLTestContext() 69 wc.hCursor = LoadCursor(nullptr, IDC_ARROW); in WinGLTestContext() 70 wc.hIcon = LoadIcon(nullptr, IDI_APPLICATION); in WinGLTestContext() 71 wc.hInstance = hInstance; in WinGLTestContext() 72 wc.lpfnWndProc = (WNDPROC) DefWindowProc; in WinGLTestContext() 73 wc.lpszClassName = TEXT("Griffin"); in WinGLTestContext() 74 wc.lpszMenuName = nullptr; in WinGLTestContext() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | GuardUtils.cpp | 73 auto *WC = B.CreateIntrinsic(Intrinsic::experimental_widenable_condition, in makeGuardControlFlowExplicit() local 75 CheckBI->setCondition(B.CreateAnd(CheckBI->getCondition(), WC, in makeGuardControlFlowExplicit() 90 Use *C, *WC; in widenWidenableBranch() local 92 parseWidenableBranch(WidenableBR, C, WC, IfTrueBB, IfFalseBB); in widenWidenableBranch() 94 // br (wc()), ... form in widenWidenableBranch() 96 WidenableBR->setCondition(B.CreateAnd(NewCond, WC->get())); in widenWidenableBranch() 98 // br (wc & C), ... form in widenWidenableBranch() 111 Use *C, *WC; in setWidenableBranchCond() local 113 parseWidenableBranch(WidenableBR, C, WC, IfTrueBB, IfFalseBB); in setWidenableBranchCond() 115 // br (wc()), ... form in setWidenableBranchCond() [all …]
|