Lines Matching refs:len
34 ((smart_string *)(src))->len, (what));
42 #define smart_string_appendl(str, src, len) \ argument
43 smart_string_appendl_ex((str), (src), (len), 0)
51 ZEND_API void ZEND_FASTCALL _smart_string_alloc_persistent(smart_string *str, size_t len);
52 ZEND_API void ZEND_FASTCALL _smart_string_alloc(smart_string *str, size_t len);
54 static zend_always_inline size_t smart_string_alloc(smart_string *str, size_t len, bool persistent)… in smart_string_alloc() argument
55 if (UNEXPECTED(!str->c) || UNEXPECTED(len >= str->a - str->len)) { in smart_string_alloc()
57 _smart_string_alloc_persistent(str, len); in smart_string_alloc()
59 _smart_string_alloc(str, len); in smart_string_alloc()
62 return str->len + len; in smart_string_alloc()
70 str->a = str->len = 0; in smart_string_free_ex()
75 str->c[str->len] = '\0'; in smart_string_0()
80 dest->len = smart_string_alloc(dest, 1, persistent); in smart_string_appendc_ex()
81 dest->c[dest->len - 1] = ch; in smart_string_appendc_ex()
84 …ne void smart_string_appendl_ex(smart_string *dest, const char *str, size_t len, bool persistent) { in smart_string_appendl_ex() argument
85 size_t new_len = smart_string_alloc(dest, len, persistent); in smart_string_appendl_ex()
86 memcpy(dest->c + dest->len, str, len); in smart_string_appendl_ex()
87 dest->len = new_len; in smart_string_appendl_ex()
103 static zend_always_inline void smart_string_setl(smart_string *dest, char *src, size_t len) { in smart_string_setl() argument
104 dest->len = len; in smart_string_setl()
105 dest->a = len + 1; in smart_string_setl()
110 str->len = 0; in smart_string_reset()