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)
52 ZEND_API void smart_str_append_printf(smart_str *dest, const char *format, ...)
74 static zend_always_inline char* smart_str_extend_ex(smart_str *dest, size_t len, zend_bool persiste… in smart_str_extend_ex() argument
75 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex()
76 char *ret = ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s); in smart_str_extend_ex()
77 ZSTR_LEN(dest->s) = new_len; in smart_str_extend_ex()
111 static zend_always_inline void smart_str_appendc_ex(smart_str *dest, char ch, zend_bool persistent)… in smart_str_appendc_ex() argument
112 size_t new_len = smart_str_alloc(dest, 1, persistent); in smart_str_appendc_ex()
113 ZSTR_VAL(dest->s)[new_len - 1] = ch; in smart_str_appendc_ex() local
114 ZSTR_LEN(dest->s) = new_len; in smart_str_appendc_ex()
117 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
118 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex()
119 memcpy(ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s), str, len); in smart_str_appendl_ex()
120 ZSTR_LEN(dest->s) = new_len; in smart_str_appendl_ex()
123 static zend_always_inline void smart_str_append_ex(smart_str *dest, const zend_string *src, zend_bo… in smart_str_append_ex() argument
124 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex()
127 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
129 smart_str_append_ex(dest, src->s, persistent); in smart_str_append_smart_str_ex()
133 static zend_always_inline void smart_str_append_long_ex(smart_str *dest, zend_long num, zend_bool p… in smart_str_append_long_ex() argument
136 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_long_ex()
139 static zend_always_inline void smart_str_append_unsigned_ex(smart_str *dest, zend_ulong num, zend_b… in smart_str_append_unsigned_ex() argument
142 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_unsigned_ex()
145 static zend_always_inline void smart_str_setl(smart_str *dest, const char *src, size_t len) { in smart_str_setl() argument
146 smart_str_free(dest); in smart_str_setl()
147 smart_str_appendl(dest, src, len); in smart_str_setl()