Lines Matching refs:str
30 #define smart_string_appends_ex(str, src, what) \ argument
31 smart_string_appendl_ex((str), (src), strlen(src), (what))
32 #define smart_string_appends(str, src) \ argument
33 smart_string_appendl((str), (src), strlen(src))
34 #define smart_string_append_ex(str, src, what) \ argument
35 smart_string_appendl_ex((str), ((smart_string *)(src))->c, \
37 #define smart_string_sets(str, src) \ argument
38 smart_string_setl((str), (src), strlen(src));
40 #define smart_string_appendc(str, c) \ argument
41 smart_string_appendc_ex((str), (c), 0)
44 #define smart_string_appendl(str, src, len) \ argument
45 smart_string_appendl_ex((str), (src), (len), 0)
46 #define smart_string_append(str, src) \ argument
47 smart_string_append_ex((str), (src), 0)
48 #define smart_string_append_long(str, val) \ argument
49 smart_string_append_long_ex((str), (val), 0)
50 #define smart_string_append_unsigned(str, val) \ argument
51 smart_string_append_unsigned_ex((str), (val), 0)
53 ZEND_API void ZEND_FASTCALL _smart_string_alloc_persistent(smart_string *str, size_t len);
54 ZEND_API void ZEND_FASTCALL _smart_string_alloc(smart_string *str, size_t len);
56 static zend_always_inline size_t smart_string_alloc(smart_string *str, size_t len, zend_bool persis… in smart_string_alloc() argument
57 if (UNEXPECTED(!str->c) || UNEXPECTED(len >= str->a - str->len)) { in smart_string_alloc()
59 _smart_string_alloc_persistent(str, len); in smart_string_alloc()
61 _smart_string_alloc(str, len); in smart_string_alloc()
64 return str->len + len; in smart_string_alloc()
67 static zend_always_inline void smart_string_free_ex(smart_string *str, zend_bool persistent) { in smart_string_free_ex() argument
68 if (str->c) { in smart_string_free_ex()
69 pefree(str->c, persistent); in smart_string_free_ex()
70 str->c = NULL; in smart_string_free_ex()
72 str->a = str->len = 0; in smart_string_free_ex()
75 static zend_always_inline void smart_string_0(smart_string *str) { in smart_string_0() argument
76 if (str->c) { in smart_string_0()
77 str->c[str->len] = '\0'; in smart_string_0()
86 static zend_always_inline void smart_string_appendl_ex(smart_string *dest, const char *str, size_t … in smart_string_appendl_ex() argument
88 memcpy(dest->c + dest->len, str, len); in smart_string_appendl_ex()
111 static zend_always_inline void smart_string_reset(smart_string *str) { in smart_string_reset() argument
112 str->len = 0; in smart_string_reset()