Lines Matching refs:str
46 ZEND_API void ZEND_FASTCALL smart_str_erealloc(smart_str *str, size_t len);
47 ZEND_API void ZEND_FASTCALL smart_str_realloc(smart_str *str, size_t len);
48 ZEND_API void ZEND_FASTCALL smart_str_append_escaped(smart_str *str, const char *s, size_t l);
52 static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, zend_bool persistent) { in END_EXTERN_C()
53 if (UNEXPECTED(!str->s)) { in END_EXTERN_C()
56 len += ZSTR_LEN(str->s); in END_EXTERN_C()
57 if (UNEXPECTED(len >= str->a)) { in END_EXTERN_C()
60 smart_str_realloc(str, len); in END_EXTERN_C()
62 smart_str_erealloc(str, len); in END_EXTERN_C()
69 static zend_always_inline void smart_str_free(smart_str *str) { in smart_str_free() argument
70 if (str->s) { in smart_str_free()
71 zend_string_release(str->s); in smart_str_free()
72 str->s = NULL; in smart_str_free()
74 str->a = 0; in smart_str_free()
77 static zend_always_inline void smart_str_0(smart_str *str) { in smart_str_0() argument
78 if (str->s) { in smart_str_0()
79 ZSTR_VAL(str->s)[ZSTR_LEN(str->s)] = '\0'; in smart_str_0() local
89 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
91 memcpy(ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s), str, len); in smart_str_appendl_ex()