Lines Matching refs:len
32 #define SMART_STR_NEW_SIZE(len) \ argument
33 (((len + SMART_STR_OVERHEAD + SMART_STR_PAGE) & ~(SMART_STR_PAGE - 1)) - SMART_STR_OVERHEAD - 1)
35 ZEND_API void ZEND_FASTCALL smart_str_erealloc(smart_str *str, size_t len) in smart_str_erealloc() argument
38 str->a = len < SMART_STR_START_SIZE in smart_str_erealloc()
40 : SMART_STR_NEW_SIZE(len); in smart_str_erealloc()
44 str->a = SMART_STR_NEW_SIZE(len); in smart_str_erealloc()
49 ZEND_API void ZEND_FASTCALL smart_str_realloc(smart_str *str, size_t len) in smart_str_realloc() argument
52 str->a = len < SMART_STR_START_SIZE in smart_str_realloc()
54 : SMART_STR_NEW_SIZE(len); in smart_str_realloc()
58 str->a = SMART_STR_NEW_SIZE(len); in smart_str_realloc()
69 size_t i, len = l; in zend_compute_escaped_string_len() local
74 len += 1; in zend_compute_escaped_string_len()
76 len += 3; in zend_compute_escaped_string_len()
79 return len; in zend_compute_escaped_string_len()
84 size_t i, len = zend_compute_escaped_string_len(s, l); in smart_str_append_escaped() local
86 smart_str_alloc(str, len, 0); in smart_str_append_escaped()
88 ZSTR_LEN(str->s) += len; in smart_str_append_escaped()