Lines Matching refs:len
30 #define smart_str_extend(dest, len) \ argument
31 smart_str_extend_ex((dest), (len), 0)
34 #define smart_str_appendl(dest, src, len) \ argument
35 smart_str_appendl_ex((dest), (src), (len), 0)
51 ZEND_API void ZEND_FASTCALL smart_str_erealloc(smart_str *str, size_t len);
52 ZEND_API void ZEND_FASTCALL smart_str_realloc(smart_str *str, size_t len);
59 static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, zend_bool persistent) { in END_EXTERN_C()
63 len += ZSTR_LEN(str->s); in END_EXTERN_C()
64 if (UNEXPECTED(len >= str->a)) { in END_EXTERN_C()
67 smart_str_realloc(str, len); in END_EXTERN_C()
69 smart_str_erealloc(str, len); in END_EXTERN_C()
73 return len; in END_EXTERN_C()
76 static zend_always_inline char* smart_str_extend_ex(smart_str *dest, size_t len, zend_bool persiste… in smart_str_extend_ex() argument
77 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex()
119 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
120 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex()
121 memcpy(ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s), str, len); in smart_str_appendl_ex()
147 static zend_always_inline void smart_str_setl(smart_str *dest, const char *src, size_t len) { in smart_str_setl() argument
149 smart_str_appendl(dest, src, len); in smart_str_setl()