Home
last modified time | relevance | path

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

12345678910>>...22

/PHP-7.1/ext/mbstring/
H A Dmbstring.c2904 len = str_len; in PHP_FUNCTION()
2926 if (len < 0) { in PHP_FUNCTION()
2927 len = (mblen - from) + len; in PHP_FUNCTION()
2929 len = 0; in PHP_FUNCTION()
2990 len = string.len; in PHP_FUNCTION()
3006 if (len < 0) { in PHP_FUNCTION()
3007 len = (string.len - from) + len; in PHP_FUNCTION()
3009 len = 0; in PHP_FUNCTION()
4768 …if (illegalchars == 0 && string.len == result.len && memcmp(string.val, result.val, string.len) ==… in php_mb_check_encoding()
4926 haystack.len = len; in php_mb_stripos()
[all …]
/PHP-7.1/ext/pdo_pgsql/tests/
H A Dbug62498-32bit.phpt61 ["len"]=>
80 ["len"]=>
99 ["len"]=>
118 ["len"]=>
137 ["len"]=>
156 ["len"]=>
175 ["len"]=>
194 ["len"]=>
213 ["len"]=>
H A Dbug62498.phpt61 ["len"]=>
80 ["len"]=>
99 ["len"]=>
118 ["len"]=>
137 ["len"]=>
156 ["len"]=>
175 ["len"]=>
194 ["len"]=>
213 ["len"]=>
/PHP-7.1/ext/mbstring/oniguruma/enc/
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()
10992 if (*pp + len > end) len = end - *pp;
10993 *pp += len;
11019 fold += len;
11020 rlen += len;
11029 return len;
11325 p += len;
11339 len += clen;
[all …]
H A Dbig5.c118 int len; in big5_left_adjust_char_head() local
131 len = enclen(ONIG_ENCODING_BIG5, p); in big5_left_adjust_char_head()
132 if (p + len > s) return (UChar* )p; in big5_left_adjust_char_head()
133 p += len; in big5_left_adjust_char_head()
H A Deuc_kr.c101 int len; in euckr_left_adjust_char_head() local
107 len = enclen(ONIG_ENCODING_EUC_KR, p); in euckr_left_adjust_char_head()
108 if (p + len > s) return (UChar* )p; in euckr_left_adjust_char_head()
109 p += len; in euckr_left_adjust_char_head()
/PHP-7.1/ext/xmlrpc/libxmlrpc/
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 …]
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-7.1/main/
H A Dsnprintf.c363 *len = buf_end - p; in ap_php_conv_10()
402 *len = strlen(p); in php_conv_fp()
403 memcpy(buf, p, *len + 1); in php_conv_fp()
470 *len = s - buf; in php_conv_fp()
500 *len = buf_end - p; in ap_php_conv_p2()
578 while ( width > len )
1241 if (len == 0) { in strx_printv()
1270 if ((size_t)cc >= len) { in ap_php_slprintf()
1271 cc = (int)len -1; in ap_php_slprintf()
1283 if ((size_t)cc >= len) { in ap_php_vslprintf()
[all …]
/PHP-7.1/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
86 *len = (p - (const unsigned char*)*s) -1;
96 (*len)--;
98 if ((p - (const unsigned char*)*s) - 1 != *len)
/PHP-7.1/ext/zip/lib/
H A Dzip_file_set_comment.c42 const char *comment, zip_uint16_t len, zip_flags_t flags) in zip_file_set_comment() argument
56 if (len > 0 && comment == NULL) { in zip_file_set_comment()
61 if (len > 0) { in zip_file_set_comment()
62 if ((cstr=_zip_string_new((const zip_uint8_t *)comment, len, flags, &za->error)) == NULL) in zip_file_set_comment()
/PHP-7.1/ext/standard/tests/strings/
H A Dstrcspn_basic.phpt5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided, it works like strcspn(substr($s,$start,$len),$bad_chars)
23 $len = 30;
26 var_dump( strcspn($str, $mask, $start, $len) );
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) );
/PHP-7.1/ext/sockets/tests/
H A Dsocket_sentto_recvfrom_ipv4_udp.phpt27 $len = strlen($msg);
28 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address, 1223);
31 } else if ($bytes_sent != $len) {
32 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
42 } else if ($bytes_received != $len) {
43 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
H A Dsocket_sentto_recvfrom_ipv6_udp.phpt29 $len = strlen($msg);
30 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address, 1223);
33 } else if ($bytes_sent != $len) {
34 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
44 } else if ($bytes_received != $len) {
45 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
H A Dsocket_sentto_recvfrom_ipv6_udp-win32.phpt29 $len = strlen($msg);
30 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address, 1223);
33 } else if ($bytes_sent != $len) {
34 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
44 } else if ($bytes_received != $len) {
45 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
/PHP-7.1/ext/pgsql/tests/
H A Dpg_meta_data_001.phpt37 ["len"]=>
54 ["len"]=>
73 ["len"]=>
90 ["len"]=>
109 ["len"]=>
134 ["len"]=>
/PHP-7.1/ext/hash/
H A Dhash_crc32.c31 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) in PHP_CRC32Update() argument
35 for (i = 0; i < len; ++i) { in PHP_CRC32Update()
40 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) in PHP_CRC32BUpdate() argument
44 for (i = 0; i < len; ++i) { in PHP_CRC32BUpdate()
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()
/PHP-7.1/ext/filter/
H A Dlogical_filters.c194 size_t len; in php_filter_int() local
204 len = Z_STRLEN_P(value); in php_filter_int()
206 if (len == 0) { in php_filter_int()
225 p++; len--; in php_filter_int()
227 p++; len--; in php_filter_int()
235 } else if (len != 0) { in php_filter_int()
265 switch (len) { in php_filter_boolean()
325 size_t len; in php_filter_float() local
340 len = Z_STRLEN_P(value); in php_filter_float()
344 end = str + len; in php_filter_float()
[all …]
/PHP-7.1/ext/fileinfo/libmagic/
H A Dcdf.c157 (void)memcpy(&(a), &buf[len], sizeof(a)), len += sizeof(a)
159 (void)memcpy((a), &buf[len], sizeof(a)), len += sizeof(a)
319 if (FINFO_READ_FUNC(info->i_fd, buf, len) != (ssize_t)len) in cdf_read()
383 return len; in cdf_read_short_sector()
1141 int len = 0; in cdf_print_elapsed_time() local
1154 len += snprintf(buf + len, bufsiz - len, "%dd+", days); in cdf_print_elapsed_time()
1160 len += snprintf(buf + len, bufsiz - len, "%.2d:", hours); in cdf_print_elapsed_time()
1165 len += snprintf(buf + len, bufsiz - len, "%.2d:", mins); in cdf_print_elapsed_time()
1167 return len; in cdf_print_elapsed_time()
1169 len += snprintf(buf + len, bufsiz - len, "%.2d", secs); in cdf_print_elapsed_time()
[all …]
/PHP-7.1/sapi/phpdbg/
H A Dphpdbg_print.c153 if (phpdbg_safe_class_lookup(param->str, param->len, &ce) == SUCCESS) { in PHPDBG_PRINT()
216 size_t func_name_len = param->len; in PHPDBG_PRINT()
267 void phpdbg_print_opcodes_function(const char *function, size_t len) { in phpdbg_print_opcodes_function() argument
268 zend_function *func = zend_hash_str_find_ptr(EG(function_table), function, len); in phpdbg_print_opcodes_function()
274 ….function_name->len == len && !zend_binary_strcasecmp(function, len, func->op_array.function_name-… in phpdbg_print_opcodes_function()
275 phpdbg_print_opcodes_function(rt_name->val, rt_name->len); in phpdbg_print_opcodes_function()
310 …if (ce->name->len == strlen(class) && !zend_binary_strcasecmp(class, strlen(class), ce->name->val,… in phpdbg_print_opcodes_method()
368 …if (ce->name->len == strlen(class) && !zend_binary_strcasecmp(class, strlen(class), ce->name->val,… in phpdbg_print_opcodes_class()
/PHP-7.1/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-7.1/ext/mbstring/oniguruma/
H A Dregposix.c39 #define ENC_STRING_LEN(enc,s,len) do { \ argument
43 len = tmps - (UChar* )(s); \
46 len = onigenc_str_bytelen_null(enc, (UChar* )s); \
136 int r, len; in regcomp() local
153 ENC_STRING_LEN(OnigEncDefaultCharEncoding, pattern, len); in regcomp()
154 r = onig_new(PONIG_C(reg), (UChar* )pattern, (UChar* )(pattern + len), in regcomp()
169 int r, i, len; in regexec() local
192 ENC_STRING_LEN(ONIG_C(reg)->enc, str, len); in regexec()
193 end = (UChar* )(str + len); in regexec()

Completed in 64 milliseconds

12345678910>>...22