Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 77) sorted by relevance

1234

/PHP-8.4/ext/dom/lexbor/lexbor/encoding/
H A Dencode.c344 if (cp == 0x000E || cp == 0x000F || cp == 0x001B) { in lxb_encoding_encode_iso_2022_jp()
353 if (cp == 0x00A5 || cp == 0x203E) { in lxb_encoding_encode_iso_2022_jp()
382 if (cp == 0x000E || cp == 0x000F || cp == 0x001B) { in lxb_encoding_encode_iso_2022_jp()
439 if (cp == 0x00A5 || cp == 0x203E) { in lxb_encoding_encode_iso_2022_jp()
797 cp = *p; in lxb_encoding_encode_utf_8()
1073 else if (cp >= 0xF780 && cp <= 0xF7FF) { in lxb_encoding_encode_x_user_defined()
1288 if (cp == 0x000E || cp == 0x000F || cp == 0x001B) { in lxb_encoding_encode_iso_2022_jp_single()
1298 if (cp == 0x00A5 || cp == 0x203E) { in lxb_encoding_encode_iso_2022_jp_single()
1325 if (cp == 0x000E || cp == 0x000F || cp == 0x001B) { in lxb_encoding_encode_iso_2022_jp_single()
1384 if (cp == 0x00A5 || cp == 0x203E) { in lxb_encoding_encode_iso_2022_jp_single()
[all …]
H A Dencode.h19 lxb_encoding_encode_default(lxb_encoding_encode_t *ctx,const lxb_codepoint_t **cp,
23 lxb_encoding_encode_auto(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cp,
31 lxb_encoding_encode_big5(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cp,
35 lxb_encoding_encode_euc_jp(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cp,
39 lxb_encoding_encode_euc_kr(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cp,
43 lxb_encoding_encode_gbk(lxb_encoding_encode_t *ctx, const lxb_codepoint_t **cp,
202 const lxb_char_t *end, lxb_codepoint_t cp);
210 const lxb_char_t *end, lxb_codepoint_t cp);
222 const lxb_char_t *end, lxb_codepoint_t cp);
310 const lxb_char_t *end, lxb_codepoint_t cp);
[all …]
/PHP-8.4/ext/standard/
H A Ddns.c505 snprintf(name, sizeof(name), "%d.%d.%d.%d", cp[0], cp[1], cp[2], cp[3]); in php_parserr()
541 cp++; in php_parserr()
547 cp++; in php_parserr()
559 cp++; in php_parserr()
563 cp++; in php_parserr()
672 cp++; in php_parserr()
770 cp++; in php_parserr()
777 cp++; in php_parserr()
1007 while (an-- && cp && cp < end) { in PHP_FUNCTION()
1020 while (ns-- > 0 && cp && cp < end) { in PHP_FUNCTION()
[all …]
H A Dcrypt_sha256.c334 char *cp; in php_sha256_crypt_r() local
450 cp = zend_mempcpy((void *)cp, (const void *)temp_result, 32); in php_sha256_crypt_r()
452 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
469 cp = zend_mempcpy(cp, temp_result, 32); in php_sha256_crypt_r()
471 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
518 cp += n; in php_sha256_crypt_r()
522 cp = __php_stpncpy(cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in php_sha256_crypt_r()
526 *cp++ = '$'; in php_sha256_crypt_r()
536 *cp++ = b64t[w & 0x3f]; \ in php_sha256_crypt_r()
557 *cp = '\0'; /* Terminate the string. */ in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c371 char *cp; in php_sha512_crypt_r() local
488 cp = zend_mempcpy((void *) cp, (const void *)temp_result, 64); in php_sha512_crypt_r()
491 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
508 cp = zend_mempcpy(cp, temp_result, 64); in php_sha512_crypt_r()
510 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
557 cp += n; in php_sha512_crypt_r()
561 cp = __php_stpncpy(cp, salt, MIN((size_t) MAX(0, buflen), salt_len)); in php_sha512_crypt_r()
565 *cp++ = '$'; in php_sha512_crypt_r()
575 *cp++ = b64t[w & 0x3f]; \ in php_sha512_crypt_r()
608 *cp = '\0'; /* Terminate the string. */ in php_sha512_crypt_r()
[all …]
/PHP-8.4/ext/intl/uchar/
H A Duchar.c53 UChar32 cp; in IC_METHOD() local
74 UChar32 cp; in IC_METHOD() local
86 UChar32 cp; in IC_METHOD() local
106 UChar32 cp; in IC_METHOD() local
150 UChar32 cp; in IC_METHOD() local
203 UChar32 cp; in IC_METHOD() local
215 UChar32 cp; in IC_METHOD() local
429 UChar32 cp; in IC_METHOD() local
471 UChar32 cp; in IC_METHOD() local
504 UChar32 cp; in IC_METHOD() local
[all …]
/PHP-8.4/ext/standard/tests/file/windows_mb_path/
H A Dutil.inc15 function set_active_cp($cp, $echo = true)
18 $ret = exec("chcp $cp");
20 if (!sapi_windows_cp_set($cp)) {
21 echo "Failed to set cp $cp\n";
29 function get_basename_with_cp($path, $cp, $echo = true)
32 set_active_cp($cp, $echo);
47 function skip_if_wrong_cp($cp, $kind = "")
49 if (get_active_cp($kind) != $cp) {
50 die("skip this test expect codepage $cp");
82 $now = get_basename_with_cp($full, $cp, false);
[all …]
H A Dutil_utf8.inc3 function create_data_from_utf8($id, $item = "", $cp = 65001)
46 create_verify_file($prefix, $item, "opened an utf8 filename for reading", $cp);
63 create_verify_file($prefix, $item, $content, $cp);
85 create_verify_dir($prefix, $item, $cp);
89 create_verify_file($prefix, $item, "", $cp);
/PHP-8.4/ext/dom/lexbor/lexbor/css/syntax/
H A Dsyntax.c99 if (cp == 0 || cp > 0x10FFFF || (cp >= 0xD800 && cp <= 0xDFFF)) { in lxb_css_syntax_codepoint_to_ascii()
110 if (cp <= 0x0000007F) { in lxb_css_syntax_codepoint_to_ascii()
112 data[0] = (lxb_char_t) cp; in lxb_css_syntax_codepoint_to_ascii()
116 else if (cp <= 0x000007FF) { in lxb_css_syntax_codepoint_to_ascii()
118 data[0] = (char)(0xC0 | (cp >> 6 )); in lxb_css_syntax_codepoint_to_ascii()
119 data[1] = (char)(0x80 | (cp & 0x3F)); in lxb_css_syntax_codepoint_to_ascii()
123 else if (cp <= 0x0000FFFF) { in lxb_css_syntax_codepoint_to_ascii()
125 data[0] = (char)(0xE0 | ((cp >> 12))); in lxb_css_syntax_codepoint_to_ascii()
127 data[2] = (char)(0x80 | ( cp & 0x3F)); in lxb_css_syntax_codepoint_to_ascii()
131 else if (cp <= 0x001FFFFF) { in lxb_css_syntax_codepoint_to_ascii()
[all …]
/PHP-8.4/ext/dom/lexbor/lexbor/core/
H A Ddiyfp.c123 const lexbor_diyfp_cpe_t *cp; in lexbor_cached_power_dec() local
126 cp = &lexbor_cached_powers[index]; in lexbor_cached_power_dec()
128 *dec_exp = cp->dec_exp; in lexbor_cached_power_dec()
130 return lexbor_diyfp(cp->significand, cp->bin_exp); in lexbor_cached_power_dec()
138 const lexbor_diyfp_cpe_t *cp; in lexbor_cached_power_bin() local
145 cp = &lexbor_cached_powers[index]; in lexbor_cached_power_bin()
149 return lexbor_diyfp(cp->significand, cp->bin_exp); in lexbor_cached_power_bin()
/PHP-8.4/win32/
H A Dcodepage.c377 if (!cp->name || !cp->name[0]) { in php_win32_cp_get_by_enc()
382 return cp; in php_win32_cp_get_by_enc()
385 if (cp->enc) { in php_win32_cp_get_by_enc()
392 return cp; in php_win32_cp_get_by_enc()
399 return cp; in php_win32_cp_get_by_enc()
557 cp = cur_cp; in php_win32_cp_cli_do_setup()
560 if (!cp) { in php_win32_cp_cli_do_setup()
565 return cp; in php_win32_cp_cli_do_setup()
568 return cp; in php_win32_cp_cli_do_setup()
612 if (!cp) { in PHP_FUNCTION()
[all …]
H A Dcp_enc_map_gen.c5 struct cp { struct
12 static const struct cp cp_map[] = { argument
174 DWORD cp; in main() local
176 struct cp *cur; in main()
/PHP-8.4/ext/opcache/jit/ir/dynasm/
H A Ddasm_x86.h374 do { *((unaligned_short *)cp) = (unsigned short)(x); cp+=2; } while (0)
376 do { *((unaligned_int *)cp) = (unsigned int)(x); cp+=4; } while (0)
378 do { *((unaligned_long_long *)cp) = (unsigned long long)(x); cp+=8; } while (0)
390 return cp; in dasma_()
392 #define dasma(x) (cp = dasma_(cp, (x)))
415 *cp++ = action; in dasm_encode()
423 while (((cp-base) & n)) *cp++ = 0x90; /* nop */ in dasm_encode()
462 cp--; in dasm_encode()
467 else if (n == 4 && t < 0x20) { cp[-1] ^= n; *cp++ = 0x20; } in dasm_encode()
468 cp[-1] ^= n; in dasm_encode()
[all …]
H A Ddasm_arm64.h445 case DASM_ESC: *cp++ = *p++; break; in dasm_encode()
450 ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0xd503201f; in dasm_encode()
466 cp[-1] |= ((n >> 2) & 0x03ffffff); in dasm_encode()
479 cp[0] = (unsigned int)((ptrdiff_t)cp - 4 + n); in dasm_encode()
480 cp[1] = (unsigned int)(((ptrdiff_t)cp - 4 + n) >> 32); in dasm_encode()
481 cp += 2; in dasm_encode()
490 na = na - (ptrdiff_t)cp + 4; in dasm_encode()
510 cp[-1] |= (dasm_imm13(n, n) << 10); in dasm_encode()
522 *cp++ = n; in dasm_encode()
525 cp[-1] |= (n & 0x1f) << (ins & 0x1f); in dasm_encode()
[all …]
H A Ddasm_arm.h344 unsigned int *cp = (unsigned int *)buffer; in dasm_encode() local
361 case DASM_ESC: *cp++ = *p++; break; in dasm_encode()
366 ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0xe1a00000; in dasm_encode()
370 n = (int)((ptrdiff_t)D->globals[-n-10] - (ptrdiff_t)cp - 4); in dasm_encode()
376 n = *DASM_POS2PTR(D, n) - (int)((char *)cp - base) - 4; in dasm_encode()
380 cp[-1] |= ((n >> 2) & 0x00ffffff); in dasm_encode()
401 cp[-1] |= dasm_imm12((unsigned int)n); in dasm_encode()
404 cp[-1] |= ((n & 0xf000) << 4) | (n & 0x0fff); in dasm_encode()
407 cp[-1] |= n >= 0 ? (0x00800000 | (n & 0x0f) | ((n & 0xf0) << 4)) : in dasm_encode()
411 cp[-1] |= n >= 0 ? (0x00800000 | n) : (-n); in dasm_encode()
[all …]
H A Ddasm_mips.h322 unsigned int *cp = (unsigned int *)buffer; in dasm_encode() local
339 case DASM_ESC: *cp++ = *p++; break; in dasm_encode()
341 n = DASM_EXTERN(Dst, (unsigned char *)cp, (ins & 2047), 1); in dasm_encode()
344 ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0x60000000; in dasm_encode()
348 n = (int)((ptrdiff_t)D->globals[-n-10] - (ptrdiff_t)cp); in dasm_encode()
358 n = n - (int)((char *)cp - base); in dasm_encode()
363 cp[-1] |= ((n>>2) & ((1<<e)-1)); in dasm_encode()
371 cp[-1] |= ((n>>3) & 4); n &= 0x1f; in dasm_encode()
374 cp[-1] |= (n & ((1<<((ins>>5)&31))-1)) << (ins&31); in dasm_encode()
376 default: *cp++ = ins; break; in dasm_encode()
[all …]
H A Ddasm_ppc.h326 unsigned int *cp = (unsigned int *)buffer; in dasm_encode() local
343 case DASM_ESC: *cp++ = *p++; break; in dasm_encode()
345 n = DASM_EXTERN(Dst, (unsigned char *)cp, (ins & 2047), 1) - 4; in dasm_encode()
348 ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0x60000000; in dasm_encode()
352 n = (int)((ptrdiff_t)D->globals[-n-10] - (ptrdiff_t)cp); in dasm_encode()
358 n = *DASM_POS2PTR(D, n) - (int)((char *)cp - base); in dasm_encode()
363 cp[-1] |= ((n+4) & ((ins & 2048) ? 0x0000fffc: 0x03fffffc)); in dasm_encode()
370 cp[-1] |= (n & ((1<<((ins>>5)&31))-1)) << (ins&31); in dasm_encode()
373 cp[-1] |= (ins & 1) ? ((n&31)<<11)|((n&32)>>4) : ((n&31)<<6)|(n&32); in dasm_encode()
375 default: *cp++ = ins; break; in dasm_encode()
[all …]
/PHP-8.4/ext/mbstring/libmbfl/filters/
H A Dutf7_helper.h17 static inline bool has_surrogate(uint16_t cp, bool is_surrogate) in has_surrogate() argument
19 return !is_surrogate && cp >= 0xD800 && cp <= 0xDBFF; in has_surrogate()
H A Dmbfilter_utf7imap.c478 if (cp >= 0xDC00 && cp <= 0xDFFF) { in handle_utf16_cp()
479 *out++ = ((*surrogate1 & 0x3FF) << 10) + (cp & 0x3FF) + 0x10000; in handle_utf16_cp()
486 } else if (cp >= 0xD800 && cp <= 0xDBFF) { in handle_utf16_cp()
487 *surrogate1 = cp; in handle_utf16_cp()
488 } else if (cp >= 0xDC00 && cp <= 0xDFFF) { in handle_utf16_cp()
491 } else if (cp >= 0x20 && cp <= 0x7E && cp != '&') { in handle_utf16_cp()
494 *out++ = cp; in handle_utf16_cp()
737 static bool is_utf16_cp_valid(uint16_t cp, bool is_surrogate) in is_utf16_cp_valid() argument
740 return cp >= 0xDC00 && cp <= 0xDFFF; in is_utf16_cp_valid()
741 } else if (cp >= 0xDC00 && cp <= 0xDFFF) { in is_utf16_cp_valid()
[all …]
H A Dmbfilter_utf7.c455 static uint32_t* handle_utf16_cp(uint16_t cp, uint32_t *out, uint16_t *surrogate1) in handle_utf16_cp() argument
459 if (cp >= 0xDC00 && cp <= 0xDFFF) { in handle_utf16_cp()
460 *out++ = ((*surrogate1 & 0x3FF) << 10) + (cp & 0x3FF) + 0x10000; in handle_utf16_cp()
467 } else if (cp >= 0xD800 && cp <= 0xDBFF) { in handle_utf16_cp()
468 *surrogate1 = cp; in handle_utf16_cp()
469 } else if (cp >= 0xDC00 && cp <= 0xDFFF) { in handle_utf16_cp()
473 *out++ = cp; in handle_utf16_cp()
722 static bool is_utf16_cp_valid(uint16_t cp, bool is_surrogate) in is_utf16_cp_valid() argument
725 return cp >= 0xDC00 && cp <= 0xDFFF; in is_utf16_cp_valid()
728 return !(cp >= 0xDC00 && cp <= 0xDFFF); in is_utf16_cp_valid()
/PHP-8.4/ext/curl/
H A Dinterface.c437 CURL *cp; in curl_clone_obj() local
447 cp = curl_easy_duphandle(ch->cp); in curl_clone_obj()
448 if (!cp) { in curl_clone_obj()
453 clone_ch->cp = cp; in curl_clone_obj()
1222 CURL *cp; in PHP_FUNCTION() local
1231 if (!cp) { in PHP_FUNCTION()
1238 ch->cp = cp; in PHP_FUNCTION()
1583 CURL *cp; in PHP_FUNCTION() local
1594 cp = curl_easy_duphandle(ch->cp); in PHP_FUNCTION()
1595 if (!cp) { in PHP_FUNCTION()
[all …]
/PHP-8.4/ext/intl/uchar/tests/
H A Dbasic-functionality.phpt8 function unicode_info($cp) {
24 $ncp = IntlChar::ord($cp);
30 IntlChar::hasBinaryProperty($cp, $prop) ? "true" : "false"
35 var_dump(IntlChar::$method($cp));
37 echo " charAge(): ", implode('.', IntlChar::charAge($cp)), "\n";
43 foreach($codepoints as $cp) {
44 unicode_info($cp);
47 IntlChar::enumCharNames(0x2600, 0x2610, function($cp, $nc, $name) {
48 printf("U+%04x %s\n", $cp, $name);
/PHP-8.4/ext/dba/
H A Dinstall_cdb.sh40 cp ../error.o .
49 cp cdb.h uint32.h "$prefix/include"
/PHP-8.4/ext/mbstring/tests/
H A Dutf8_mobile_encodings.phpt99 $cp = pack('N', rand(1, 0x10FFFF));
100 if (isset($fromUnicode[$cp]))
102 …if (mb_convert_encoding($cp, $encoding, 'UTF-32BE') !== mb_convert_encoding($cp, 'UTF-8', 'UTF-32B…
103 die("Expected U+" . bin2hex($cp) . " to be the same in UTF-8 and " . $encoding);
124 foreach ($toUnicode as $char => $cp)
125 testValidString($char, $cp, $encoding, 'UCS-4BE', false);
126 foreach ($fromUnicode as $cp => $char)
127 testValidString($cp, $char, 'UCS-4BE', $encoding, false);
128 foreach ($invalidCodepoints as $cp => $_)
129 convertInvalidString($cp, '%', 'UCS-4BE', $encoding);
/PHP-8.4/ext/filter/tests/
H A D040.phpt8 ap[]=1&bp=test&cp=
14 var_dump(filter_has_var(INPUT_POST, "cp"));

Completed in 67 milliseconds

1234