Lines Matching refs:str
28 ZEND_API extern zend_string *(*zend_new_interned_string)(zend_string *str);
32 ZEND_API zend_ulong zend_hash_func(const char *str, size_t len);
51 #define STR_ALLOCA_ALLOC(str, _len, use_heap) ZSTR_ALLOCA_ALLOC(str, _len, use_heap) in END_EXTERN_C() argument
52 #define STR_ALLOCA_INIT(str, s, len, use_heap) ZSTR_ALLOCA_INIT(str, s, len, use_heap) in END_EXTERN_C() argument
53 #define STR_ALLOCA_FREE(str, use_heap) ZSTR_ALLOCA_FREE(str, use_heap) in END_EXTERN_C() argument
65 #define ZSTR_ALLOCA_ALLOC(str, _len, use_heap) do { \ in END_EXTERN_C() argument
66 …(str) = (zend_string *)do_alloca(ZEND_MM_ALIGNED_SIZE_EX(_ZSTR_STRUCT_SIZE(_len), 8), (use_heap));… in END_EXTERN_C()
67 GC_REFCOUNT(str) = 1; \ in END_EXTERN_C()
68 GC_TYPE_INFO(str) = IS_STRING; \ in END_EXTERN_C()
69 zend_string_forget_hash_val(str); \ in END_EXTERN_C()
70 ZSTR_LEN(str) = _len; \ in END_EXTERN_C()
73 #define ZSTR_ALLOCA_INIT(str, s, len, use_heap) do { \ argument
74 ZSTR_ALLOCA_ALLOC(str, len, use_heap); \
75 memcpy(ZSTR_VAL(str), (s), (len)); \
76 ZSTR_VAL(str)[(len)] = '\0'; \
79 #define ZSTR_ALLOCA_FREE(str, use_heap) free_alloca(str, use_heap) argument
156 static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, int persistent) in zend_string_init() argument
160 memcpy(ZSTR_VAL(ret), str, len); in zend_string_init()
286 #define zend_string_equals_literal_ci(str, c) \ argument
287 …(ZSTR_LEN(str) == sizeof(c) - 1 && !zend_binary_strcasecmp(ZSTR_VAL(str), ZSTR_LEN(str), (c), size…
289 #define zend_string_equals_literal(str, literal) \ argument
290 (ZSTR_LEN(str) == sizeof(literal)-1 && !memcmp(ZSTR_VAL(str), literal, sizeof(literal) - 1))
325 static zend_always_inline zend_ulong zend_inline_hash_func(const char *str, size_t len) in zend_inline_hash_func() argument
331 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
332 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
333 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
334 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
335 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
336 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
337 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
338 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
341 case 7: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
342 case 6: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
343 case 5: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
344 case 4: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
345 case 3: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
346 case 2: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
347 case 1: hash = ((hash << 5) + hash) + *str++; break; in zend_inline_hash_func()
365 zend_string *str; in zend_zts_interned_string_init() local
367 str = zend_string_init(val, len, 1); in zend_zts_interned_string_init()
369 zend_string_hash_val(str); in zend_zts_interned_string_init()
370 GC_FLAGS(str) |= IS_STR_INTERNED; in zend_zts_interned_string_init()
371 return str; in zend_zts_interned_string_init()
416 #define _ZEND_STR_ID(id, str) id, argument