Lines Matching refs:str
35 ZEND_API void ZEND_FASTCALL smart_str_erealloc(smart_str *str, size_t len) in smart_str_erealloc() argument
37 if (UNEXPECTED(!str->s)) { in smart_str_erealloc()
38 str->a = len < SMART_STR_START_SIZE in smart_str_erealloc()
41 str->s = zend_string_alloc(str->a, 0); in smart_str_erealloc()
42 ZSTR_LEN(str->s) = 0; in smart_str_erealloc()
44 str->a = SMART_STR_NEW_SIZE(len); in smart_str_erealloc()
45 …str->s = (zend_string *) erealloc2(str->s, _ZSTR_HEADER_SIZE + str->a + 1, _ZSTR_HEADER_SIZE + ZST… in smart_str_erealloc()
49 ZEND_API void ZEND_FASTCALL smart_str_realloc(smart_str *str, size_t len) in smart_str_realloc() argument
51 if (UNEXPECTED(!str->s)) { in smart_str_realloc()
52 str->a = len < SMART_STR_START_SIZE in smart_str_realloc()
55 str->s = zend_string_alloc(str->a, 1); in smart_str_realloc()
56 ZSTR_LEN(str->s) = 0; in smart_str_realloc()
58 str->a = SMART_STR_NEW_SIZE(len); in smart_str_realloc()
59 str->s = (zend_string *) realloc(str->s, _ZSTR_HEADER_SIZE + str->a + 1); in smart_str_realloc()