Lines Matching refs:dest
33 ZEND_API void smart_str_append_printf(smart_str *dest, const char *format, ...)
37 ZEND_API zend_result ZEND_FASTCALL smart_str_append_zval(smart_str *dest, const zval *value, size_t…
57 static zend_always_inline char* smart_str_extend_ex(smart_str *dest, size_t len, bool persistent) { in smart_str_extend_ex() argument
58 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex()
59 char *ret = ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s); in smart_str_extend_ex()
60 ZSTR_LEN(dest->s) = new_len; in smart_str_extend_ex()
64 static zend_always_inline char* smart_str_extend(smart_str *dest, size_t length) in smart_str_extend() argument
66 return smart_str_extend_ex(dest, length, false); in smart_str_extend()
100 static zend_always_inline void smart_str_trim_to_size(smart_str *dest) in smart_str_trim_to_size() argument
102 smart_str_trim_to_size_ex(dest, false); in smart_str_trim_to_size()
118 static zend_always_inline zend_string *smart_str_extract(smart_str *dest) in smart_str_extract() argument
120 return smart_str_extract_ex(dest, false); in smart_str_extract()
123 static zend_always_inline void smart_str_appendc_ex(smart_str *dest, char ch, bool persistent) { in smart_str_appendc_ex() argument
124 size_t new_len = smart_str_alloc(dest, 1, persistent); in smart_str_appendc_ex()
125 ZSTR_VAL(dest->s)[new_len - 1] = ch; in smart_str_appendc_ex() local
126 ZSTR_LEN(dest->s) = new_len; in smart_str_appendc_ex()
129 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
130 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex()
131 memcpy(ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s), str, len); in smart_str_appendl_ex()
132 ZSTR_LEN(dest->s) = new_len; in smart_str_appendl_ex()
135 static zend_always_inline void smart_str_append_ex(smart_str *dest, const zend_string *src, bool pe… in smart_str_append_ex() argument
136 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex()
139 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
141 smart_str_append_ex(dest, src->s, persistent); in smart_str_append_smart_str_ex()
145 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
148 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_long_ex()
151 static zend_always_inline void smart_str_append_long(smart_str *dest, zend_long num) in smart_str_append_long() argument
153 smart_str_append_long_ex(dest, num, false); in smart_str_append_long()
156 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
159 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_unsigned_ex()
162 static zend_always_inline void smart_str_append_unsigned(smart_str *dest, zend_ulong num) in smart_str_append_unsigned() argument
164 smart_str_append_unsigned_ex(dest, num, false); in smart_str_append_unsigned()
167 static zend_always_inline void smart_str_appendl(smart_str *dest, const char *src, size_t length) in smart_str_appendl() argument
169 smart_str_appendl_ex(dest, src, length, false); in smart_str_appendl()
171 static zend_always_inline void smart_str_appends_ex(smart_str *dest, const char *src, bool persiste… in smart_str_appends_ex() argument
173 smart_str_appendl_ex(dest, src, strlen(src), persistent); in smart_str_appends_ex()
175 static zend_always_inline void smart_str_appends(smart_str *dest, const char *src) in smart_str_appends() argument
177 smart_str_appendl_ex(dest, src, strlen(src), false); in smart_str_appends()
179 static zend_always_inline void smart_str_append(smart_str *dest, const zend_string *src) in smart_str_append() argument
181 smart_str_append_ex(dest, src, false); in smart_str_append()
183 static zend_always_inline void smart_str_appendc(smart_str *dest, char ch) in smart_str_appendc() argument
185 smart_str_appendc_ex(dest, ch, false); in smart_str_appendc()
187 static zend_always_inline void smart_str_append_smart_str(smart_str *dest, const smart_str *src) in smart_str_append_smart_str() argument
189 smart_str_append_smart_str_ex(dest, src, false); in smart_str_append_smart_str()
192 static zend_always_inline void smart_str_setl(smart_str *dest, const char *src, size_t len) { in smart_str_setl() argument
193 smart_str_free(dest); in smart_str_setl()
194 smart_str_appendl(dest, src, len); in smart_str_setl()
197 static zend_always_inline void smart_str_sets(smart_str *dest, const char *src) in smart_str_sets() argument
199 smart_str_setl(dest, src, strlen(src)); in smart_str_sets()