Lines Matching refs:str

29 typedef zend_string *(*zend_new_interned_string_func_t)(zend_string *str);
33 ZEND_API zend_ulong zend_hash_func(const char *str, size_t len);
38 ZEND_API zend_string *zend_interned_string_find_permanent(zend_string *str);
61 #define STR_ALLOCA_ALLOC(str, _len, use_heap) ZSTR_ALLOCA_ALLOC(str, _len, use_heap) in END_EXTERN_C() argument
62 #define STR_ALLOCA_INIT(str, s, len, use_heap) ZSTR_ALLOCA_INIT(str, s, len, use_heap) in END_EXTERN_C() argument
63 #define STR_ALLOCA_FREE(str, use_heap) ZSTR_ALLOCA_FREE(str, use_heap) in END_EXTERN_C() argument
77 #define ZSTR_ALLOCA_ALLOC(str, _len, use_heap) do { \ in END_EXTERN_C() argument
78 …(str) = (zend_string *)do_alloca(ZEND_MM_ALIGNED_SIZE_EX(_ZSTR_STRUCT_SIZE(_len), 8), (use_heap));… in END_EXTERN_C()
79 GC_REFCOUNT(str) = 1; \ in END_EXTERN_C()
80 GC_TYPE_INFO(str) = IS_STRING; \ in END_EXTERN_C()
81 zend_string_forget_hash_val(str); \ in END_EXTERN_C()
82 ZSTR_LEN(str) = _len; \ in END_EXTERN_C()
85 #define ZSTR_ALLOCA_INIT(str, s, len, use_heap) do { \ argument
86 ZSTR_ALLOCA_ALLOC(str, len, use_heap); \
87 memcpy(ZSTR_VAL(str), (s), (len)); \
88 ZSTR_VAL(str)[(len)] = '\0'; \
91 #define ZSTR_ALLOCA_FREE(str, use_heap) free_alloca(str, use_heap) argument
168 static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, int persistent) in zend_string_init() argument
172 memcpy(ZSTR_VAL(ret), str, len); in zend_string_init()
177 static zend_always_inline zend_string *zend_string_init_interned(const char *str, size_t len, int p… in zend_string_init_interned() argument
179 zend_string *ret = zend_string_init(str, len, persistent); in zend_string_init_interned()
305 #define zend_string_equals_literal_ci(str, c) \ argument
306 …(ZSTR_LEN(str) == sizeof(c) - 1 && !zend_binary_strcasecmp(ZSTR_VAL(str), ZSTR_LEN(str), (c), size…
308 #define zend_string_equals_literal(str, literal) \ argument
309 (ZSTR_LEN(str) == sizeof(literal)-1 && !memcmp(ZSTR_VAL(str), literal, sizeof(literal) - 1))
344 static zend_always_inline zend_ulong zend_inline_hash_func(const char *str, size_t len) in zend_inline_hash_func() argument
350 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
351 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
352 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
353 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
354 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
355 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
356 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
357 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
360 case 7: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
361 case 6: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
362 case 5: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
363 case 4: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
364 case 3: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
365 case 2: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
366 case 1: hash = ((hash << 5) + hash) + *str++; break; in zend_inline_hash_func()
429 #define _ZEND_STR_ID(id, str) id, argument