236
      236
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Â492_‘I|¥‰ÓMdœv ©ƒ†ü+=ÂÁ ì    ‹      Õ”QoÓ0Çß÷)Œxk/í:›c4šJTtmÕ!„xpc7±–Ø‘}m(Ÿ§)ZA­ ‰!ñâ»$?ßýÿÙìY2.?ÎGäíònBæïßLÆCB; .‡ É2i?ºQ`4¥„æˆÕ5@]×Ýú²k]ËäXðètŠ]‰’òÖ¼ã„åJÈ	C�…âc#Õb×ì½–*ìÛy�j«Så›U	¥*­ÛÂ«—`¬T¤Õæ
¤Ó[åš| ¹ÅªØdÚÚ¡Ú±••»FEï‰:†Â{SbµoÜ¤Ž3ÌÉV:31E[QÎt™ïÒ˜‚N­ñ°*„yèfzM‰(0¦ŸÆÃÙçÀæÍnÎÉ�ZÇôõ0žÞÌâ„ò©(qš¹Ì-åá‘”VêµVò,|ßÂ÷úëù‚IË$Ê§NW¨­yD!X<¶šÚÂW"x½
rwLµˆüÕ4DúÃ0æ·‹Ñt™ŒíHdSâQÝßø”Ï…SI¢�J1°{m¯çfå«›ï�ä Þé,GÊ	é�“ä8Þ˜cksl:ô¤ÝµÐåÍz,ñ'Mý¨ÿ¢Óëuú‰¢ë°’3`8Âïþ¡x�åûðÊGá2Ú¶ñéüæ¡‚ÃuÃ`½1h/ÙoÄ¡Æ’Ç    A   ˆl–Ãa¾”Ò~êq@µq \”Å£�þZ!dYÇŒ¾ÑD�üÿÅ„î>ÏÄ_ˆI|¥�+y,ÄÃ ?÷     /*
   +----------------------------------------------------------------------+
   | Zend Engine                                                          |
   +----------------------------------------------------------------------+
   | Copyright (c) Zend Technologies Ltd. (http://www.zend.com)           |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.00 of the Zend license,     |
   | that is bundled with this package in the file LICENSE, and is        |
   | available through the world-wide-web at the following url:           |
   | http://www.zend.com/license/2_00.txt.                                |
   | If you did not receive a copy of the Zend license and are unable to  |
   | obtain it through the world-wide-web, please send a note to          |
   | license@zend.com so we can mail you a copy immediately.              |
   +----------------------------------------------------------------------+
   | Authors: Dmitry Stogov <dmitry@php.net>                              |
   +----------------------------------------------------------------------+
*/

#ifndef ZEND_STRING_H
#define ZEND_STRING_H

#include "zend.h"

BEGIN_EXTERN_C()

typedef void (*zend_string_copy_storage_func_t)(void);
typedef zend_string *(ZEND_FASTCALL *zend_new_interned_string_func_t)(zend_string *str);
typedef zend_string *(ZEND_FASTCALL *zend_string_init_interned_func_t)(const char *str, size_t size, bool permanent);
typedef zend_string *(ZEND_FASTCALL *zend_string_init_existing_interned_func_t)(const char *str, size_t size, bool permanent);

ZEND_API extern zend_new_interned_string_func_t zend_new_interned_string;
ZEND_API extern zend_string_init_interned_func_t zend_string_init_interned;
/* Init an interned string if it already exists, but do not create a new one if it does not. */
ZEND_API extern zend_string_init_existing_interned_func_t zend_string_init_existing_interned;

ZEND_API zend_ulong ZEND_FASTCALL zend_string_hash_func(zend_string *str);
ZEND_API zend_ulong ZEND_FASTCALL zend_hash_func(const char *str, size_t len);
ZEND_API zend_string* ZEND_FASTCALL zend_interned_string_find_permanent(zend_string *str);

ZEND_API zend_string *zend_string_concat2(
	const char *str1, size_t str1_len,
	const char *str2, size_t str2_len);
ZEND_API zend_string *zend_string_concat3(
	const char *str1, size_t str1_len,
	const char *str2, size_t str2_len,
	const char *str3, size_t str3_len);

ZEND_API void zend_interned_strings_init(void);
ZEND_API void zend_interned_strings_dtor(void);
ZEND_API void zend_interned_strings_activate(void);
ZEND_API void zend_interned_strings_deactivate(void);
ZEND_API void zend_interned_strings_set_request_storage_handlers(
	zend_new_interned_string_func_t handler,
	zend_string_init_interned_func_t init_handler,
	zend_string_init_existing_interned_func_t init_existing_handler);
ZEND_API void zend_interned_strings_switch_storage(bool request);

ZEND_API extern zend_string  *zend_empty_string;
ZEND_API extern zend_string  *zend_one_char_string[256];
ZEND_API extern zend_string **zend_known_strings;

END_EXTERN_C()

/* Shortcuts */

#define ZSTR_VAL(zstr)  (zstr)->val
#define ZSTR_LEN(zstr)  (zstr)->len
#define ZSTR_H(zstr)    (zstr)->h
#define ZSTR_HASH(zstr) zend_string_hash_val(zstr)

/* Compatibility macros */

#define IS_INTERNED(s)	ZSTR_IS_INTERNED(s)
#define STR_EMPTY_ALLOC()	ZSTR_EMPTY_ALLOC()
#define 