Home
last modified time | relevance | path

Searched refs:len (Results 101 – 125 of 496) sorted by relevance

12345678910>>...20

/PHP-5.5/ext/hash/
H A Dhash_snefru.c142 PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *context, const unsigned char *input, size_t len) in PHP_SNEFRUUpdate() argument
144 if ((MAX32 - context->count[1]) < (len * 8)) { in PHP_SNEFRUUpdate()
147 context->count[1] = (len * 8) - context->count[1]; in PHP_SNEFRUUpdate()
149 context->count[1] += len * 8; in PHP_SNEFRUUpdate()
152 if (context->length + len < 32) { in PHP_SNEFRUUpdate()
153 memcpy(&context->buffer[context->length], input, len); in PHP_SNEFRUUpdate()
154 context->length += len; in PHP_SNEFRUUpdate()
156 size_t i = 0, r = (context->length + len) % 32; in PHP_SNEFRUUpdate()
164 for (; i + 32 <= len; i += 32) { in PHP_SNEFRUUpdate()
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);
/PHP-5.5/ext/standard/tests/strings/
H A Dstrncasecmp_error.phpt5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
13 $len = 10;
24 var_dump( strncasecmp($str1, $str2, $len, $extra_arg) );
27 $len = -10;
28 var_dump( strncasecmp($str1, $str2, $len) );
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_variation9.phpt2 Test strcspn() function : usage variations - different 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)
13 * Testing strcspn() : with different strings as str argument and default start and len args
16 echo "*** Testing strcspn() : with different str and default start and len args ***\n";
56 *** Testing strcspn() : with different str and default start and len args ***
/PHP-5.5/ext/wddx/
H A Dphp_wddx_api.h52 #define php_wddx_add_chunk_ex(packet, str, len) smart_str_appendl(packet, str, len) argument
65 #define php_wddx_gather(packet) estrndup(packet->c, packet->len)
/PHP-5.5/Zend/
H A Dzend_constants.h44 … REGISTER_STRINGL_CONSTANT(name, str, len, flags) zend_register_stringl_constant((name), sizeof(n… argument
49 …STANT(ns, name, str, len, flags) zend_register_stringl_constant(ZEND_NS_NAME(ns, name), sizeof(ZE… argument
54 …STER_MAIN_STRINGL_CONSTANT(name, str, len, flags) zend_register_stringl_constant((name), sizeof(n… argument
H A Dzend_stream.h31 typedef size_t (*zend_stream_reader_t)(void* handle, char *buf, size_t len TSRMLS_DC);
45 size_t len; member
76 ZEND_API int zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len TSRMLS_DC);
H A Dzend_ini_scanner.l134 #define zend_ini_copy_value(retval, str, len) { \ argument
135 Z_STRVAL_P(retval) = zend_strndup(str, len); \
136 Z_STRLEN_P(retval) = len; \
140 #define RETURN_TOKEN(type, str, len) { \ argument
141 zend_ini_copy_value(ini_lval, str, len); \
161 static void yy_scan_buffer(char *str, unsigned int len TSRMLS_DC) in yy_scan_buffer()
165 YYLIMIT = YYCURSOR + len; in yy_scan_buffer()
250 int len = strlen(str); in zend_ini_prepare_string_for_scanning() local
256 yy_scan_buffer(str, len TSRMLS_CC); in zend_ini_prepare_string_for_scanning()
264 static void zend_ini_escape_string(zval *lval, char *str, int len, char quote_type TSRMLS_DC) in zend_ini_escape_string() argument
[all …]
/PHP-5.5/ext/pgsql/tests/
H A Dpg_meta_data_001.phpt36 ["len"]=>
51 ["len"]=>
68 ["len"]=>
83 ["len"]=>
H A D11pg_meta_data.phpt25 ["len"]=>
40 ["len"]=>
55 ["len"]=>
/PHP-5.5/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.c823 len = 0; in mbfl_strlen()
825 len = string->len; in mbfl_strlen()
827 len = string->len/2; in mbfl_strlen()
829 len = string->len/4; in mbfl_strlen()
841 len++; in mbfl_strlen()
865 return len; in mbfl_strlen()
951 len = 0; in mbfl_oddlen()
1032 if (haystack_u8->len < needle_u8->len) { in mbfl_strpos()
1322 len = string->len; in mbfl_substr()
1780 int len, n; in mbfl_strwidth() local
[all …]
/PHP-5.5/ext/xmlrpc/libxmlrpc/
H A Dencodings.h43 char* utf8_encode(const char *s, int len, int *newlen, ENCODING_ID encoding);
44 char* utf8_decode(const char *s, int len, int *newlen, ENCODING_ID encoding);
/PHP-5.5/ext/mbstring/oniguruma/enc/
H A Dutf8.c96 int c, len; in mbc_to_code() local
99 len = enclen(ONIG_ENCODING_UTF8, p); in mbc_to_code()
101 if (len > 1) { in mbc_to_code()
102 len--; in mbc_to_code()
103 n = c & ((1 << (6 - len)) - 1); in mbc_to_code()
104 while (len--) { in mbc_to_code()
/PHP-5.5/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()
H A Dstub.h21 static inline void phar_get_stub(const char *index_php, const char *web, size_t *len, char **stub, … in phar_get_stub() argument
33 …*len = spprintf(stub, name_len + web_len + newstub_len, "%s%s%s%s%s%s%d%s%s%s", newstub0, web, new… in phar_get_stub()
/PHP-5.5/ext/filter/
H A Dsanitizing_filters.c33 int len = Z_STRLEN_P(value); in php_filter_encode_html() local
35 unsigned char *e = s + len; in php_filter_encode_html()
56 Z_STRLEN_P(value) = str.len; in php_filter_encode_html()
253 size_t len; in php_filter_full_special_chars() local
261 …buf = php_escape_html_entities_ex(Z_STRVAL_P(value), Z_STRLEN_P(value), &len, 1, quotes, SG(defaul… in php_filter_full_special_chars()
264 Z_STRLEN_P(value) = len; in php_filter_full_special_chars()
371 int len; in php_filter_magic_quotes() local
374 buf = php_addslashes(Z_STRVAL_P(value), Z_STRLEN_P(value), &len, 0 TSRMLS_CC); in php_filter_magic_quotes()
378 Z_STRLEN_P(value) = len; in php_filter_magic_quotes()
/PHP-5.5/ext/zip/lib/
H A Dzip_dirent.c528 _zip_readfpstr(FILE *fp, unsigned int len, int nulp, struct zip_error *error) in _zip_readfpstr() argument
532 r = (char *)malloc(nulp ? len+1 : len); in _zip_readfpstr()
538 if (fread(r, 1, len, fp)<len) { in _zip_readfpstr()
546 r[len] = 0; in _zip_readfpstr()
547 for (o=r; o<r+len; o++) in _zip_readfpstr()
558 _zip_readstr(unsigned char **buf, int len, int nulp, struct zip_error *error) in _zip_readstr() argument
562 r = (char *)malloc(nulp ? len+1 : len); in _zip_readstr()
568 memcpy(r, *buf, len); in _zip_readstr()
569 *buf += len; in _zip_readstr()
573 r[len] = 0; in _zip_readstr()
[all …]
/PHP-5.5/ext/json/
H A Djson.c370 for (j=0 ; pos < len ; j++) { in json_utf8_to_utf16()
386 for (j=0 ; pos < len ; j++) { in json_utf8_to_utf16()
408 if (len == 0) { in json_escape_string()
418 if ((type = is_numeric_string(s, len, &p, &d, 0)) != 0) { in json_escape_string()
434 ulen = json_utf8_to_utf16(utf16, s, len); in json_escape_string()
448 len = ulen; in json_escape_string()
452 smart_str_alloc(buf, len+2, 0); in json_escape_string()
455 while (pos < len) in json_escape_string()
624 int len; in php_json_encode() local
629 smart_str_appendl(buf, d, len); in php_json_encode()
[all …]
/PHP-5.5/sapi/litespeed/
H A Dlsapi_main.c412 int len; in sapi_lsapi_send_headers() local
436 int len = strlen( message ); in sapi_lsapi_log_message() local
441 ++len; in sapi_lsapi_log_message()
570 int len; in lsapi_execute_script() local
580 if ( len > 45 ) in lsapi_execute_script()
581 len = len - 45; in lsapi_execute_script()
583 len = 0; in lsapi_execute_script()
1232 int len; in PHP_FUNCTION() local
1251 while( len > 0 && (isspace( headerBuf[len-1])) ) { in PHP_FUNCTION()
1252 --len; in PHP_FUNCTION()
[all …]
/PHP-5.5/ext/standard/
H A Dhtml.c368 int len = 0; in determine_charset() local
388 len = 0; in determine_charset()
423 len = at - dot; in determine_charset()
425 len = strlen(dot); in determine_charset()
1268 len = 0; in php_escape_html_entities_ex()
1329 len += rep_len; in php_escape_html_entities_ex()
1365 len += mbseqlen; in php_escape_html_entities_ex()
1418 len += ent_len; in php_escape_html_entities_ex()
1424 replaced[len] = '\0'; in php_escape_html_entities_ex()
1425 *newlen = len; in php_escape_html_entities_ex()
[all …]
H A Dcrc32.c30 int len, nr; in PHP_NAMED_FUNCTION() local
39 for (len =+nr; nr--; ++p) { in PHP_NAMED_FUNCTION()
H A Dcrypt_sha512.c140 size_t nwords = len / sizeof(uint64_t); in sha512_process_block()
153 ctx->total[0] += len; in sha512_process_block()
154 if (ctx->total[0] < len) { in sha512_process_block()
294 size_t add = (size_t)(256 - left_over > len ? len : 256 - left_over); in sha512_process_bytes()
309 len -= add; in sha512_process_bytes()
313 if (len >= 128) { in sha512_process_bytes()
323 while (len > 128) { in sha512_process_bytes()
326 len -= 128; in sha512_process_bytes()
333 len &= 127; in sha512_process_bytes()
338 if (len > 0) { in sha512_process_bytes()
[all …]
/PHP-5.5/ext/mysqlnd/
H A Dmysqlnd_wireprotocol.c489 int len; in php_mysqlnd_auth_write() local
511 p+= len; in php_mysqlnd_auth_write()
559 p+= len; in php_mysqlnd_auth_write()
1054 size_t len; in php_mysqlnd_rset_header_read() local
1195 unsigned long len; in php_mysqlnd_rset_field_read() local
1230 switch ((len)) { in php_mysqlnd_rset_field_read()
1240 p += len; in php_mysqlnd_rset_field_read()
1308 p += len; in php_mysqlnd_rset_field_read()
1674 *(p + len) = '\0'; in php_mysqlnd_rowp_read_text_protocol()
1733 p -= len; in php_mysqlnd_rowp_read_text_protocol()
[all …]
/PHP-5.5/sapi/milter/
H A Dphp_milter.c440 ZVAL_STRINGL(param[0], (char*)bodyp, len, 1); /*alex*/ in mlfi_body()
613 int len; in PHP_FUNCTION() local
634 int len; in PHP_FUNCTION() local
639 …} else if (zend_parse_parameters(3 TSRMLS_CC, "sss", &rcode, &len, &xcode, &len, &message, &len) =… in PHP_FUNCTION()
654 int len; in PHP_FUNCTION() local
659 } else if (zend_parse_parameters(2 TSRMLS_CC, "ss", &f, &len, &v, &len) == SUCCESS) { in PHP_FUNCTION()
675 int len; in PHP_FUNCTION() local
680 } else if (zend_parse_parameters(3 TSRMLS_CC, "sls", &f, &len, &idx, &v, &len) == SUCCESS) { in PHP_FUNCTION()
695 int len; in PHP_FUNCTION() local
715 int len; in PHP_FUNCTION() local
[all …]

Completed in 82 milliseconds

12345678910>>...20