Lines Matching refs:dest
33 ZEND_API void smart_str_append_printf(smart_str *dest, const char *format, ...)
56 static zend_always_inline char* smart_str_extend_ex(smart_str *dest, size_t len, bool persistent) { in smart_str_extend_ex() argument
57 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex()
58 char *ret = ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s); in smart_str_extend_ex()
59 ZSTR_LEN(dest->s) = new_len; in smart_str_extend_ex()
63 static zend_always_inline char* smart_str_extend(smart_str *dest, size_t length) in smart_str_extend() argument
65 return smart_str_extend_ex(dest, length, false); in smart_str_extend()
99 static zend_always_inline void smart_str_trim_to_size(smart_str *dest) in smart_str_trim_to_size() argument
101 smart_str_trim_to_size_ex(dest, false); in smart_str_trim_to_size()
117 static zend_always_inline zend_string *smart_str_extract(smart_str *dest) in smart_str_extract() argument
119 return smart_str_extract_ex(dest, false); in smart_str_extract()
122 static zend_always_inline void smart_str_appendc_ex(smart_str *dest, char ch, bool persistent) { in smart_str_appendc_ex() argument
123 size_t new_len = smart_str_alloc(dest, 1, persistent); in smart_str_appendc_ex()
124 ZSTR_VAL(dest->s)[new_len - 1] = ch; in smart_str_appendc_ex() local
125 ZSTR_LEN(dest->s) = new_len; in smart_str_appendc_ex()
128 static zend_always_inline void smart_str_appendl_ex(smart_str *dest, const char *str, size_t len, b… in smart_str_appendl_ex() argument
129 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex()
130 memcpy(ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s), str, len); in smart_str_appendl_ex()
131 ZSTR_LEN(dest->s) = new_len; in smart_str_appendl_ex()
134 static zend_always_inline void smart_str_append_ex(smart_str *dest, const zend_string *src, bool pe… in smart_str_append_ex() argument
135 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex()
138 static zend_always_inline void smart_str_append_smart_str_ex(smart_str *dest, const smart_str *src,… in smart_str_append_smart_str_ex() argument
140 smart_str_append_ex(dest, src->s, persistent); in smart_str_append_smart_str_ex()
144 static zend_always_inline void smart_str_append_long_ex(smart_str *dest, zend_long num, bool persis… in smart_str_append_long_ex() argument
147 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_long_ex()
150 static zend_always_inline void smart_str_append_long(smart_str *dest, zend_long num) in smart_str_append_long() argument
152 smart_str_append_long_ex(dest, num, false); in smart_str_append_long()
155 static zend_always_inline void smart_str_append_unsigned_ex(smart_str *dest, zend_ulong num, bool p… in smart_str_append_unsigned_ex() argument
158 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_unsigned_ex()
161 static zend_always_inline void smart_str_append_unsigned(smart_str *dest, zend_ulong num) in smart_str_append_unsigned() argument
163 smart_str_append_unsigned_ex(dest, num, false); in smart_str_append_unsigned()
166 static zend_always_inline void smart_str_appendl(smart_str *dest, const char *src, size_t length) in smart_str_appendl() argument
168 smart_str_appendl_ex(dest, src, length, false); in smart_str_appendl()
170 static zend_always_inline void smart_str_appends_ex(smart_str *dest, const char *src, bool persiste… in smart_str_appends_ex() argument
172 smart_str_appendl_ex(dest, src, strlen(src), persistent); in smart_str_appends_ex()
174 static zend_always_inline void smart_str_appends(smart_str *dest, const char *src) in smart_str_appends() argument
176 smart_str_appendl_ex(dest, src, strlen(src), false); in smart_str_appends()
178 static zend_always_inline void smart_str_append(smart_str *dest, const zend_string *src) in smart_str_append() argument
180 smart_str_append_ex(dest, src, false); in smart_str_append()
182 static zend_always_inline void smart_str_appendc(smart_str *dest, char ch) in smart_str_appendc() argument
184 smart_str_appendc_ex(dest, ch, false); in smart_str_appendc()
186 static zend_always_inline void smart_str_append_smart_str(smart_str *dest, const smart_str *src) in smart_str_append_smart_str() argument
188 smart_str_append_smart_str_ex(dest, src, false); in smart_str_append_smart_str()
191 static zend_always_inline void smart_str_setl(smart_str *dest, const char *src, size_t len) { in smart_str_setl() argument
192 smart_str_free(dest); in smart_str_setl()
193 smart_str_appendl(dest, src, len); in smart_str_setl()
196 static zend_always_inline void smart_str_sets(smart_str *dest, const char *src) in smart_str_sets() argument
198 smart_str_setl(dest, src, strlen(src)); in smart_str_sets()