Lines Matching refs:len
28 #define smart_str_extend(dest, len) \ argument
29 smart_str_extend_ex((dest), (len), 0)
32 #define smart_str_appendl(dest, src, len) \ argument
33 smart_str_appendl_ex((dest), (src), (len), 0)
49 ZEND_API void ZEND_FASTCALL smart_str_erealloc(smart_str *str, size_t len);
50 ZEND_API void ZEND_FASTCALL smart_str_realloc(smart_str *str, size_t len);
57 static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, zend_bool persistent) { in END_EXTERN_C()
61 len += ZSTR_LEN(str->s); in END_EXTERN_C()
62 if (UNEXPECTED(len >= str->a)) { in END_EXTERN_C()
65 smart_str_realloc(str, len); in END_EXTERN_C()
67 smart_str_erealloc(str, len); in END_EXTERN_C()
71 return len; in END_EXTERN_C()
74 static zend_always_inline char* smart_str_extend_ex(smart_str *dest, size_t len, zend_bool persiste… in smart_str_extend_ex() argument
75 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex()
117 static zend_always_inline void smart_str_appendl_ex(smart_str *dest, const char *str, size_t len, z… in smart_str_appendl_ex() argument
118 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex()
119 memcpy(ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s), str, len); in smart_str_appendl_ex()
145 static zend_always_inline void smart_str_setl(smart_str *dest, const char *src, size_t len) { in smart_str_setl() argument
147 smart_str_appendl(dest, src, len); in smart_str_setl()