Lines Matching refs:str
28 #define smart_string_appends_ex(str, src, what) \ argument
29 smart_string_appendl_ex((str), (src), strlen(src), (what))
30 #define smart_string_appends(str, src) \ argument
31 smart_string_appendl((str), (src), strlen(src))
32 #define smart_string_append_ex(str, src, what) \ argument
33 smart_string_appendl_ex((str), ((smart_string *)(src))->c, \
35 #define smart_string_sets(str, src) \ argument
36 smart_string_setl((str), (src), strlen(src));
38 #define smart_string_appendc(str, c) \ argument
39 smart_string_appendc_ex((str), (c), 0)
42 #define smart_string_appendl(str, src, len) \ argument
43 smart_string_appendl_ex((str), (src), (len), 0)
44 #define smart_string_append(str, src) \ argument
45 smart_string_append_ex((str), (src), 0)
46 #define smart_string_append_long(str, val) \ argument
47 smart_string_append_long_ex((str), (val), 0)
48 #define smart_string_append_unsigned(str, val) \ argument
49 smart_string_append_unsigned_ex((str), (val), 0)
51 ZEND_API void ZEND_FASTCALL _smart_string_alloc_persistent(smart_string *str, size_t len);
52 ZEND_API void ZEND_FASTCALL _smart_string_alloc(smart_string *str, size_t len);
54 static zend_always_inline size_t smart_string_alloc(smart_string *str, size_t len, zend_bool persis… in smart_string_alloc() argument
55 if (UNEXPECTED(!str->c) || UNEXPECTED(len >= str->a - str->len)) { in smart_string_alloc()
57 _smart_string_alloc_persistent(str, len); in smart_string_alloc()
59 _smart_string_alloc(str, len); in smart_string_alloc()
62 return str->len + len; in smart_string_alloc()
65 static zend_always_inline void smart_string_free_ex(smart_string *str, zend_bool persistent) { in smart_string_free_ex() argument
66 if (str->c) { in smart_string_free_ex()
67 pefree(str->c, persistent); in smart_string_free_ex()
68 str->c = NULL; in smart_string_free_ex()
70 str->a = str->len = 0; in smart_string_free_ex()
73 static zend_always_inline void smart_string_0(smart_string *str) { in smart_string_0() argument
74 if (str->c) { in smart_string_0()
75 str->c[str->len] = '\0'; in smart_string_0()
84 static zend_always_inline void smart_string_appendl_ex(smart_string *dest, const char *str, size_t … in smart_string_appendl_ex() argument
86 memcpy(dest->c + dest->len, str, len); in smart_string_appendl_ex()
109 static zend_always_inline void smart_string_reset(smart_string *str) { in smart_string_reset() argument
110 str->len = 0; in smart_string_reset()