Lines Matching refs:str
27 typedef zend_string *(ZEND_FASTCALL *zend_new_interned_string_func_t)(zend_string *str);
28 typedef zend_string *(ZEND_FASTCALL *zend_string_init_interned_func_t)(const char *str, size_t size…
33 ZEND_API zend_ulong ZEND_FASTCALL zend_string_hash_func(zend_string *str);
34 ZEND_API zend_ulong ZEND_FASTCALL zend_hash_func(const char *str, size_t len);
35 ZEND_API zend_string* ZEND_FASTCALL zend_interned_string_find_permanent(zend_string *str);
70 #define STR_ALLOCA_ALLOC(str, _len, use_heap) ZSTR_ALLOCA_ALLOC(str, _len, use_heap) in END_EXTERN_C() argument
71 #define STR_ALLOCA_INIT(str, s, len, use_heap) ZSTR_ALLOCA_INIT(str, s, len, use_heap) in END_EXTERN_C() argument
72 #define STR_ALLOCA_FREE(str, use_heap) ZSTR_ALLOCA_FREE(str, use_heap) in END_EXTERN_C() argument
89 #define ZSTR_ALLOCA_ALLOC(str, _len, use_heap) do { \ in END_EXTERN_C() argument
90 …(str) = (zend_string *)do_alloca(ZEND_MM_ALIGNED_SIZE_EX(_ZSTR_STRUCT_SIZE(_len), 8), (use_heap));… in END_EXTERN_C()
91 GC_SET_REFCOUNT(str, 1); \ in END_EXTERN_C()
92 GC_TYPE_INFO(str) = GC_STRING; \ in END_EXTERN_C()
93 ZSTR_H(str) = 0; \ in END_EXTERN_C()
94 ZSTR_LEN(str) = _len; \ in END_EXTERN_C()
97 #define ZSTR_ALLOCA_INIT(str, s, len, use_heap) do { \ argument
98 ZSTR_ALLOCA_ALLOC(str, len, use_heap); \
99 memcpy(ZSTR_VAL(str), (s), (len)); \
100 ZSTR_VAL(str)[(len)] = '\0'; \
103 #define ZSTR_ALLOCA_FREE(str, use_heap) free_alloca(str, use_heap) argument
164 static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persisten… in zend_string_init() argument
168 memcpy(ZSTR_VAL(ret), str, len); in zend_string_init()
173 static zend_always_inline zend_string *zend_string_init_fast(const char *str, size_t len) in zend_string_init_fast() argument
176 return zend_string_init(str, len, 0); in zend_string_init_fast()
180 return ZSTR_CHAR((zend_uchar) *str); in zend_string_init_fast()
360 #define zend_string_equals_literal_ci(str, c) \ argument
361 …(ZSTR_LEN(str) == sizeof(c) - 1 && !zend_binary_strcasecmp(ZSTR_VAL(str), ZSTR_LEN(str), (c), size…
363 #define zend_string_equals_literal(str, literal) \ argument
364 (ZSTR_LEN(str) == sizeof(literal)-1 && !memcmp(ZSTR_VAL(str), literal, sizeof(literal) - 1))
399 static zend_always_inline zend_ulong zend_inline_hash_func(const char *str, size_t len) in zend_inline_hash_func() argument
405 for (; len >= 8; len -= 8, str += 8) { in zend_inline_hash_func()
411 memcpy(&chunk, str, sizeof(chunk)); in zend_inline_hash_func()
427 str[0] * 33 * 33 * 33 + in zend_inline_hash_func()
428 str[1] * 33 * 33 + in zend_inline_hash_func()
429 str[2] * 33 + in zend_inline_hash_func()
430 str[3]; in zend_inline_hash_func()
433 str[4] * 33 * 33 * 33 + in zend_inline_hash_func()
434 str[5] * 33 * 33 + in zend_inline_hash_func()
435 str[6] * 33 + in zend_inline_hash_func()
436 str[7]; in zend_inline_hash_func()
442 str[0] * 33 * 33 * 33 + in zend_inline_hash_func()
443 str[1] * 33 * 33 + in zend_inline_hash_func()
444 str[2] * 33 + in zend_inline_hash_func()
445 str[3]; in zend_inline_hash_func()
447 str += 4; in zend_inline_hash_func()
453 str[0] * 33 * 33 + in zend_inline_hash_func()
454 str[1] * 33 + in zend_inline_hash_func()
455 str[2]; in zend_inline_hash_func()
459 str[0] * 33 + in zend_inline_hash_func()
460 str[1]; in zend_inline_hash_func()
463 hash = hash * 33 + *str; in zend_inline_hash_func()
468 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
469 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
470 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
471 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
472 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
473 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
474 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
475 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
478 case 7: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
479 case 6: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
480 case 5: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
481 case 4: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
482 case 3: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
483 case 2: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
484 case 1: hash = ((hash << 5) + hash) + *str++; break; in zend_inline_hash_func()
560 #define _ZEND_STR_ID(id, str) id, argument