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

1234567891011

/PHP_5_6/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_5_6/ext/bcmath/libbcmath/src/
H A Dnum2str.c47 char *str, *sptr; local
54 str = (char *) safe_emalloc (1, num->n_len + num->n_scale, 2 + signch);
56 str = (char *) safe_emalloc (1, num->n_len, 1 + signch);
57 if (str == NULL) bc_out_of_memory();
60 sptr = str;
78 return (str);
/PHP_5_6/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_5_6/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_5_6/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_5_6/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_5_6/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_5_6/Zend/tests/use_function/includes/
H A Dfoo_strlen.php5 function strlen($str) {
/PHP_5_6/Zend/
H A Dzend_string.h27 ZEND_API extern const char *(*zend_new_interned_string)(const char *str, int len, int free_src TSRMLS_DC);
71 #define str_erealloc(str, new_len) \
72 (IS_INTERNED(str) \
73 ? _str_erealloc(str, new_len, INTERNED_LEN(str)) \
74 : erealloc(str, new_len))
76 static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { argument
78 memcpy(buf, str, old_len);
82 #define str_estrndup(str, len) \
83 (IS_INTERNED(str)
[all...]
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);
/PHP_5_6/ext/filter/
H A Dlogical_filters.c69 static int php_filter_parse_int(const char *str, unsigned int str_len, long *ret TSRMLS_DC) { /* {{{ */ argument
72 const char *end = str + str_len;
74 switch (*str) {
78 str++;
83 if (*str == '0' && str + 1 == end) {
89 if (str < end && *str >= '1' && *str <= '9') {
90 ctx_value = ((sign)?-1:1) * ((*(str
121 php_filter_parse_octal(const char *str, unsigned int str_len, long *ret TSRMLS_DC) argument
144 php_filter_parse_hex(const char *str, unsigned int str_len, long *ret TSRMLS_DC) argument
239 char *str = Z_STRVAL_P(value); local
309 char *str, *end; local
557 _php_filter_validate_ipv4(char *str, int str_len, int *ip) argument
592 _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 Z_STRVAL_P(value) = str.c;
56 Z_STRLEN_P(value) = str.len;
69 unsigned char *str, *p; local
90 p = str
112 unsigned char *buf, *str; local
158 unsigned char *buf, *str; local
[all...]
/PHP_5_6/ext/mysqlnd/
H A Dmysqlnd_bt.c30 *str = (char*)erealloc(*str, *len + 1 + 1); \
31 (*str)[(*len)++] = chr
36 *str = (char*)erealloc(*str, *len + l + 1); \
37 memcpy((*str) + *len, val, l); \
55 char **str; local
58 str = va_arg(args, char**);
85 if ((*str)[*len - l_added] < 32) {
86 (*str)[*le
152 char *s_tmp, **str; local
207 char *res = estrdup(""), **str = &res, *s_tmp; local
[all...]
/PHP_5_6/ext/standard/
H A Dbase64.c56 PHPAPI unsigned char *php_base64_encode(const unsigned char *str, int length, int *ret_length) /* {{{ */ argument
58 const unsigned char *current = str;
137 PHPAPI unsigned char *php_base64_decode(const unsigned char *str, int length, int *ret_length) /* {{{ */ argument
139 return php_base64_decode_ex(str, length, ret_length, 0);
143 PHPAPI unsigned char *php_base64_decode_ex(const unsigned char *str, int length, int *ret_length, zend_bool strict) /* {{{ */ argument
145 const unsigned char *current = str;
218 /* {{{ proto string base64_encode(string str)
222 char *str; local
226 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
229 result = php_base64_encode((unsigned char*)str, str_le
242 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 unsigned 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 unsigned char *php_quot_print_decode(const unsigned char *str, size_t length, size_t *ret_length, int replace_us_by_ws);
25 PHPAPI unsigned char *php_quot_print_encode(const unsigned char *str, size_t length, size_t *ret_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_5_6/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)
/PHP_5_6/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_5_6/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...]

Completed in 181 milliseconds

1234567891011