Searched refs:str (Results 1 - 25 of 291) 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/intl/collator/
H A Dcollator_is_numeric.h24 zend_uchar collator_is_numeric( UChar *str, int length, 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/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_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, uint len) argument
34 return zend_inline_hash_func(str, len);
39 zend_string *str = Z_STR_P(zv); local
40 GC_FLAGS(str) &= ~IS_STR_INTERNED;
41 GC_REFCOUNT(str) = 1;
46 zend_string *str; local
57 str = STR_ALLOC(sizeof("")-1, 1);
58 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, uint len);
48 #define STR_INIT(str, len, persistent) zend_str_init(str, len, persistent)
59 #define STR_ALLOCA_ALLOC(str, _len, use_heap) do { \
60 (str) = (zend_string *)do_alloca(ZEND_MM_ALIGNED_SIZE(_STR_HEADER_SIZE + (_len) + 1), (use_heap)); \
61 GC_REFCOUNT(str) = 1; \
62 (str)->h = 0; \
63 (str)->len = (_len); \
65 #define STR_ALLOCA_INIT(str,
146 zend_str_init(const char *str, int len, int persistent) argument
260 zend_inline_hash_func(const char *str, uint len) argument
[all...]
/PHP_TRUNK/sapi/cli/
H A Dcli.h33 extern PHP_CLI_API size_t sapi_cli_single_write(const char *str, uint str_length TSRMLS_DC);
36 size_t (*cli_shell_write)(const char *str, uint str_length TSRMLS_DC);
37 int (*cli_shell_ub_write)(const char *str, uint str_length TSRMLS_DC);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_utils.c81 PHPDBG_API int phpdbg_is_numeric(const char *str) /* {{{ */ argument
83 if (!str)
86 for (; *str; str++) {
87 if (isspace(*str) || *str == '-') {
90 return isdigit(*str);
95 PHPDBG_API int phpdbg_is_empty(const char *str) /* {{{ */ argument
97 if (!str)
100 for (; *str; st
109 phpdbg_is_addr(const char *str) argument
114 phpdbg_is_class_method(const char *str, size_t len, char **class, char **method) argument
197 phpdbg_trim(const char *str, size_t len, size_t *new_len) argument
[all...]
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 = STR_ALLOC(num->n_len + num->n_scale + signch + 1, 0);
57 str = STR_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/filter/
H A Dlogical_filters.c83 static int php_filter_parse_int(const char *str, unsigned int str_len, 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, long *ret TSRMLS_DC) argument
158 php_filter_parse_hex(const char *str, unsigned int str_len, 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...]
H A Dsanitizing_filters.c32 smart_str str = {0}; local
43 smart_str_appendl(&str, "&#", 2);
44 smart_str_append_unsigned(&str, (unsigned long)*s);
45 smart_str_appendc(&str, ';');
48 smart_str_appendc(&str, *s);
53 smart_str_0(&str);
55 ZVAL_STR(value, str.s);
72 zend_string *str; local
90 str = STR_ALLOC(3 * Z_STRLEN_P(value), 0);
91 p = str
113 unsigned char *str; local
160 unsigned char *str; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dbase64.c56 PHPAPI zend_string *php_base64_encode(const unsigned char *str, int length) /* {{{ */ argument
58 const unsigned char *current = str;
134 PHPAPI zend_string *php_base64_decode(const unsigned char *str, int length) /* {{{ */ argument
136 return php_base64_decode_ex(str, length, 0);
140 PHPAPI zend_string *php_base64_decode_ex(const unsigned char *str, int length, zend_bool strict) /* {{{ */ argument
142 const unsigned char *current = str;
214 /* {{{ proto string base64_encode(string str)
218 char *str; local
222 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
225 result = php_base64_encode((unsigned char*)str, str_le
238 char *str; local
[all...]
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, int length, char from, char to TSRMLS_DC) argument
258 if (!str)
259 return (char *)str;
263 tmp = (from_table == NULL)? str[i] : from_table[ str[i] ];
264 str[i] = (to_table == NULL) ? tmp : to_table[tmp + 256];
266 return (char *)str;
270 /* {{{ proto string convert_cyr_string(string str, strin
276 zend_string *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 */
/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 44 milliseconds

1234567891011>>