Home
last modified time | relevance | path

Searched refs:len (Results 76 – 100 of 535) sorted by relevance

12345678910>>...22

/PHP-5.6/sapi/cli/
H A Dphp_cli.c345 unsigned int len; in sapi_cli_register_variables() local
354 len = strlen(php_self); in sapi_cli_register_variables()
355 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len TSRMLS_CC)) { in sapi_cli_register_variables()
358 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len TSRMLS_CC)) { in sapi_cli_register_variables()
362 len = strlen(script_filename); in sapi_cli_register_variables()
370 len = 0U; in sapi_cli_register_variables()
1046 size_t len, index = 0; in do_cli() local
1060 len = strlen(input); in do_cli()
1061 while (len-- && (input[len]=='\n' || input[len]=='\r')) { in do_cli()
1062 input[len] = '\0'; in do_cli()
[all …]
/PHP-5.6/ext/fileinfo/libmagic/
H A Dfuncs.c65 int len; in file_printf() local
148 len); in file_oomem()
339 size_t psize, len; in file_getbuffer() local
351 len = strlen(ms->o.buf); in file_getbuffer()
355 psize = len * 4 + 1; in file_getbuffer()
372 eop = op + len; in file_getbuffer()
414 size_t len; in file_check_mem() local
416 if (level >= ms->c.len) { in file_check_mem()
417 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem()
419 emalloc(len) : in file_check_mem()
[all …]
H A Dcdf.c152 (void)memcpy(&(a), &buf[len], sizeof(a)), len += sizeof(a)
154 (void)memcpy((a), &buf[len], sizeof(a)), len += sizeof(a)
314 if (FINFO_READ_FUNC(info->i_fd, buf, len) != (ssize_t)len) in cdf_read()
378 return len; in cdf_read_short_sector()
1038 int len = 0; in cdf_print_elapsed_time() local
1051 len += snprintf(buf + len, bufsiz - len, "%dd+", days); in cdf_print_elapsed_time()
1057 len += snprintf(buf + len, bufsiz - len, "%.2d:", hours); in cdf_print_elapsed_time()
1062 len += snprintf(buf + len, bufsiz - len, "%.2d:", mins); in cdf_print_elapsed_time()
1064 return len; in cdf_print_elapsed_time()
1066 len += snprintf(buf + len, bufsiz - len, "%.2d", secs); in cdf_print_elapsed_time()
[all …]
H A Dstrcasestr.c70 size_t len; in strcasestr() local
74 len = strlen(find); in strcasestr()
80 } while (_strncasecmp(s, find, len) != 0); in strcasestr()
/PHP-5.6/ext/standard/
H A Durl_scanner_ex.re237 switch (ctx->tag.len) {
280 ctx->tag.len = 0;
291 ctx->arg.len = 0;
383 ctx->buf.len = rest;
430 ctx->result.len = 0;
461 size_t len;
466 if (len > UINT_MAX)
467 len = UINT_MAX;
472 if (ctx->buf.len) {
480 ctx->result.len = 0;
[all …]
/PHP-5.6/ext/mbstring/
H A Dmbstring.c2740 long from, len; in PHP_FUNCTION() local
2790 if (len < 0) { in PHP_FUNCTION()
2791 len = (mblen - from) + len; in PHP_FUNCTION()
2793 len = 0; in PHP_FUNCTION()
2846 len = string.len; in PHP_FUNCTION()
2865 if (len < 0) { in PHP_FUNCTION()
2866 len = (string.len - from) + len; in PHP_FUNCTION()
2868 len = 0; in PHP_FUNCTION()
4608 …if (illegalchars == 0 && string.len == result.len && memcmp(string.val, result.val, string.len) ==… in PHP_FUNCTION()
4742 haystack.len = len; in php_mb_stripos()
[all …]
/PHP-5.6/ext/xmlrpc/libxmlrpc/
H A Dxmlrpc.h325 XMLRPC_VALUE XMLRPC_CreateValueBase64(const char* id, const char* s, int len);
330 XMLRPC_VALUE XMLRPC_CreateValueString(const char* id, const char* s, int len);
351 const char *XMLRPC_SetValueString(XMLRPC_VALUE value, const char* s, int len);
352 void XMLRPC_SetValueBase64(XMLRPC_VALUE value, const char* s, int len);
353 const char *XMLRPC_SetValueID_Case(XMLRPC_VALUE value, const char* id, int len, XMLRPC_CASE id_case…
354 #define XMLRPC_SetValueID(value, id, len) XMLRPC_SetValueID_Case(value, id, len, XMLRPC_DEFAULT_ID_… argument
373 XMLRPC_REQUEST XMLRPC_REQUEST_FromXML(const char* in_buf, int len, XMLRPC_REQUEST_INPUT_OPTIONS in_…
374 XMLRPC_VALUE XMLRPC_VALUE_FromXML(const char* in_buf, int len, XMLRPC_REQUEST_INPUT_OPTIONS in_opti…
427 …MLRPC_VectorAppendString(vector, id, s, len) XMLRPC_AddValueToVector(vector, XMLRPC_CreateValueStr… argument
428 …MLRPC_VectorAppendBase64(vector, id, s, len) XMLRPC_AddValueToVector(vector, XMLRPC_CreateValueBas… argument
H A Dencodings.c116 char* utf8_encode(const char *s, int len, int *newlen, const char* encoding) in utf8_encode() argument
118 return convert(s, len, newlen, encoding, "UTF-8"); in utf8_encode()
122 char* utf8_decode(const char *s, int len, int *newlen, const char* encoding) in utf8_decode() argument
124 return convert(s, len, newlen, "UTF-8", encoding); in utf8_decode()
H A Dxml_element.c281 return fptr && text ? fptr(data, text, len ? len : strlen(text)) : 0; in xml_elem_writefunc()
439 if(!el->text.len && !Q_Size(&el->children)) { in xml_element_serialize()
447 if(el->text.len) { in xml_element_serialize()
449 int buflen = el->text.len; in xml_element_serialize()
545 *buf_len = buf.len; in xml_elem_serialize_to_string()
637 int len) in _xmlrpc_charHandler() argument
647 len = new_len; in _xmlrpc_charHandler()
714 if(!len) { in xml_elem_parse_buf()
715 len = strlen(in_buf); in xml_elem_parse_buf()
726 if(byte_idx > len) { in xml_elem_parse_buf()
[all …]
/PHP-5.6/sapi/phpdbg/
H A Dphpdbg_cmd.c163 dest->str = estrndup(src->str, src->len); in phpdbg_copy_param()
164 dest->len = src->len; in phpdbg_copy_param()
168 dest->str = estrndup(src->str, src->len); in phpdbg_copy_param()
169 dest->len = src->len; in phpdbg_copy_param()
194 dest->str = estrndup(src->str, src->len); in phpdbg_copy_param()
196 dest->len = src->len; in phpdbg_copy_param()
285 return (l->len == r->len) && in phpdbg_match_param()
464 stack->len++; in phpdbg_stack_push()
576 if ((name->len == 1) || (command->name_len >= name->len)) { in phpdbg_stack_resolve()
598 if (name->len == command->name_len) in phpdbg_stack_resolve()
[all …]
/PHP-5.6/ext/mbstring/oniguruma/
H A Dregposerr.c77 size_t len; in regerror() local
91 len = strlen(s) + 1; /* use strlen() because s is ascii encoding. */ in regerror()
97 return len; in regerror()
/PHP-5.6/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_string.c52 string->len = 0; in mbfl_string_init()
63 string->len = 0; in mbfl_string_init_set()
75 string->len = 0; in mbfl_string_clear()
/PHP-5.6/ext/dba/libcdb/
H A Dcdb_make.c46 static int cdb_posplus(struct cdb_make *c, uint32 len) in cdb_posplus() argument
48 uint32 newpos = c->pos + len; in cdb_posplus()
49 if (newpos < len) { in cdb_posplus()
142 uint32 len; in cdb_make_finish() local
195 len = count + count; /* no overflow possible */ in cdb_make_finish()
197 uint32_pack(c->final + 8 * i + 4,len); in cdb_make_finish()
199 for (u = 0;u < len;++u) in cdb_make_finish()
204 where = (hp->h >> 8) % len; in cdb_make_finish()
206 if (++where == len) in cdb_make_finish()
211 for (u = 0;u < len;++u) { in cdb_make_finish()
/PHP-5.6/Zend/
H A Dzend_ini_scanner.l135 #define zend_ini_copy_value(retval, str, len) { \ argument
136 Z_STRVAL_P(retval) = zend_strndup(str, len); \
137 Z_STRLEN_P(retval) = len; \
143 zend_ini_copy_typed_value(ini_lval, type, str, len); \
145 zend_ini_copy_value(ini_lval, str, len); \
183 if (convert_to_number(retval, str, len) == SUCCESS) { in zend_ini_copy_typed_value()
188 zend_ini_copy_value(retval, str, len); in zend_ini_copy_typed_value()
212 YYLIMIT = YYCURSOR + len; in yy_scan_buffer()
297 int len = strlen(str); in zend_ini_prepare_string_for_scanning() local
303 yy_scan_buffer(str, len TSRMLS_CC); in zend_ini_prepare_string_for_scanning()
[all …]
/PHP-5.6/ext/mbstring/oniguruma/enc/
H A Dutf8.c96 int c, len; in mbc_to_code() local
99 len = mbc_enc_len(p); in mbc_to_code()
100 if (len > end - p) len = end - p; in mbc_to_code()
103 if (len > 1) { in mbc_to_code()
104 len--; in mbc_to_code()
105 n = c & ((1 << (6 - len)) - 1); in mbc_to_code()
106 while (len--) { in mbc_to_code()
H A Deuc_tw.c92 int len; in euctw_left_adjust_char_head() local
98 len = enclen(ONIG_ENCODING_EUC_TW, p); in euctw_left_adjust_char_head()
99 if (p + len > s) return (UChar* )p; in euctw_left_adjust_char_head()
100 p += len; in euctw_left_adjust_char_head()
H A Dunicode.c10819 int len; in onigenc_unicode_property_name_to_ctype() local
10826 len = 0; in onigenc_unicode_property_name_to_ctype()
10839 buf[len] = 0; in onigenc_unicode_property_name_to_ctype()
10974 if (*pp + len > end) len = end - *pp;
10975 *pp += len;
11001 fold += len;
11002 rlen += len;
11011 return len;
11307 p += len;
11321 len += clen;
[all …]
/PHP-5.6/ext/json/
H A Djson.c379 for (j=0 ; pos < len ; j++) { in json_utf8_to_utf16()
395 for (j=0 ; pos < len ; j++) { in json_utf8_to_utf16()
417 if (len == 0) { in json_escape_string()
464 len = ulen; in json_escape_string()
468 smart_str_alloc(buf, len+2, 0); in json_escape_string()
471 while (pos < len) in json_escape_string()
642 int len; in php_json_encode() local
647 len = strlen(num); in php_json_encode()
649 num[len++] = '.'; in php_json_encode()
650 num[len++] = '0'; in php_json_encode()
[all …]
/PHP-5.6/ext/interbase/
H A Dibase_service.c340 int len; in _php_ibase_service_query() local
353 len = isc_vax_integer(result,2); in _php_ibase_service_query()
355 result += len+2; in _php_ibase_service_query()
367 int len; in _php_ibase_service_query() local
375 len = isc_vax_integer(result,2); in _php_ibase_service_query()
377 result += len+2; in _php_ibase_service_query()
381 len = isc_vax_integer(result,2); in _php_ibase_service_query()
383 result += len+2; in _php_ibase_service_query()
387 len = isc_vax_integer(result,2); in _php_ibase_service_query()
389 result += len+2; in _php_ibase_service_query()
[all …]
/PHP-5.6/main/
H A Dsnprintf.c359 *len = buf_end - p; in ap_php_conv_10()
398 *len = strlen(p); in php_conv_fp()
399 memcpy(buf, p, *len + 1); in php_conv_fp()
466 *len = s - buf; in php_conv_fp()
496 *len = buf_end - p; in ap_php_conv_p2()
574 while ( width > len )
1219 if (len == 0) { in strx_printv()
1248 if (cc >= len) { in ap_php_slprintf()
1249 cc = len -1; in ap_php_slprintf()
1261 if (cc >= len) { in ap_php_vslprintf()
[all …]
/PHP-5.6/sapi/cgi/
H A Dcgi_main.c419 int len; in sapi_cgi_send_headers() local
570 int len; in _sapi_cgi_putenv() local
599 len = slprintf(buf, len - 1, "%s=%s", name, value); in _sapi_cgi_putenv()
605 len = slprintf(buf, len - 1, "%s=", name); in _sapi_cgi_putenv()
1670 int len = 0; local
1679 while (len > 0 && (h->header[len-1] == ' ' || h->header[len-1] == '\t')) {
1680 len--;
1682 if (len) {
1685 s[len] = 0;
2296 len = 0;
[all …]
/PHP-5.6/ext/phar/
H A Dphar_path_check.re23 phar_path_check_result phar_path_check(char **s, int *len, const char **error)
28 if (*len == 1 && *p == '.') {
31 } else if (*len == 2 && p[0] == '.' && p[1] == '.') {
38 #define YYLIMIT p+*len
84 *len = (p - (const unsigned char*)*s) -1;
94 (*len)--;
96 if ((p - (const unsigned char*)*s) - 1 != *len)
/PHP-5.6/ext/opcache/
H A DZendAccelerator.h103 # define FLOCK_STRUCTURE(name, type, whence, start, len) \ argument
104 struct flock name = {start, len, -1, type, whence}
106 # define FLOCK_STRUCTURE(name, type, whence, start, len) \ argument
107 struct flock name = {type, whence, start, len}
109 # define FLOCK_STRUCTURE(name, type, whence, start, len) \ argument
110 struct flock name = {type, whence, start, len, 0}
114 struct flock name = {type, whence, 0, 0, 0, start, len }
117 struct flock name = {type, whence, start, len}
120 # define FLOCK_STRUCTURE(name, type, whence, start, len) \ argument
121 struct flock name = {start, len, -1, type, whence}
[all …]
/PHP-5.6/ext/skeleton/
H A Dskeleton.c39 int arg_len, len; in PHP_FUNCTION() local
46len = spprintf(&strg, 0, "Congratulations! You have successfully modified ext/%.78s/config.m4. Mod… in PHP_FUNCTION()
47 RETURN_STRINGL(strg, len, 0); in PHP_FUNCTION()
/PHP-5.6/ext/ereg/regex/
H A Dregerror.c72 register size_t len; in regerror() local
97 len = strlen(s) + 1; in regerror()
99 if (errbuf_size > len) in regerror()
107 return(len); in regerror()

Completed in 112 milliseconds

12345678910>>...22