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

123456789

/PHP_5_4/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_4/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_4/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.h52 char* str; /* string buf */ member in struct:_simplestring
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_4/ext/intl/collator/
H A Dcollator_convert.h33 zval* collator_convert_string_to_number_if_possible( zval* str );
34 zval* collator_convert_string_to_double( zval* str );
H A Dcollator_is_numeric.h24 zend_uchar collator_is_numeric( UChar *str, int length, long *lval, double *dval, int allow_errors );
H A Dcollator_convert.c193 char* str = NULL; local
198 intl_convert_utf16_to_utf8( &str, &str_len,
204 ZVAL_STRINGL( utf8_zval, str, str_len, FALSE );
324 * @param zval* str String to convert.
326 * @return zval* Number. If str is not numeric string return number zero.
328 zval* collator_convert_string_to_number( zval* str )
330 zval* num = collator_convert_string_to_number_if_possible( str );
331 if( num == str )
348 * @param zval* str String to convert.
350 * @return zval* Number. If str i
417 zval* str = NULL; local
[all...]
/PHP_5_4/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_4/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_4/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.c54 PHPAPI unsigned char *php_quot_print_decode(const unsigned char *str, size_t length, size_t *ret_length, int replace_us_by_ws) /* {{{ */ argument
87 i = length, p1 = str; buf_size = length;
100 i = length; p1 = str; p2 = retval;
148 PHPAPI unsigned char *php_quot_print_encode(const unsigned char *str, size_t length, size_t *ret_length) /* {{{ */ argument
158 if (((c = *str++) == '\015') && (*str == '\012') && length > 0) {
160 *d++ = *str++;
164 if (iscntrl (c) || (c == 0x7f) || (c & 0x80) || (c == '=') || ((c == ' ') && (*str == '\015'))) {
201 /* {{{ proto string quoted_printable_decode(string str)
262 /* {{{ proto string quoted_printable_encode(string str) */
265 char *str, *new_str; local
[all...]
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 Dsoundex.c27 /* {{{ proto string soundex(string str)
31 char *str; local
63 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
77 code = toupper((int)(unsigned char)str[i]);
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 Durl.c64 PHPAPI char *php_replace_controlchars_ex(char *str, int len) argument
66 unsigned char *s = (unsigned char *)str;
67 unsigned char *e = (unsigned char *)str + len;
69 if (!str) {
81 return (str);
85 PHPAPI char *php_replace_controlchars(char *str) argument
87 return php_replace_controlchars_ex(str, strlen(str));
90 PHPAPI php_url *php_url_parse(char const *str) argument
92 return php_url_parse_ex(str, strle
97 php_url_parse_ex(char const *str, int length) argument
377 char *str; local
570 php_url_decode(char *str, int len) argument
604 unsigned char *str; local
671 php_raw_url_decode(char *str, int len) argument
[all...]
/PHP_5_4/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_4/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_4/Zend/
H A Dzend_constants.h43 #define REGISTER_STRING_CONSTANT(name, str, flags) zend_register_string_constant((name), sizeof(name), (str), (flags), module_number TSRMLS_CC)
44 #define REGISTER_STRINGL_CONSTANT(name, str, len, flags) zend_register_stringl_constant((name), sizeof(name), (str), (len), (flags), module_number TSRMLS_CC)
48 #define REGISTER_NS_STRING_CONSTANT(ns, name, str, flags) zend_register_string_constant(ZEND_NS_NAME(ns, name), sizeof(ZEND_NS_NAME(ns, name)), (str), (flags), module_number TSRMLS_CC)
49 #define REGISTER_NS_STRINGL_CONSTANT(ns, name, str, len, flags) zend_register_stringl_constant(ZEND_NS_NAME(ns, name), sizeof(ZEND_NS_NAME(ns, name)), (str), (len), (flags), module_number TSRMLS_CC)
53 #define REGISTER_MAIN_STRING_CONSTANT(name, str, flags) zend_register_string_constant((name), sizeof(name), (str), (flag
[all...]
H A Dzend_ini_scanner.h33 int zend_ini_prepare_string_for_scanning(char *str, int scanner_mode TSRMLS_DC);
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_4/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_4/ext/mysqlnd/
H A Dmysqlnd_bt.c31 *str = (char*)erealloc(*str, *len + 1 + 1); \
32 (*str)[(*len)++] = chr
37 *str = (char*)erealloc(*str, *len + l + 1); \
38 memcpy((*str) + *len, val, l); \
85 char **str; local
88 str = va_arg(args, char**);
115 if ((unsigned char)(*str)[*len - l_added] < 32) {
116 (*str)[*le
219 char *s_tmp, **str; local
300 char **str; local
396 char *s_tmp, **str; local
451 char *res = estrdup(""), **str = &res, *s_tmp; local
[all...]

Completed in 64 milliseconds

123456789