Lines Matching refs:len
31 #define smart_str_appendl(dest, src, len) \ argument
32 smart_str_appendl_ex((dest), (src), (len), 0)
46 ZEND_API void ZEND_FASTCALL smart_str_erealloc(smart_str *str, size_t len);
47 ZEND_API void ZEND_FASTCALL smart_str_realloc(smart_str *str, size_t len);
51 static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, zend_bool persistent) { in END_EXTERN_C()
55 len += ZSTR_LEN(str->s); in END_EXTERN_C()
56 if (UNEXPECTED(len >= str->a)) { in END_EXTERN_C()
59 smart_str_realloc(str, len); in END_EXTERN_C()
61 smart_str_erealloc(str, len); in END_EXTERN_C()
65 return len; in END_EXTERN_C()
88 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
89 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex()
90 memcpy(ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s), str, len); in smart_str_appendl_ex()
116 static zend_always_inline void smart_str_setl(smart_str *dest, const char *src, size_t len) { in smart_str_setl() argument
118 smart_str_appendl(dest, src, len); in smart_str_setl()