Lines Matching refs:ZSTR_LEN
52 #define ZSTR_LEN(zstr) (zstr)->len in END_EXTERN_C() macro
82 ZSTR_LEN(str) = _len; \ in END_EXTERN_C()
98 ZSTR_H(s) = zend_hash_func(ZSTR_VAL(s), ZSTR_LEN(s));
146 ZSTR_LEN(ret) = len; in zend_string_alloc()
164 ZSTR_LEN(ret) = (n * m) + l; in zend_string_safe_alloc()
197 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_dup()
208 ZSTR_LEN(ret) = len; in zend_string_realloc()
216 memcpy(ZSTR_VAL(ret), ZSTR_VAL(s), MIN(len, ZSTR_LEN(s)) + 1); in zend_string_realloc()
224 ZEND_ASSERT(len >= ZSTR_LEN(s)); in zend_string_extend()
228 ZSTR_LEN(ret) = len; in zend_string_extend()
236 memcpy(ZSTR_VAL(ret), ZSTR_VAL(s), ZSTR_LEN(s) + 1); in zend_string_extend()
244 ZEND_ASSERT(len <= ZSTR_LEN(s)); in zend_string_truncate()
248 ZSTR_LEN(ret) = len; in zend_string_truncate()
267 ZSTR_LEN(ret) = (n * m) + l; in zend_string_safe_realloc()
275 memcpy(ZSTR_VAL(ret), ZSTR_VAL(s), MIN((n * m) + l, ZSTR_LEN(s)) + 1); in zend_string_safe_realloc()
299 …return s1 == s2 || (ZSTR_LEN(s1) == ZSTR_LEN(s2) && !memcmp(ZSTR_VAL(s1), ZSTR_VAL(s2), ZSTR_LEN(s… in zend_string_equals()
303 …(ZSTR_LEN(s1) == ZSTR_LEN(s2) && !zend_binary_strcasecmp(ZSTR_VAL(s1), ZSTR_LEN(s1), ZSTR_VAL(s2),…
306 …(ZSTR_LEN(str) == sizeof(c) - 1 && !zend_binary_strcasecmp(ZSTR_VAL(str), ZSTR_LEN(str), (c), size…
309 (ZSTR_LEN(str) == sizeof(literal)-1 && !memcmp(ZSTR_VAL(str), literal, sizeof(literal) - 1))