Lines Matching refs:len

123 int php_tag_find(char *tag, int len, char *set);
308 long start = 0, len = 0; in php_spn_common_handler() local
311 &s22, &len2, &start, &len) == FAILURE) { in php_spn_common_handler()
316 len = len1; in php_spn_common_handler()
330 if (len < 0) { in php_spn_common_handler()
331 len += (len1 - start); in php_spn_common_handler()
332 if (len < 0) { in php_spn_common_handler()
333 len = 0; in php_spn_common_handler()
337 if (len > len1 - start) { in php_spn_common_handler()
338 len = len1 - start; in php_spn_common_handler()
341 if(len == 0) { in php_spn_common_handler()
348 s11 + start + len /*str1_end*/, in php_spn_common_handler()
353 s11 + start + len /*str1_end*/, in php_spn_common_handler()
756 static inline int php_charmask(unsigned char *input, int len, char *mask TSRMLS_DC) in php_charmask() argument
763 for (end = input+len; input < end; input++) { in php_charmask()
772 if (end-len >= input) { /* there was no 'left' char */ in php_charmask()
805 PHPAPI char *php_trim(char *c, int len, char *what, int what_len, zval *return_value, int mode TSRM… in php_trim() argument
818 for (i = 0; i < len; i++) { in php_trim()
825 len -= trimmed; in php_trim()
829 for (i = len - 1; i >= 0; i--) { in php_trim()
831 len--; in php_trim()
839 RETVAL_STRINGL(c, len, 1); in php_trim()
841 return estrndup(c, len); in php_trim()
1218 if (implstr.len) { in php_implode()
1219 RETURN_STRINGL(implstr.c, implstr.len, 0); in php_implode()
1360 PHPAPI char *php_strtoupper(char *s, size_t len) in php_strtoupper() argument
1365 e = (unsigned char *)c+len; in php_strtoupper()
1394 PHPAPI char *php_strtolower(char *s, size_t len) in php_strtolower() argument
1399 e = c+len; in php_strtolower()
1428 PHPAPI void php_basename(const char *s, size_t len, char *suffix, size_t sufflen, char **p_ret, siz… argument
1435 cnt = len;
1498 len = cend - comp;
1501 ret = emalloc(len + 1);
1502 memcpy(ret, comp, len);
1503 ret[len] = '\0';
1507 *p_len = len;
1531 PHPAPI size_t php_dirname(char *path, size_t len) argument
1533 return zend_dirname(path, len);
2317 zval **len = NULL; local
2328 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ|Z", &str, &repl, &from, &len) == FAILURE…
2352 SEPARATE_ZVAL(len);
2353 if (Z_TYPE_PP(len) != IS_ARRAY) {
2354 convert_to_long_ex(len);
2355 l = Z_LVAL_PP(len);
2366 (argc == 4 && Z_TYPE_PP(from) != Z_TYPE_PP(len))
2372 if (zend_hash_num_elements(Z_ARRVAL_PP(from)) != zend_hash_num_elements(Z_ARRVAL_PP(len))) {
2449 if (argc > 3 && Z_TYPE_PP(len) == IS_ARRAY) {
2450 zend_hash_internal_pointer_reset_ex(Z_ARRVAL_PP(len), &pos_len);
2511 if (argc > 3 && Z_TYPE_PP(len) == IS_ARRAY) {
2512 if (SUCCESS == zend_hash_get_current_data_ex(Z_ARRVAL_PP(len), (void **) &tmp_len, &pos_len)) {
2521 zend_hash_move_forward_ex(Z_ARRVAL_PP(len), &pos_len);
2526 l = Z_LVAL_PP(len);
2794 PHPAPI char *php_strtr(char *str, int len, char *str_from, char *str_to, int trlen) argument
2799 if ((trlen < 1) || (len < 1)) {
2809 for (i = 0; i < len; i++) {
2858 static inline HASH php_strtr_hash(const char *str, int len) argument
2862 for (i = 0; i < len; i++) {
3115 RETVAL_STRINGL(result.c, result.len, 0);
3303 PHPAPI void php_stripslashes(char *str, int *len TSRMLS_DC)
3308 if (len != NULL) {
3309 l = *len;
3319 if (len != NULL) {
3320 (*len)--;
3442 PHPAPI void php_stripcslashes(char *str, int *len) argument
3445 int nlen = *len, i;
3499 *len = nlen;
3622 PHPAPI int php_char_to_str_ex(char *str, uint len, char from, char *to, int to_len, zval *result, i… argument
3626 char *source, *target, *tmp, *source_end=str+len, *tmp_end = NULL;
3629 char *p = str, *e = p + len;
3643 ZVAL_STRINGL(result, str, len, 1);
3647 Z_STRLEN_P(result) = len + (char_count * (to_len - 1));
3648 Z_STRVAL_P(result) = target = safe_emalloc(char_count, to_len, len + 1);
3652 char *p = str, *e = p + len, *s = str;
3692 PHPAPI int php_char_to_str(char *str, uint len, char from, char *to, int to_len, zval *result) argument
3694 return php_char_to_str_ex(str, len, from, to, to_len, result, 1, NULL);
4530 int php_tag_find(char *tag, int len, char *set) { argument
4535 if (len <= 0) {
4539 norm = emalloc(len+1);
4585 PHPAPI size_t php_strip_tags(char *rbuf, int len, int *stateptr, char *allow, int allow_len) /* {{{… argument
4587 return php_strip_tags_ex(rbuf, len, stateptr, allow, allow_len, 0);
4611 PHPAPI size_t php_strip_tags_ex(char *rbuf, int len, int *stateptr, char *allow, int allow_len, zen… argument
4621 buf = estrndup(rbuf, len);
4640 while (i < len) {
4868 if (rp < rbuf + len) {
4970 int len, inx; local
4974 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &input, &len, &mymode) == FAILURE) {
4986 while (len > 0) {
4989 len--;
5103 int len, i; local
5124 len = strlen(currlocdata.grouping);
5126 for (i = 0; i < len; i++) {
5131 len = strlen(currlocdata.mon_grouping);
5133 for (i = 0; i < len; i++) {
5384 static void php_string_shuffle(char *str, long len TSRMLS_DC) /* {{{ */
5390 n_elems = len;
5631 long offset, len=0; local
5635 …(ZEND_NUM_ARGS() TSRMLS_CC, "ssl|lb", &s1, &s1_len, &s2, &s2_len, &offset, &len, &cs) == FAILURE) {
5639 if (ZEND_NUM_ARGS() >= 4 && len <= 0) {
5640 if (len == 0) {
5658 cmp_len = (uint) (len ? len : MAX(s2_len, (s1_len - offset)));