Lines Matching refs:s
53 ZEND_API void ZEND_FASTCALL smart_str_append_escaped(smart_str *str, const char *s, size_t l);
60 if (UNEXPECTED(!str->s)) { in END_EXTERN_C()
63 len += ZSTR_LEN(str->s); in END_EXTERN_C()
78 char *ret = ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s); in smart_str_extend_ex()
79 ZSTR_LEN(dest->s) = new_len; in smart_str_extend_ex()
84 if (str->s) { in smart_str_free_ex()
85 zend_string_release_ex(str->s, persistent); in smart_str_free_ex()
86 str->s = NULL; in smart_str_free_ex()
92 if (str->s) { in smart_str_0()
93 ZSTR_VAL(str->s)[ZSTR_LEN(str->s)] = '\0'; in smart_str_0()
98 return str->s ? ZSTR_LEN(str->s) : 0; in smart_str_get_len()
102 if (str->s) { in smart_str_extract()
105 res = str->s; in smart_str_extract()
106 str->s = NULL; in smart_str_extract()
115 ZSTR_VAL(dest->s)[new_len - 1] = ch; in smart_str_appendc_ex()
116 ZSTR_LEN(dest->s) = new_len; in smart_str_appendc_ex()
121 memcpy(ZSTR_VAL(dest->s) + ZSTR_LEN(dest->s), str, len); in smart_str_appendl_ex()
122 ZSTR_LEN(dest->s) = new_len; in smart_str_appendl_ex()
130 if (src->s && ZSTR_LEN(src->s)) { in smart_str_append_smart_str_ex()
131 smart_str_append_ex(dest, src->s, persistent); in smart_str_append_smart_str_ex()