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);
51 static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, zend_bool persistent) { in END_EXTERN_C()
52 if (UNEXPECTED(!str->s)) { in END_EXTERN_C()
55 len += ZSTR_LEN(str->s); in END_EXTERN_C()
56 if (UNEXPECTED(len >= str->a)) { in END_EXTERN_C()
59 smart_str_realloc(str, len); in END_EXTERN_C()
61 smart_str_erealloc(str, len); in END_EXTERN_C()
68 static zend_always_inline void smart_str_free(smart_str *str) { in smart_str_free() argument
69 if (str->s) { in smart_str_free()
70 zend_string_release(str->s); in smart_str_free()
71 str->s = NULL; in smart_str_free()
73 str->a = 0; in smart_str_free()
76 static zend_always_inline void smart_str_0(smart_str *str) { in smart_str_0() argument
77 if (str->s) { in smart_str_0()
78 ZSTR_VAL(str->s)[ZSTR_LEN(str->s)] = '\0'; in smart_str_0() local
88 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
90 memcpy(ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s), str, len); in smart_str_appendl_ex()