Lines Matching refs:persistent
39 static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, bool persistent) { in END_EXTERN_C()
46 if (persistent) { in END_EXTERN_C()
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()
68 static zend_always_inline void smart_str_free_ex(smart_str *str, bool persistent) { in smart_str_free_ex() argument
70 zend_string_release_ex(str->s, persistent); in smart_str_free_ex()
91 static zend_always_inline void smart_str_trim_to_size_ex(smart_str *str, bool persistent) in smart_str_trim_to_size_ex() argument
94 str->s = zend_string_realloc(str->s, ZSTR_LEN(str->s), persistent); in smart_str_trim_to_size_ex()
104 static zend_always_inline zend_string *smart_str_extract_ex(smart_str *str, bool persistent) { in smart_str_extract_ex() argument
108 smart_str_trim_to_size_ex(str, persistent); in smart_str_extract_ex()
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()
128 …s_inline void smart_str_appendl_ex(smart_str *dest, const char *str, size_t len, bool persistent) { in smart_str_appendl_ex() argument
129 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex()
134 …_always_inline void smart_str_append_ex(smart_str *dest, const zend_string *src, bool persistent) { 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 …inline void smart_str_append_smart_str_ex(smart_str *dest, const smart_str *src, bool persistent) { 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 …zend_always_inline void smart_str_append_long_ex(smart_str *dest, zend_long num, bool persistent) { 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()
155 …always_inline void smart_str_append_unsigned_ex(smart_str *dest, zend_ulong num, bool persistent) { 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()
170 …tic zend_always_inline void smart_str_appends_ex(smart_str *dest, const char *src, bool persistent) in smart_str_appends_ex() argument
172 smart_str_appendl_ex(dest, src, strlen(src), persistent); in smart_str_appends_ex()