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…
29 typedef zend_string *(ZEND_FASTCALL *zend_string_init_existing_interned_func_t)(const char *str, si…
36 ZEND_API zend_ulong ZEND_FASTCALL zend_string_hash_func(zend_string *str);
37 ZEND_API zend_ulong ZEND_FASTCALL zend_hash_func(const char *str, size_t len);
38 ZEND_API zend_string* ZEND_FASTCALL zend_interned_string_find_permanent(zend_string *str);
76 #define STR_ALLOCA_ALLOC(str, _len, use_heap) ZSTR_ALLOCA_ALLOC(str, _len, use_heap) in END_EXTERN_C() argument
77 #define STR_ALLOCA_INIT(str, s, len, use_heap) ZSTR_ALLOCA_INIT(str, s, len, use_heap) in END_EXTERN_C() argument
78 #define STR_ALLOCA_FREE(str, use_heap) ZSTR_ALLOCA_FREE(str, use_heap) in END_EXTERN_C() argument
95 #define ZSTR_ALLOCA_ALLOC(str, _len, use_heap) do { \ in END_EXTERN_C() argument
96 …(str) = (zend_string *)do_alloca(ZEND_MM_ALIGNED_SIZE_EX(_ZSTR_STRUCT_SIZE(_len), 8), (use_heap));… in END_EXTERN_C()
97 GC_SET_REFCOUNT(str, 1); \ in END_EXTERN_C()
98 GC_TYPE_INFO(str) = GC_STRING; \ in END_EXTERN_C()
99 ZSTR_H(str) = 0; \ in END_EXTERN_C()
100 ZSTR_LEN(str) = _len; \ in END_EXTERN_C()
103 #define ZSTR_ALLOCA_INIT(str, s, len, use_heap) do { \ argument
104 ZSTR_ALLOCA_ALLOC(str, len, use_heap); \
105 memcpy(ZSTR_VAL(str), (s), (len)); \
106 ZSTR_VAL(str)[(len)] = '\0'; \
109 #define ZSTR_ALLOCA_FREE(str, use_heap) free_alloca(str, use_heap) argument
172 static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persisten… in zend_string_init() argument
176 memcpy(ZSTR_VAL(ret), str, len); in zend_string_init()
181 static zend_always_inline zend_string *zend_string_init_fast(const char *str, size_t len) in zend_string_init_fast() argument
184 return zend_string_init(str, len, 0); in zend_string_init_fast()
188 return ZSTR_CHAR((zend_uchar) *str); in zend_string_init_fast()
373 #define zend_string_equals_literal_ci(str, c) \ argument
374 …(ZSTR_LEN(str) == sizeof(c) - 1 && !zend_binary_strcasecmp(ZSTR_VAL(str), ZSTR_LEN(str), (c), size…
376 #define zend_string_equals_literal(str, literal) \ argument
377 zend_string_equals_cstr(str, literal, strlen(literal))
379 static zend_always_inline bool zend_string_starts_with_cstr(const zend_string *str, const char *pre… in zend_string_starts_with_cstr() argument
381 return ZSTR_LEN(str) >= prefix_length && !memcmp(ZSTR_VAL(str), prefix, prefix_length); in zend_string_starts_with_cstr()
384 static zend_always_inline bool zend_string_starts_with(const zend_string *str, const zend_string *p… in zend_string_starts_with() argument
386 return zend_string_starts_with_cstr(str, ZSTR_VAL(prefix), ZSTR_LEN(prefix)); in zend_string_starts_with()
389 #define zend_string_starts_with_literal(str, prefix) \ argument
390 zend_string_starts_with_cstr(str, prefix, strlen(prefix))
425 static zend_always_inline zend_ulong zend_inline_hash_func(const char *str, size_t len) in zend_inline_hash_func() argument
431 for (; len >= 8; len -= 8, str += 8) { in zend_inline_hash_func()
437 memcpy(&chunk, str, sizeof(chunk)); in zend_inline_hash_func()
453 str[0] * Z_L(33 * 33 * 33) + in zend_inline_hash_func()
454 str[1] * Z_L(33 * 33) + in zend_inline_hash_func()
455 str[2] * Z_L(33) + in zend_inline_hash_func()
456 str[3]; in zend_inline_hash_func()
459 str[4] * Z_L(33 * 33 * 33) + in zend_inline_hash_func()
460 str[5] * Z_L(33 * 33) + in zend_inline_hash_func()
461 str[6] * Z_L(33) + in zend_inline_hash_func()
462 str[7]; in zend_inline_hash_func()
468 str[0] * Z_L(33 * 33 * 33) + in zend_inline_hash_func()
469 str[1] * Z_L(33 * 33) + in zend_inline_hash_func()
470 str[2] * Z_L(33) + in zend_inline_hash_func()
471 str[3]; in zend_inline_hash_func()
473 str += 4; in zend_inline_hash_func()
479 str[0] * Z_L(33 * 33) + in zend_inline_hash_func()
480 str[1] * Z_L(33) + in zend_inline_hash_func()
481 str[2]; in zend_inline_hash_func()
485 str[0] * Z_L(33) + in zend_inline_hash_func()
486 str[1]; in zend_inline_hash_func()
489 hash = hash * Z_L(33) + *str; in zend_inline_hash_func()
494 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
495 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
496 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
497 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
498 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
499 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
500 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
501 hash = ((hash << 5) + hash) + *str++; in zend_inline_hash_func()
504 case 7: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
505 case 6: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
506 case 5: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
507 case 4: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
508 case 3: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
509 case 2: hash = ((hash << 5) + hash) + *str++; /* fallthrough... */ in zend_inline_hash_func()
510 case 1: hash = ((hash << 5) + hash) + *str++; break; in zend_inline_hash_func()
601 #define _ZEND_STR_ID(id, str) id, argument