Lines Matching refs:dest
24 #define smart_str_appends_ex(dest, src, what) \ argument
25 smart_str_appendl_ex((dest), (src), strlen(src), (what))
26 #define smart_str_appends(dest, src) \ argument
27 smart_str_appendl((dest), (src), strlen(src))
28 #define smart_str_extend(dest, len) \ argument
29 smart_str_extend_ex((dest), (len), 0)
30 #define smart_str_appendc(dest, c) \ argument
31 smart_str_appendc_ex((dest), (c), 0)
32 #define smart_str_appendl(dest, src, len) \ argument
33 smart_str_appendl_ex((dest), (src), (len), 0)
34 #define smart_str_append(dest, src) \ argument
35 smart_str_append_ex((dest), (src), 0)
36 #define smart_str_append_smart_str(dest, src) \ argument
37 smart_str_append_smart_str_ex((dest), (src), 0)
38 #define smart_str_sets(dest, src) \ argument
39 smart_str_setl((dest), (src), strlen(src));
40 #define smart_str_append_long(dest, val) \ argument
41 smart_str_append_long_ex((dest), (val), 0)
42 #define smart_str_append_unsigned(dest, val) \ argument
43 smart_str_append_unsigned_ex((dest), (val), 0)
44 #define smart_str_free(dest) \ argument
45 smart_str_free_ex((dest), 0)
56 ZEND_API void smart_str_append_printf(smart_str *dest, const char *format, ...)
79 static zend_always_inline char* smart_str_extend_ex(smart_str *dest, size_t len, bool persistent) { in smart_str_extend_ex() argument
80 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex()
81 char *ret = ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s); in smart_str_extend_ex()
82 ZSTR_LEN(dest->s) = new_len; in smart_str_extend_ex()
116 static zend_always_inline void smart_str_appendc_ex(smart_str *dest, char ch, bool persistent) { in smart_str_appendc_ex() argument
117 size_t new_len = smart_str_alloc(dest, 1, persistent); in smart_str_appendc_ex()
118 ZSTR_VAL(dest->s)[new_len - 1] = ch; in smart_str_appendc_ex() local
119 ZSTR_LEN(dest->s) = new_len; in smart_str_appendc_ex()
122 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
123 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex()
124 memcpy(ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s), str, len); in smart_str_appendl_ex()
125 ZSTR_LEN(dest->s) = new_len; in smart_str_appendl_ex()
128 static zend_always_inline void smart_str_append_ex(smart_str *dest, const zend_string *src, bool pe… in smart_str_append_ex() argument
129 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex()
132 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
134 smart_str_append_ex(dest, src->s, persistent); in smart_str_append_smart_str_ex()
138 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
141 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_long_ex()
144 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
147 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_unsigned_ex()
150 static zend_always_inline void smart_str_setl(smart_str *dest, const char *src, size_t len) { in smart_str_setl() argument
151 smart_str_free(dest); in smart_str_setl()
152 smart_str_appendl(dest, src, len); in smart_str_setl()