Searched refs:str (Results 1 - 25 of 294) sorted by relevance

1234567891011>>

/PHP_TRUNK/ext/skeleton/
H A Dskeleton.php16 $str = $function($module); variable
18 $str = "Module $module is not compiled into PHP"; variable
20 echo "$str\n";
/PHP_TRUNK/ext/mbstring/libmbfl/filters/
H A Dmk_sb_tbl.awk9 function conv(str) {
10 if (!match(str, "^0[xX]")) {
11 return 0 + str
16 for (i = 3; i <= length(str); i++) {
17 n = index("0123456789abcdefABCDEF", substr(str, i, 1)) - 1
20 return 0 + str;
/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c114 string->str = (char*)malloc(SIMPLESTRING_INCR);
115 if(string->str) {
116 string->str[0] = 0;
143 if(string->str) {
144 string->str[0] = 0;
168 if(string && string->str) {
169 my_free(string->str);
195 if(!target->str) {
205 target->str = (char*)realloc(target->str, newsiz
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_file_get_comment.c48 const zip_uint8_t *str;
53 if ((str=_zip_string_get(de->comment, &len, flags, &za->error)) == NULL)
59 return (const char *)str;
46 const zip_uint8_t *str; local
H A Dzip_get_archive_comment.c49 const zip_uint8_t *str;
56 if ((str=_zip_string_get(comment, &len, flags, &za->error)) == NULL)
62 return (const char *)str;
47 const zip_uint8_t *str; local
H A Dzip_get_name.c57 const zip_uint8_t *str;
62 if ((str=_zip_string_get(de->filename, NULL, flags, error)) == NULL)
65 return (const char *)str;
54 const zip_uint8_t *str; local
H A Dzip_set_name.c49 struct zip_string *str;
65 if ((str=_zip_string_new((const zip_uint8_t *)name, (zip_uint16_t)strlen(name), flags, &za->error)) == NULL)
67 if ((flags & ZIP_FL_ENCODING_ALL) == ZIP_FL_ENC_GUESS && _zip_guess_encoding(str, ZIP_ENCODING_UNKNOWN) == ZIP_ENCODING_UTF8_GUESSED)
68 str->encoding = ZIP_ENCODING_UTF8_KNOWN;
71 str = NULL;
75 _zip_string_free(str);
82 _zip_string_free(str);
95 changed = !_zip_string_equal(e->orig->filename, str);
103 _zip_string_free(str);
107 e->changes->filename = str;
47 struct zip_string *str; local
[all...]
/PHP_TRUNK/Zend/tests/use_function/includes/
H A Dfoo_strlen.php5 function strlen($str) {
/PHP_TRUNK/Zend/
H A Dzend_strtod.h31 ZEND_API double zend_hex_strtod(const char *str, const char **endptr);
32 ZEND_API double zend_oct_strtod(const char *str, const char **endptr);
33 ZEND_API double zend_bin_strtod(const char *str, const char **endptr);
H A Dzend_smart_str.h52 static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, zend_bool persistent) { argument
54 if (!str->s) {
56 str->a = newlen < SMART_STR_START_SIZE
59 str->s = zend_string_alloc(str->a, persistent);
60 str->s->len = 0;
62 newlen = str->s->len + len;
63 if (newlen >= str->a) {
64 str->a = newlen + SMART_STR_PREALLOC;
65 str
71 smart_str_free(smart_str *str) argument
79 smart_str_0(smart_str *str) argument
91 smart_str_appendl_ex(smart_str *dest, const char *str, size_t len, zend_bool persistent) argument
[all...]
H A Dzend_string.c24 ZEND_API zend_string *(*zend_new_interned_string)(zend_string *str TSRMLS_DC);
28 static zend_string *zend_new_interned_string_int(zend_string *str TSRMLS_DC);
32 ZEND_API zend_ulong zend_hash_func(const char *str, size_t len) argument
34 return zend_inline_hash_func(str, len);
40 zend_string *str = Z_STR_P(zv); local
41 GC_FLAGS(str) &= ~IS_STR_INTERNED;
42 GC_REFCOUNT(str) = 1;
49 zend_string *str; local
59 str = zend_string_alloc(sizeof("")-1, 1);
60 str
[all...]
H A Dzend_string.h28 ZEND_API extern zend_string *(*zend_new_interned_string)(zend_string *str TSRMLS_DC);
32 ZEND_API zend_ulong zend_hash_func(const char *str, size_t len);
44 #define STR_ALLOCA_ALLOC(str, _len, use_heap) do { \
45 (str) = (zend_string *)do_alloca(ZEND_MM_ALIGNED_SIZE(_STR_HEADER_SIZE + (_len) + 1), (use_heap)); \
46 GC_REFCOUNT(str) = 1; \
47 (str)->h = 0; \
48 (str)->len = (_len); \
50 #define STR_ALLOCA_INIT(str, s, len, use_heap) do { \
51 STR_ALLOCA_ALLOC(str, len, use_heap); \
52 memcpy((str)
131 zend_string_init(const char *str, size_t len, int persistent) argument
256 zend_inline_hash_func(const char *str, size_t len) argument
287 zend_string *str; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_parser.y79 $$.file.name = $2.str;
84 $$.file.name = $1.str;
91 memcpy(&$$.file.name[0], $1.str, $1.len);
92 memcpy(&$$.file.name[$1.len], $2.str, $2.len);
101 memcpy(&$$.file.name[0], $1.str, $1.len);
102 memcpy(&$$.file.name[$1.len], $2.str, $2.len);
109 $$.method.class = $1.str;
110 $$.method.name = $3.str;
114 $$.method.class = $1.str;
115 $$.method.name = $3.str;
[all...]
/PHP_TRUNK/ext/bcmath/libbcmath/src/
H A Dnum2str.c47 zend_string *str; local
55 str = zend_string_alloc(num->n_len + num->n_scale + signch + 1, 0);
57 str = zend_string_alloc(num->n_len + signch, 0);
58 if (str == NULL) bc_out_of_memory();
61 sptr = str->val;
79 str->len = sptr - (char *)str->val;
80 return str;
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_is_numeric.h24 zend_uchar collator_is_numeric( UChar *str, int length, zend_long *lval, double *dval, int allow_errors );
/PHP_TRUNK/ext/intl/
H A Dintl_common.h41 #define INTL_Z_STRVAL_P(str) (UChar*) Z_STRVAL_P(str)
42 #define INTL_Z_STRLEN_P(str) UCHARS( Z_STRLEN_P(str) )
/PHP_TRUNK/ext/standard/
H A Dbase64.c56 PHPAPI zend_string *php_base64_encode(const unsigned char *str, size_t length) /* {{{ */ argument
58 const unsigned char *current = str;
130 PHPAPI zend_string *php_base64_decode(const unsigned char *str, size_t length) /* {{{ */ argument
132 return php_base64_decode_ex(str, length, 0);
136 PHPAPI zend_string *php_base64_decode_ex(const unsigned char *str, size_t length, zend_bool strict) /* {{{ */ argument
138 const unsigned char *current = str;
210 /* {{{ proto string base64_encode(string str)
214 char *str; local
218 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
221 result = php_base64_encode((unsigned char*)str, str_le
234 char *str; local
[all...]
H A Ddatetime.c57 char *str; local
60 str = emalloc(81);
61 str[0] = '\0';
64 return str;
67 snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT",
74 str[79] = 0;
75 return (str);
H A Dquot_print.h24 PHPAPI zend_string *php_quot_print_decode(const unsigned char *str, size_t length, int replace_us_by_ws);
25 PHPAPI zend_string *php_quot_print_encode(const unsigned char *str, size_t length);
H A Durl.h35 PHPAPI php_url *php_url_parse(char const *str);
36 PHPAPI php_url *php_url_parse_ex(char const *str, int length);
37 PHPAPI int php_url_decode(char *str, int len); /* return value: length of decoded string */
38 PHPAPI int php_raw_url_decode(char *str, int len); /* return value: length of decoded string */
H A Dcyr_convert.c190 /* {{{ static char * php_convert_cyr_string(unsigned char *str, int length, char from, char to TSRMLS_DC)
194 * str - string to be converted
204 static char * php_convert_cyr_string(unsigned char *str, size_t length, char from, char to TSRMLS_DC) argument
258 if (!str)
259 return (char *)str;
262 tmp = (from_table == NULL)? str[i] : from_table[ str[i] ];
263 str[i] = (to_table == NULL) ? tmp : to_table[tmp + 256];
265 return (char *)str;
269 /* {{{ proto string convert_cyr_string(string str, strin
275 zend_string *str; local
[all...]
/PHP_TRUNK/sapi/cli/
H A Dcli.h33 extern PHP_CLI_API size_t sapi_cli_single_write(const char *str, size_t str_length TSRMLS_DC);
36 size_t (*cli_shell_write)(const char *str, size_t str_length TSRMLS_DC);
37 size_t (*cli_shell_ub_write)(const char *str, size_t str_length TSRMLS_DC);
/PHP_TRUNK/ext/filter/
H A Dsanitizing_filters.c32 smart_str str = {0}; local
43 smart_str_appendl(&str, "&#", 2);
44 smart_str_append_unsigned(&str, (zend_ulong)*s);
45 smart_str_appendc(&str, ';');
48 smart_str_appendc(&str, *s);
53 smart_str_0(&str);
55 ZVAL_NEW_STR(value, str.s);
72 zend_string *str; local
90 str = zend_string_alloc(3 * Z_STRLEN_P(value), 0);
91 p = str
113 unsigned char *str; local
160 unsigned char *str; local
[all...]
H A Dlogical_filters.c83 static int php_filter_parse_int(const char *str, unsigned int str_len, zend_long *ret TSRMLS_DC) { /* {{{ */ argument
86 const char *end = str + str_len;
88 switch (*str) {
92 str++;
97 if (*str == '0' && str + 1 == end) {
103 if (str < end && *str >= '1' && *str <= '9') {
104 ctx_value = ((sign)?-1:1) * ((*(str
135 php_filter_parse_octal(const char *str, unsigned int str_len, zend_long *ret TSRMLS_DC) argument
158 php_filter_parse_hex(const char *str, unsigned int str_len, zend_long *ret TSRMLS_DC) argument
252 char *str = Z_STRVAL_P(value); local
322 char *str, *end; local
567 _php_filter_validate_ipv4(char *str, int str_len, int *ip) argument
602 _php_filter_validate_ipv6(char *str, int str_len TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/wddx/
H A Dphp_wddx_api.h51 #define php_wddx_add_chunk(packet, str) smart_str_appends(packet, str)
52 #define php_wddx_add_chunk_ex(packet, str, len) smart_str_appendl(packet, str, len)
53 #define php_wddx_add_chunk_static(packet, str) smart_str_appendl(packet, str, sizeof(str)-1)

Completed in 82 milliseconds

1234567891011>>