/third_party/protobuf/src/google/protobuf/util/internal/ |
D | json_escaping.cc | 89 inline bool IsValidCodePoint(uint32 cp) { in IsValidCodePoint() argument 90 return cp <= JsonEscaping::kMaxCodePoint; in IsValidCodePoint() 95 inline uint16 ToLowSurrogate(uint32 cp) { in ToLowSurrogate() argument 96 return (cp & in ToLowSurrogate() 103 inline uint16 ToHighSurrogate(uint32 cp) { in ToHighSurrogate() argument 104 return (cp >> 10) + (JsonEscaping::kMinHighSurrogate - in ToHighSurrogate() 128 bool ReadCodePoint(StringPiece str, int index, uint32* cp, int* num_left, in ReadCodePoint() argument 132 *cp = static_cast<uint8>(str[index++]); in ReadCodePoint() 159 if (*cp <= 0x7f) { in ReadCodePoint() 161 } else if (*cp <= 0xbf) { in ReadCodePoint() [all …]
|
/third_party/parse5/packages/parse5/lib/tokenizer/ |
D | index.ts | 156 function isAsciiDigit(cp: number): boolean { 157 return cp >= $.DIGIT_0 && cp <= $.DIGIT_9; 160 function isAsciiUpper(cp: number): boolean { 161 return cp >= $.LATIN_CAPITAL_A && cp <= $.LATIN_CAPITAL_Z; 164 function isAsciiLower(cp: number): boolean { 165 return cp >= $.LATIN_SMALL_A && cp <= $.LATIN_SMALL_Z; 168 function isAsciiLetter(cp: number): boolean { 169 return isAsciiLower(cp) || isAsciiUpper(cp); 172 function isAsciiAlphaNumeric(cp: number): boolean { 173 return isAsciiLetter(cp) || isAsciiDigit(cp); [all …]
|
D | preprocessor.ts | 72 private _processSurrogate(cp: number): number { 84 return getSurrogatePairCodePoint(cp, nextCp); 97 return cp; 144 const cp = this.html.charCodeAt(this.pos + i) | 0x20; constant 146 if (cp !== pattern.charCodeAt(i)) { 182 let cp = this.html.charCodeAt(this.pos); 185 if (cp === $.CARRIAGE_RETURN) { 193 if (cp === $.LINE_FEED) { 207 if (isSurrogate(cp)) { 208 cp = this._processSurrogate(cp); [all …]
|
/third_party/libunwind/libunwind/src/ |
D | os-linux.h | 43 char *cp = buf, tmp; in unw_ltoa() local 48 *cp++ = '0' + (val % 10); in unw_ltoa() 54 len = cp - buf; in unw_ltoa() 55 --cp; in unw_ltoa() 59 buf[i] = cp[-i]; in unw_ltoa() 60 cp[-i] = tmp; in unw_ltoa() 68 char path[sizeof ("/proc/0123456789/maps")], *cp; in maps_init() local 71 cp = unw_ltoa (path + 6, pid); in maps_init() 72 assert (cp + 6 < path + sizeof (path)); in maps_init() 73 memcpy (cp, "/maps", 6); in maps_init() [all …]
|
/third_party/ffmpeg/libavfilter/ |
D | af_afwtdn.c | 428 ChannelParams *cp; member 571 ChannelParams *cp = &s->cp[ch]; in reallocate_outputs() local 578 av_freep(&cp->subbands_to_free[level]); in reallocate_outputs() 582 cp->subbands_to_free[level] = av_calloc(add + temp_length + 1, sizeof(**out)); in reallocate_outputs() 583 if (!cp->subbands_to_free[level]) in reallocate_outputs() 586 out[level] = cp->subbands_to_free[level] + add; in reallocate_outputs() 596 av_freep(&cp->subbands_to_free[levels]); in reallocate_outputs() 599 cp->subbands_to_free[levels] = av_calloc(temp_length + 1, sizeof(**out)); in reallocate_outputs() 600 if (!cp->subbands_to_free[levels]) in reallocate_outputs() 603 out[levels] = cp->subbands_to_free[levels]; in reallocate_outputs() [all …]
|
/third_party/icu/icu4c/source/data/unidata/ |
D | ppucd.txt | 1275 cp;0000;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=NULL,abbreviation=NUL 1276 cp;0001;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=START OF HEADING,abbreviation=SOH 1277 cp;0002;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=START OF TEXT,abbreviation=STX 1278 cp;0003;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=END OF TEXT,abbreviation=ETX 1279 cp;0004;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=END OF TRANSMISSION,abbreviation=EOT 1280 cp;0005;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=ENQUIRY,abbreviation=ENQ 1281 cp;0006;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=ACKNOWLEDGE,abbreviation=ACK 1282 cp;0007;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=ALERT,abbreviation=BEL 1283 cp;0008;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=BACKSPACE,abbreviation=BS 1284 cp;0009;bc=S;ea=N;GCB=CN;-Gr_Base;lb=BA;Name_Alias=control=CHARACTER TABULATION,control=HORIZONTAL … [all …]
|
/third_party/skia/third_party/externals/icu/source/data/unidata/ |
D | ppucd.txt | 1238 cp;0000;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=NULL,abbreviation=NUL 1239 cp;0001;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=START OF HEADING,abbreviation=SOH 1240 cp;0002;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=START OF TEXT,abbreviation=STX 1241 cp;0003;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=END OF TEXT,abbreviation=ETX 1242 cp;0004;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=END OF TRANSMISSION,abbreviation=EOT 1243 cp;0005;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=ENQUIRY,abbreviation=ENQ 1244 cp;0006;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=ACKNOWLEDGE,abbreviation=ACK 1245 cp;0007;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=ALERT,abbreviation=BEL 1246 cp;0008;bc=BN;ea=N;GCB=CN;-Gr_Base;lb=CM;Name_Alias=control=BACKSPACE,abbreviation=BS 1247 cp;0009;bc=S;ea=N;GCB=CN;-Gr_Base;lb=BA;Name_Alias=control=CHARACTER TABULATION,control=HORIZONTAL … [all …]
|
/third_party/skia/third_party/externals/harfbuzz/test/api/ |
D | test-collect-unicodes.c | 35 hb_codepoint_t cp; in test_collect_unicodes_format4() local 39 cp = HB_SET_VALUE_INVALID; in test_collect_unicodes_format4() 40 g_assert (hb_set_next (codepoints, &cp)); in test_collect_unicodes_format4() 41 g_assert_cmpuint (0x61, ==, cp); in test_collect_unicodes_format4() 42 g_assert (hb_set_next (codepoints, &cp)); in test_collect_unicodes_format4() 43 g_assert_cmpuint (0x62, ==, cp); in test_collect_unicodes_format4() 44 g_assert (hb_set_next (codepoints, &cp)); in test_collect_unicodes_format4() 45 g_assert_cmpuint (0x63, ==, cp); in test_collect_unicodes_format4() 46 g_assert (!hb_set_next (codepoints, &cp)); in test_collect_unicodes_format4() 57 hb_codepoint_t cp; in test_collect_unicodes_format12_notdef() local [all …]
|
D | test-ot-face.c | 37 test_font (hb_font_t *font, hb_codepoint_t cp) in test_font() argument 53 hb_face_collect_variation_unicodes (face, cp, set); in test_font() 55 hb_font_get_nominal_glyph (font, cp, &g); in test_font() 56 hb_font_get_variation_glyph (font, cp, cp, &g); in test_font() 57 hb_font_get_glyph_h_advance (font, cp); in test_font() 58 hb_font_get_glyph_v_advance (font, cp); in test_font() 59 hb_font_get_glyph_h_origin (font, cp, &x, &y); in test_font() 60 hb_font_get_glyph_v_origin (font, cp, &x, &y); in test_font() 61 hb_font_get_glyph_extents (font, cp, &extents); in test_font() 62 hb_font_get_glyph_contour_point (font, cp, 0, &x, &y); in test_font() [all …]
|
/third_party/node/test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/ |
D | iso2022jp-encoder.js | 121 var cp, ptr; 124 if (cps.length == 0) cp = endofstream; 125 else cp = cps.shift(); 126 if (cp == endofstream && encState != "ascii") { 127 cps.unshift(cp); 132 if (cp == endofstream && encState == "ascii") { 138 (cp === 0x0e || cp === 0x0f || cp === 0x1b) 144 if (encState == "ascii" && cp >= 0x00 && cp <= 0x7f) { 145 out += " " + cp.toString(16).toUpperCase(); 150 ((cp >= 0x00 && cp <= 0x7f && cp !== 0x5c && cp !== 0x7e) || [all …]
|
/third_party/python/Modules/_decimal/libmpdec/ |
D | io.c | 464 char *decstring = NULL, *cp = NULL; in _mpd_to_string() local 475 cp = decstring = mpd_alloc(mem, sizeof *decstring); in _mpd_to_string() 476 if (cp == NULL) { in _mpd_to_string() 482 *cp++ = '-'; in _mpd_to_string() 485 *cp++ = ' '; in _mpd_to_string() 488 *cp++ = '+'; in _mpd_to_string() 493 strcpy(cp, "NaN"); in _mpd_to_string() 494 cp += 3; in _mpd_to_string() 497 strcpy(cp, "sNaN"); in _mpd_to_string() 498 cp += 4; in _mpd_to_string() [all …]
|
/third_party/vk-gl-cts/external/amber/src/src/vkscript/ |
D | command_parser_test.cc | 36 CommandParser cp(&script, &pipeline, 1, data); in TEST_F() local 37 Result r = cp.Parse(); in TEST_F() 40 auto& cmds = cp.Commands(); in TEST_F() 74 CommandParser cp(&script, &pipeline, 1, data); in TEST_F() local 75 Result r = cp.Parse(); in TEST_F() 78 auto& cmds = cp.Commands(); in TEST_F() 96 CommandParser cp(&script, &pipeline, 1, data); in TEST_F() local 97 Result r = cp.Parse(); in TEST_F() 100 auto& cmds = cp.Commands(); in TEST_F() 118 CommandParser cp(&script, &pipeline, 1, data); in TEST_F() local [all …]
|
/third_party/musl/scripts/ |
D | porting.sh | 30 cp -rfp ${SRC_DIR}/* ${DST_DIR} 31 cp -rfp ${SRC_DIR}/src/internal/linux/* ${DST_DIR}/src/internal 32 cp -rfp ${SRC_DIR}/src/hook/linux/* ${DST_DIR}/src/hook 33 cp -rfp ${SRC_DIR}/crt/linux/* ${DST_DIR}/crt 34 cp -rfp ${SRC_DIR}/src/linux/arm/linux/* ${DST_DIR}/src/linux/arm 35 cp -rfp ${SRC_DIR}/src/linux/aarch64/linux/* ${DST_DIR}/src/linux/aarch64 36 cp -rfp ${SRC_DIR}/src/linux/x86_64/linux/* ${DST_DIR}/src/linux/x86_64 37 cp -rfp ${SRC_DIR}/src/exit/linux/* ${DST_DIR}/src/exit 38 cp -rfp ${SRC_DIR}/src/fdsan/linux/* ${DST_DIR}/src/fdsan 39 cp -rfp ${SRC_DIR}/src/fortify/linux/* ${DST_DIR}/src/fortify [all …]
|
/third_party/parse5/packages/parse5/lib/common/ |
D | unicode.ts | 55 export function isSurrogate(cp: number): boolean { 56 return cp >= 0xd8_00 && cp <= 0xdf_ff; 59 export function isSurrogatePair(cp: number): boolean { 60 return cp >= 0xdc_00 && cp <= 0xdf_ff; 68 export function isControlCodePoint(cp: number): boolean { 70 …(cp !== 0x20 && cp !== 0x0a && cp !== 0x0d && cp !== 0x09 && cp !== 0x0c && cp >= 0x01 && cp <= 0x… 71 (cp >= 0x7f && cp <= 0x9f) 75 export function isUndefinedCodePoint(cp: number): boolean { 76 return (cp >= 0xfd_d0 && cp <= 0xfd_ef) || UNDEFINED_CODE_POINTS.has(cp);
|
/third_party/curl/lib/ |
D | curl_path.c | 120 const char *cp = *cpp, *end; in Curl_get_pathname() local 128 if(!*cp || !homedir) { in Curl_get_pathname() 134 cp += strspn(cp, WHITESPACE); in Curl_get_pathname() 136 fullPathLength = strlen(cp) + strlen(homedir) + 2; in Curl_get_pathname() 142 if(*cp == '\"' || *cp == '\'') { in Curl_get_pathname() 143 quot = *cp++; in Curl_get_pathname() 146 for(i = j = 0; i <= strlen(cp); i++) { in Curl_get_pathname() 147 if(cp[i] == quot) { /* Found quote */ in Curl_get_pathname() 152 if(cp[i] == '\0') { /* End of string */ in Curl_get_pathname() 155 if(cp[i] == '\\') { /* Escaped characters */ in Curl_get_pathname() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | PatternTokenizer.java | 167 int cp; in quoteLiteral() local 168 for (int i = 0; i < string.length(); i += UTF16.getCharCount(cp)) { in quoteLiteral() 169 cp = UTF16.charAt(string, i); in quoteLiteral() 170 if (escapeCharacters.contains(cp)) { in quoteLiteral() 176 appendEscaped(result, cp); in quoteLiteral() 180 if (needingQuoteCharacters.contains(cp)) { in quoteLiteral() 183 UTF16.append(result, cp); in quoteLiteral() 184 if (usingQuote && cp == SINGLE_QUOTE) { // double it in quoteLiteral() 192 UTF16.append(result, cp); in quoteLiteral() 196 if (cp == SINGLE_QUOTE) { // double it and continue in quoteLiteral() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | PatternTokenizer.java | 169 int cp; in quoteLiteral() local 170 for (int i = 0; i < string.length(); i += UTF16.getCharCount(cp)) { in quoteLiteral() 171 cp = UTF16.charAt(string, i); in quoteLiteral() 172 if (escapeCharacters.contains(cp)) { in quoteLiteral() 178 appendEscaped(result, cp); in quoteLiteral() 182 if (needingQuoteCharacters.contains(cp)) { in quoteLiteral() 185 UTF16.append(result, cp); in quoteLiteral() 186 if (usingQuote && cp == SINGLE_QUOTE) { // double it in quoteLiteral() 194 UTF16.append(result, cp); in quoteLiteral() 198 if (cp == SINGLE_QUOTE) { // double it and continue in quoteLiteral() [all …]
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
D | libcpuset.c | 613 struct cpuset *cp = NULL; in cpuset_alloc() local 616 if ((cp = calloc(1, sizeof(struct cpuset))) == NULL) in cpuset_alloc() 620 if ((cp->cpus = bitmask_alloc(nbits)) == NULL) in cpuset_alloc() 624 if ((cp->mems = bitmask_alloc(nbits)) == NULL) in cpuset_alloc() 627 return cp; in cpuset_alloc() 629 if (cp && cp->cpus) in cpuset_alloc() 630 bitmask_free(cp->cpus); in cpuset_alloc() 631 if (cp && cp->mems) in cpuset_alloc() 632 bitmask_free(cp->mems); in cpuset_alloc() 633 free(cp); in cpuset_alloc() [all …]
|
D | cpuset.h | 186 void cpuset_free(struct cpuset *cp); 191 int cpuset_setcpus(struct cpuset *cp, const struct bitmask *cpus); 192 int cpuset_setmems(struct cpuset *cp, const struct bitmask *mems); 193 int cpuset_set_iopt(struct cpuset *cp, const char *optionname, int value); 194 int cpuset_set_sopt(struct cpuset *cp, const char *optionname, 201 int cpuset_getcpus(const struct cpuset *cp, struct bitmask *cpus); 202 int cpuset_getmems(const struct cpuset *cp, struct bitmask *mems); 203 int cpuset_cpus_weight(const struct cpuset *cp); 204 int cpuset_mems_weight(const struct cpuset *cp); 205 int cpuset_get_iopt(const struct cpuset *cp, const char *optionname); [all …]
|
/third_party/ltp/testcases/kernel/fs/doio/ |
D | pattern.c | 43 char *cp; in pattern_check() local 48 cp = buf; in pattern_check() 60 return (memcmp(cp, pat + patshift, nleft) ? -1 : 0); in pattern_check() 62 if (memcmp(cp, pat + patshift, nb)) in pattern_check() 66 cp += nb; in pattern_check() 72 return (memcmp(cp, pat, nleft) ? -1 : 0); in pattern_check() 74 if (memcmp(cp, pat, nb)) in pattern_check() 78 cp += nb; in pattern_check() 87 ncmp = cp - buf; in pattern_check() 90 if (memcmp(buf, cp, nb)) in pattern_check() [all …]
|
/third_party/node/test/parallel/ |
D | test-child-process-spawn-controller.js | 14 const cp = spawn(process.execPath, [aliveScript], { constant 18 cp.on('exit', common.mustCall((code, killSignal) => { 23 cp.on('error', common.mustCall((e) => { 34 const cp = spawn(process.execPath, [aliveScript], { constant 38 cp.on('exit', common.mustCall((code, killSignal) => { 43 cp.on('error', common.mustCall((e) => { 55 const cp = spawn(process.execPath, [aliveScript], { constant 59 cp.on('exit', common.mustCall((code, killSignal) => { 64 cp.on('error', common.mustCall((e) => { 76 const cp = spawn(process.execPath, [aliveScript], { constant [all …]
|
D | test-child-process-fork-abort-signal.js | 12 const cp = fork(fixtures.path('child-process-stay-alive-forever.js'), { constant 15 cp.on('exit', mustCall((code, killSignal) => { 19 cp.on('error', mustCall((err) => { 29 const cp = fork(fixtures.path('child-process-stay-alive-forever.js'), { constant 32 cp.on('exit', mustCall((code, killSignal) => { 36 cp.on('error', mustCall((err) => { 47 const cp = fork(fixtures.path('child-process-stay-alive-forever.js'), { constant 50 cp.on('exit', mustCall((code, killSignal) => { 54 cp.on('error', mustCall((err) => { 62 const cp = fork(fixtures.path('child-process-stay-alive-forever.js'), { constant [all …]
|
/third_party/ltp/testcases/kernel/mem/shmt/ |
D | shmt06.c | 67 char *cp = NULL; in main() local 96 cp = shmat(shmid, NULL, 0); in main() 98 if (cp == (char *)-1) { in main() 114 *cp = 'A'; in main() 115 *(cp + 1) = 'B'; in main() 116 *(cp + 2) = 'C'; in main() 132 if (shmdt(cp) < 0) { in main() 147 char *cp; in child() local 159 cp = shmat(shmid, NULL, 0); in child() 161 if (cp == (char *)-1) { in child() [all …]
|
/third_party/libunwind/libunwind/src/mi/ |
D | strerror.c | 33 const char *cp; in unw_strerror() local 37 case UNW_ESUCCESS: cp = "no error"; break; in unw_strerror() 38 case UNW_EUNSPEC: cp = "unspecified (general) error"; break; in unw_strerror() 39 case UNW_ENOMEM: cp = "out of memory"; break; in unw_strerror() 40 case UNW_EBADREG: cp = "bad register number"; break; in unw_strerror() 41 case UNW_EREADONLYREG: cp = "attempt to write read-only register"; break; in unw_strerror() 42 case UNW_ESTOPUNWIND: cp = "stop unwinding"; break; in unw_strerror() 43 case UNW_EINVALIDIP: cp = "invalid IP"; break; in unw_strerror() 44 case UNW_EBADFRAME: cp = "bad frame"; break; in unw_strerror() 45 case UNW_EINVAL: cp = "unsupported operation or bad value"; break; in unw_strerror() [all …]
|
/third_party/skia/modules/canvaskit/ |
D | Makefile | 12 cp ../../out/canvaskit_wasm/canvaskit.js ./build/ 13 cp ../../out/canvaskit_wasm/canvaskit.wasm ./build/ 20 cp ../../out/canvaskit_wasm/canvaskit.js ./build/ 21 cp ../../out/canvaskit_wasm/canvaskit.wasm ./build/ 28 cp ../../out/canvaskit_wasm/canvaskit.js ./build/ 29 cp ../../out/canvaskit_wasm/canvaskit.wasm ./build/ 36 cp ../../out/canvaskit_wasm_debug/canvaskit.js ./build/ 37 cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./build/ 44 cp ../../out/canvaskit_wasm_debug/canvaskit.js ./build/ 45 cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./build/ [all …]
|