Home
last modified time | relevance | path

Searched refs:len (Results 126 – 150 of 519) sorted by relevance

12345678910>>...21

/PHP-7.0/ext/standard/tests/strings/
H A Dstrspn_variation9.phpt2 Test strspn() function : usage variations - different 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)
13 * Testing strspn() : with different strings as str argument and default start and len args
16 echo "*** Testing strspn() : with different str and default start and len args ***\n";
56 *** Testing strspn() : with different str and default start and len args ***
H A Dstrcspn_variation6.phpt2 …spn() function : usage variations - with heredoc strings, varying mask & 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)
13 * Testing strcspn() : with heredoc string, varying mask and default start and len arguments
84 var_dump( strcspn($str,$mask) ); // with default start and len value
/PHP-7.0/ext/phar/
H A Dphar_path_check.c25 phar_path_check_result phar_path_check(char **s, int *len, const char **error) in phar_path_check() argument
30 if (*len == 1 && *p == '.') { in phar_path_check()
33 } else if (*len == 2 && p[0] == '.' && p[1] == '.') { in phar_path_check()
40 #define YYLIMIT p+*len in phar_path_check()
138 *len = (p - (const unsigned char*)*s) -1; in phar_path_check()
205 (*len)--; in phar_path_check()
207 if ((p - (const unsigned char*)*s) - 1 != *len) in phar_path_check()
/PHP-7.0/ext/standard/
H A Dhtml.c380 size_t len = 0; in determine_charset() local
400 len = 0; in determine_charset()
435 len = at - dot; in determine_charset()
437 len = strlen(dot); in determine_charset()
456 zend_binary_strcasecmp(charset_hint, len, charset_map[i].codeset, len) == 0) { in determine_charset()
1276 len = 0; in php_escape_html_entities_ex()
1298 len += replacement_len; in php_escape_html_entities_ex()
1336 len += rep_len; in php_escape_html_entities_ex()
1372 len += mbseqlen; in php_escape_html_entities_ex()
1425 len += ent_len; in php_escape_html_entities_ex()
[all …]
H A Dcrypt_sha512.c134 size_t nwords = len / sizeof(uint64_t); in sha512_process_block()
147 ctx->total[0] += len; in sha512_process_block()
148 if (ctx->total[0] < len) { in sha512_process_block()
288 size_t add = (size_t)(256 - left_over > len ? len : 256 - left_over); in sha512_process_bytes()
303 len -= add; in sha512_process_bytes()
307 if (len >= 128) { in sha512_process_bytes()
317 while (len > 128) { in sha512_process_bytes()
320 len -= 128; in sha512_process_bytes()
327 len &= 127; in sha512_process_bytes()
332 if (len > 0) { in sha512_process_bytes()
[all …]
H A Diptc.c317 int inx = 0, len; in PHP_FUNCTION() local
353 len = (((zend_long) buffer[ inx + 2 ]) << 24) + (((zend_long) buffer[ inx + 3 ]) << 16) + in PHP_FUNCTION()
357 len = (((unsigned short) buffer[ inx ])<<8) | (unsigned short)buffer[ inx+1 ]; in PHP_FUNCTION()
361 if ((len < 0) || (len > str_len) || (inx + len) > str_len) { in PHP_FUNCTION()
377 add_next_index_stringl(element, (char *) buffer+inx, len); in PHP_FUNCTION()
378 inx += len; in PHP_FUNCTION()
H A Dstring.c320 if (len < 0) { in php_spn_common_handler()
323 len = 0; in php_spn_common_handler()
331 if(len == 0) { in php_spn_common_handler()
821 len--; in php_trim()
847 len--; in php_trim()
874 len--; in php_trim()
1220 len++; in php_implode()
1224 len++; in php_implode()
1456 e = c+len; in php_strtolower()
1522 cnt = len;
[all …]
/PHP-7.0/ext/pgsql/tests/
H A D11pg_meta_data.phpt25 ["len"]=>
42 ["len"]=>
59 ["len"]=>
/PHP-7.0/ext/fileinfo/libmagic/
H A Dapprentice.c116 size_t len; member
169 size_t len; member
495 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc()
1030 size_t len; in load_1() local
1066 if ((size_t)(len - 2) > bang[i].len && in load_1()
1495 size_t len; in get_cond() member
2152 len = nt ? strlen(buf) : len; in parse_extra()
2790 map->len = len; in apprentice_buf()
3012 size_t len; in apprentice_compile() local
3227 len = *s;
[all …]
/PHP-7.0/main/
H A DSAPI.c329 content_type = (char*)emalloc(*len + 1); in get_default_content_type()
337 *len = prefix_len + mimetype_len; in get_default_content_type()
338 content_type = (char*)emalloc(*len + 1); in get_default_content_type()
347 uint len; in sapi_get_default_content_type() local
349 return get_default_content_type(0, &len); in sapi_get_default_content_type()
355 uint len; in sapi_get_default_content_type_header() local
358 default_header->header_len = len; in sapi_get_default_content_type_header()
602 if (header->header_len > len && header->header[len] == ':' in sapi_remove_header()
777 len--; in sapi_header_op()
859 uint len = 0; in sapi_send_headers() local
[all …]
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_parser.c1537 (yyval).file.name = malloc((yyvsp[(1) - (4)]).len + (yyvsp[(2) - (4)]).len + 1);
1540 …memcpy(&(yyval).file.name[(yyvsp[(1) - (4)]).len], (yyvsp[(2) - (4)]).str, (yyvsp[(2) - (4)]).len);
1541 (yyval).file.name[(yyvsp[(1) - (4)]).len + (yyvsp[(2) - (4)]).len] = '\0';
1552 (yyval).file.name = malloc((yyvsp[(1) - (5)]).len + (yyvsp[(2) - (5)]).len + 1);
1556 (yyval).file.name[(yyvsp[(1) - (5)]).len + (yyvsp[(2) - (5)]).len] = '\0';
1589 (yyval).len = (yyvsp[(1) - (3)]).len;
1600 (yyval).len = (yyvsp[(2) - (2)]).len;
1658 (yyval).len = (yyvsp[(3) - (3)]).len;
1668 (yyval).len = (yyvsp[(3) - (3)]).len;
1677 (yyval).len = 0;
[all …]
H A Dphpdbg_parser.y132 $$.len = $1.len;
138 $$.len = $2.len;
158 $$.len = $3.len;
163 $$.len = $3.len;
167 $$.len = 0;
172 $$.len = $3.len;
H A Dphpdbg_eol.c86 void phpdbg_eol_convert(char **str, int *len) in phpdbg_eol_convert() argument
89 int in_len = *len, out_len, cursor, i; in phpdbg_eol_convert()
96 out_len = *len; in phpdbg_eol_convert()
170 *len = cursor; in phpdbg_eol_convert()
/PHP-7.0/ext/hash/
H A Dphp_hash_crc32.h31 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
32 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
H A Dhash_fnv.c151 fnv_32_buf(void *buf, size_t len, php_hash_uint32 hval, int alternate) in fnv_32_buf() argument
154 unsigned char *be = bp + len; /* beyond end of buffer */ in fnv_32_buf()
193 fnv_64_buf(void *buf, size_t len, php_hash_uint64 hval, int alternate) in fnv_64_buf() argument
196 unsigned char *be = bp + len; /* beyond end of buffer */ in fnv_64_buf()
/PHP-7.0/ext/mysqlnd/
H A Dmysqlnd_wireprotocol.c486 int len; in php_mysqlnd_auth_write() local
508 p+= len; in php_mysqlnd_auth_write()
556 p+= len; in php_mysqlnd_auth_write()
1089 size_t len; in php_mysqlnd_rset_header_read() local
1230 zend_ulong len; in php_mysqlnd_rset_field_read() local
1265 switch ((len)) { in php_mysqlnd_rset_field_read()
1275 p += len; in php_mysqlnd_rset_field_read()
1344 p += len; in php_mysqlnd_rset_field_read()
1683 *(p + len) = '\0'; in php_mysqlnd_rowp_read_text_protocol_aux()
1742 p -= len; in php_mysqlnd_rowp_read_text_protocol_aux()
[all …]
/PHP-7.0/Zend/
H A Dzend_stream.h34 typedef size_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len);
48 size_t len; member
79 ZEND_API int zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len);
H A Dzend_constants.h45 …REGISTER_STRINGL_CONSTANT(name, str, len, flags) zend_register_stringl_constant((name), sizeof(na… argument
52 …TANT(ns, name, str, len, flags) zend_register_stringl_constant(ZEND_NS_NAME(ns, name), sizeof(ZEN… argument
59 …TER_MAIN_STRINGL_CONSTANT(name, str, len, flags) zend_register_stringl_constant((name), sizeof(na… argument
/PHP-7.0/Zend/tests/
H A Dbug26696.phpt6 $len = strlen($str);
7 for ($i = 0; $i < $len; $i++) {
/PHP-7.0/ext/zip/lib/
H A Dzip_source_file.c41 zip_source_file(zip_t *za, const char *fname, zip_uint64_t start, zip_int64_t len) in zip_source_file() argument
46 return zip_source_file_create(fname, start, len, &za->error); in zip_source_file()
H A Dzip_source_pkware.c98 zip_uint64_t len, int update_only) in decrypt() argument
104 for (i=0; i<len; i++) { in decrypt()
165 zip_uint64_t len, zip_source_cmd_t cmd) in pkware_decrypt() argument
179 if ((n=zip_source_read(src, data, len)) < 0) { in pkware_decrypt()
209 return zip_error_to_data(&ctx->error, data, len); in pkware_decrypt()
/PHP-7.0/ext/mbstring/libmbfl/tests/
H A Demoji.c17 for (i = 0; i < ptr->len; i++) { in hexdump()
21 printf(" (%u)\n", ptr->len); in hexdump()
82 for (i = 0; i < result.len; i+= 2) { in main()
103 memcpy(dev2.buffer, result.val, result.len+1); in main()
/PHP-7.0/tests/lang/
H A Dbug26696.phpt7 $len = strlen($str);
8 for ($i = 0; $i < $len; $i++) {
/PHP-7.0/ext/xmlrpc/libxmlrpc/
H A Dxmlrpc.c811 xml_elem_parse_buf (in_buf, len, in XMLRPC_REQUEST_FromXML()
904 (len > 0) ? simplestring_addn(&value->id, id, len) : in XMLRPC_SetValueID_Case()
910 for(i = 0; i < value->id.len; i++) { in XMLRPC_SetValueID_Case()
957 (len > 0) ? simplestring_addn(&value->str, val, len) : in XMLRPC_SetValueString()
1342 XMLRPC_SetValueString(value, val, len); in XMLRPC_CreateValueString()
1629 if (xSource->id.len) { in XMLRPC_DupValueNew()
1802 (len > 0) ? simplestring_addn(&value->str, s, len) : in XMLRPC_SetValueBase64()
1835 XMLRPC_SetValueBase64(val, s, len); in XMLRPC_CreateValueBase64()
1944 return ((value) ? value->str.len : 0); in XMLRPC_GetValueStringLen()
2810 if(description.len) { in XMLRPC_UtilityCreateFault()
[all …]
/PHP-7.0/ext/dom/tests/
H A DDOMNode_removeChild_basic.phpt41 $len = $children->length;
42 echo "original has $len nodes\n";
52 $len = $children->length;
53 echo "after text removed it now has $len nodes\n";

Completed in 121 milliseconds

12345678910>>...21