/php-src/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_base64.c | 35 static void mb_wchar_to_base64(uint32_t *in, size_t len, mb_convert_buf *buf, bool end); 123 int status, cache, len; in mbfl_filt_conv_base64enc_flush() local 127 len = (filter->status & 0xff00) >> 8; in mbfl_filt_conv_base64enc_flush() 132 if (len > 72){ in mbfl_filt_conv_base64enc_flush() 297 static void mb_wchar_to_base64(uint32_t *in, size_t len, mb_convert_buf *buf, bool end) in mb_wchar_to_base64() argument 316 …MB_CONVERT_BUF_ENSURE(buf, out, limit, (zend_safe_address_guarded(len + (bits / 8), 26, 52) / 19) … in mb_wchar_to_base64() 318 while (len--) { in mb_wchar_to_base64()
|
H A D | mbfilter_cjk.c | 607 while (len--) { in mb_wchar_to_iso2022jp() 692 while (len--) { in mb_wchar_to_jis() 1474 in--; len++; in mb_wchar_to_iso2022jp_kddi() 5737 len--; in mb_wchar_to_sjismac() 5774 len--; in mb_wchar_to_sjismac() 5804 len--; in mb_wchar_to_sjismac() 6573 if (!len) { in mb_wchar_to_sjis_docomo() 6795 if (!len) { in mb_wchar_to_sjis_kddi() 6819 if (!len) { in mb_wchar_to_sjis_kddi() 7102 if (!len) { in mb_wchar_to_sjis_sb() [all …]
|
/php-src/ext/standard/ |
H A D | html.c | 375 size_t len = strlen(charset_hint); in determine_charset() local 379 zend_binary_strcasecmp(charset_hint, len, charset_map[i].codeset, len) == 0) { in determine_charset() 1105 size_t cursor, maxlen, len; in php_escape_html_entities_ex() local 1153 len = 0; in php_escape_html_entities_ex() 1175 len += replacement_len; in php_escape_html_entities_ex() 1213 len += rep_len; in php_escape_html_entities_ex() 1249 len += mbseqlen; in php_escape_html_entities_ex() 1258 len += sizeof("&") - 1; in php_escape_html_entities_ex() 1302 len += ent_len; in php_escape_html_entities_ex() 1308 ZSTR_VAL(replaced)[len] = '\0'; in php_escape_html_entities_ex() [all …]
|
/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | node.h | 93 lxb_dom_node_name(lxb_dom_node_t *node, size_t *len); 128 const lxb_char_t *qualified_name, size_t len); 132 const lxb_char_t *class_name, size_t len); 162 lxb_dom_node_text_content(lxb_dom_node_t *node, size_t *len); 166 const lxb_char_t *content, size_t len);
|
/php-src/ext/pdo_firebird/ |
H A D | firebird_statement.c | 168 if (len != 1 && len != 2 && len != 4) { in pdo_firebird_stmt_execute() 174 i += len + 3; in pdo_firebird_stmt_execute() 305 size_t len = 0; in php_firebird_fetch_blob() local 333 len = isc_vax_integer(&bl_info[i+2], item_len); in php_firebird_fetch_blob() 341 if (len) { in php_firebird_fetch_blob() 348 if (len > ZSTR_MAX_LEN) { in php_firebird_fetch_blob() 353 str = zend_string_alloc(len, 0); in php_firebird_fetch_blob() 358 : (unsigned short)(len - cur_len); in php_firebird_fetch_blob() 363 ZSTR_VAL(str)[len] = '\0'; in php_firebird_fetch_blob() 494 size_t len = strftime(buf, sizeof(buf), fmt, &t); in pdo_firebird_stmt_get_col() local [all …]
|
/php-src/ext/zlib/tests/ |
H A D | bug60761.phpt | 27 $len = strlen($html); 29 $lens[$len] = $len;
|
/php-src/main/ |
H A D | rfc1867.c | 557 int len = haystacklen; in php_ap_memstr() local 567 if (memcmp(needle, ptr, needlen < len ? needlen : len) == 0 && (partial || len >= needlen)) { in php_ap_memstr() 572 ptr++; len--; in php_ap_memstr() 581 size_t len, max; in multipart_buffer_read() local 603 if (len > 0) { in multipart_buffer_read() 607 buf[len] = 0; in multipart_buffer_read() 609 if (bound && len > 0 && buf[len-1] == '\r') { in multipart_buffer_read() 610 buf[--len] = 0; in multipart_buffer_read() 615 self->buf_begin += len; in multipart_buffer_read() 618 return len; in multipart_buffer_read() [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | strcspn_basic.phpt | 16 $len = 3; 19 var_dump( strcspn($str, $mask, $start, $len) );
|
H A D | strspn_variation5.phpt | 2 Test strspn() function : usage variations - with heredoc strings with default start and len args 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 70 var_dump( strspn($str,$mask) ); // with default start and len values
|
H A D | strcspn_variation5.phpt | 2 Test strcspn() function : usage variations - with heredoc strings with default start and len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 70 var_dump( strcspn($str,$mask) ); // with default start and len values
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_help.c | 171 const char *key, size_t len, /* pointer and length of key */ in get_command() argument 179 if (len == 1) { in get_command() 190 if (!strncmp(c->name, key, len)) { in get_command() 234 n = get_command(param->str, param->len, &cmd, phpdbg_prompt_commands); in PHPDBG_COMMAND() 242 if (param->len > 1) { in PHPDBG_COMMAND() 244 if (!strncmp(cmd->name, param->str, param->len)) { in PHPDBG_COMMAND() 278 int len; in PHPDBG_HELP() local 287 len = 20 - 1 - c->name_len; in PHPDBG_HELP() 291 c->alias, c_sub->alias, c->name, len, c_sub->name, c_sub->tip); in PHPDBG_HELP() 302 len = 20 - 1 - c->name_len; in PHPDBG_HELP() [all …]
|
/php-src/ext/readline/ |
H A D | readline_cli.c | 224 for (i = 0; i < len; ++i) { in cli_is_valid_code() 294 if (i + 2 < len && code[i+1] == '<' && code[i+2] == '<') { in cli_is_valid_code() 584 size_t len = ZSTR_LEN(ce->name) + 2 + strlen(retval) + 1; in cli_completion_generator() local 585 char *tmp = malloc(len); in cli_completion_generator() 587 snprintf(tmp, len, "%s::%s", ZSTR_VAL(ce->name), retval); in cli_completion_generator() 605 size_t size = 4096, pos = 0, len; in readline_shell_run() local 654 len = strlen(line); in readline_shell_run() 674 if (pos + len + 2 > size) { in readline_shell_run() 675 size = pos + len + 2; in readline_shell_run() 678 memcpy(&code[pos], line, len); in readline_shell_run() [all …]
|
/php-src/ext/pdo/ |
H A D | pdo_sql_parser.re | 72 size_t len; 107 ptrdiff_t len = s.cur - s.tok; 108 if ((ZSTR_VAL(inquery) < (s.cur - len)) && isalnum(*(s.cur - len - 1))) { 120 plc->len = s.cur - s.tok; 213 param = zend_hash_str_find_ptr(params, plc->pos, plc->len); 328 memcpy(newbuffer, plc->pos, plc->len); 329 newbuffer += plc->len; 331 ptr = plc->pos + plc->len; 368 zend_string *name = zend_string_init(plc->pos, plc->len, 0); 405 zend_string *name = zend_string_init(plc->pos, plc->len, 0); [all …]
|
/php-src/ext/pcre/pcre2lib/ |
H A D | pcre2_intmodedep.h | 265 #define GETCHARLEN(c, eptr, len) c = *eptr; argument 329 #define GETCHARLEN(c, eptr, len) \ argument 331 if (c >= 0xc0u) GETUTF8LEN(c, eptr, len); 337 #define GETCHARLENTEST(c, eptr, len) \ argument 339 if (utf && c >= 0xc0u) GETUTF8LEN(c, eptr, len); 427 #define GETUTF16LEN(c, eptr, len) \ argument 434 #define GETCHARLEN(c, eptr, len) \ argument 436 if ((c & 0xfc00u) == 0xd800u) GETUTF16LEN(c, eptr, len); 442 #define GETCHARLENTEST(c, eptr, len) \ argument 507 #define GETCHARLEN(c, eptr, len) \ argument [all …]
|
/php-src/ext/mbstring/tests/ |
H A D | bug52981.phpt | 10 $len = strlen($upper); 11 for ($i = 0; $i < $len; ++$i) echo dechex(ord($upper[$i])) . ' ';
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | base.h | 82 (*lexbor_serialize_cb_f)(const lxb_char_t *data, size_t len, void *ctx); 85 (*lexbor_serialize_cb_cp_f)(const lxb_codepoint_t *cps, size_t len, void *ctx);
|
/php-src/Zend/ |
H A D | zend_virtual_cwd.c | 512 if (len <= start) { in tsrm_realpath_r() 519 i = len; in tsrm_realpath_r() 525 if (i == len || in tsrm_realpath_r() 575 path[len] = 0; in tsrm_realpath_r() 622 memcpy(tmp, path, len+1); in tsrm_realpath_r() 626 !(IS_UNC_PATH(path, len) && len >= 3 && path[2] != '?') && in tsrm_realpath_r() 820 j = len; in tsrm_realpath_r() 904 memcpy(tmp, path, len+1); in tsrm_realpath_r() 979 j += (len-i); in tsrm_realpath_r() 988 j += (len-i); in tsrm_realpath_r() [all …]
|
/php-src/ext/soap/tests/ |
H A D | bug73037.phpt | 85 $len = strlen($data); 87 //echo "len=$len\n"; 95 Content-Length: {$len} 123 $len = $pos - $pos0; 124 echo substr($out, $pos0, $len);
|
/php-src/main/streams/ |
H A D | streams.c | 849 size_t len; in _php_stream_puts() local 1538 len += ret; in _php_stream_copy_to_mem() 1541 if (len) { in _php_stream_copy_to_mem() 1576 len += ret; in _php_stream_copy_to_mem() 1592 if (len) { in _php_stream_copy_to_mem() 1611 if (!len) { in _php_stream_copy_to_stream_ex() 1612 len = &dummy; in _php_stream_copy_to_stream_ex() 1616 *len = 0; in _php_stream_copy_to_stream_ex() 1795 *len = haveread; in _php_stream_copy_to_stream_ex() 1805 size_t len; in _php_stream_copy_to_stream() local [all …]
|
/php-src/ext/dom/lexbor/lexbor/html/ |
H A D | encoding.c | 228 size_t i, len, cur; in lxb_html_encoding_meta() local 252 len = name_end - name; in lxb_html_encoding_meta() 254 if (len < 7) { in lxb_html_encoding_meta() 262 if ((size_t) (attr->end - attr->name) == len in lxb_html_encoding_meta() 263 && lexbor_str_data_ncasecmp(attr->name, name, len)) in lxb_html_encoding_meta() 283 if (len == (sizeof("http-equiv") - 1)) { in lxb_html_encoding_meta() 284 if (!lexbor_str_data_ncasecmp((lxb_char_t *) "http-equiv", name, len)) { in lxb_html_encoding_meta()
|
/php-src/ext/hash/ |
H A D | hash_md.c | 80 static void Encode(unsigned char *output, uint32_t *input, unsigned int len) in Encode() argument 84 for (i = 0, j = 0; j < len; i++, j += 4) { in Encode() 97 static void Decode(uint32_t *output, const unsigned char *input, unsigned int len) in Decode() argument 101 for (i = 0, j = 0; j < len; i++, j += 4) in Decode() 319 PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *buf, size_t len) in PHP_MD2Update() argument 321 const unsigned char *p = buf, *e = buf + len; in PHP_MD2Update() 324 if (context->in_buffer + len < 16) { in PHP_MD2Update() 326 memcpy(context->buffer + context->in_buffer, p, len); in PHP_MD2Update() 327 context->in_buffer += (char) len; in PHP_MD2Update()
|
H A D | hash_joaat.c | 80 joaat_buf(void *buf, size_t len, uint32_t hval) in joaat_buf() argument 85 for (i = 0; i < len; i++) { in joaat_buf()
|
H A D | php_hash_fnv.h | 63 static uint32_t fnv_32_buf(void *buf, size_t len, uint32_t hval, int alternate); 64 static uint64_t fnv_64_buf(void *buf, size_t len, uint64_t hval, int alternate);
|
H A D | hash_adler32.c | 26 …P_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len) in PHP_ADLER32Update() argument 32 for (size_t i = 0; i < len; ++i) { in PHP_ADLER32Update()
|
/php-src/ext/fileinfo/libmagic/ |
H A D | ascmagic.c | 113 size_t mlen, i, len; in file_ascmagic_with_encoding() local 212 len = file_printedlen(ms); in file_ascmagic_with_encoding() 215 if (len) { in file_ascmagic_with_encoding() 231 if (len) { in file_ascmagic_with_encoding() 338 encode_utf8(unsigned char *buf, size_t len, file_unichar_t *ubuf, size_t ulen) in encode_utf8() argument 341 unsigned char *end = buf + len; in encode_utf8()
|