Searched defs:str (Results 1 - 25 of 140) sorted by relevance

123456

/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);
H A Dstr2num.c44 bc_str2num (bc_num *num, char *str, int scale TSRMLS_DC) argument
54 ptr = str;
79 ptr = str;
/PHP_5_4/ext/ereg/regex/
H A Dsplit.c147 * pgm str sep splits str by sep
148 * pgm str sep n splits str by sep n times
210 char *str; member in struct:__anon71
287 for (n = 0; tests[n].str != NULL; n++) {
288 (void) strcpy(buf, tests[n].str);
294 tests[n].str, tests[n].seps, nf, tests[n].nf);
306 tests[n].str, tests[n].seps,
/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 Dxmlrpc_private.h91 simplestring str; /* string value buffer */ member in struct:_xmlrpc_value
/PHP_5_4/ext/intl/collator/
H A Dcollator_is_numeric.c225 zend_uchar collator_is_numeric( UChar *str, int length, long *lval, double *dval, int allow_errors ) argument
237 if (length>=2 && str[0]=='0' && (str[1]=='x' || str[1]=='X')) {
242 local_lval = collator_u_strtol(str, &end_ptr_long, conv_base);
244 if (end_ptr_long == str+length) { /* integer string */
249 } else if (end_ptr_long == str && *end_ptr_long != '\0' && *str != '.' && *str != '-') { /* ignore partial string matches */
261 local_dval = collator_u_strtod(str,
[all...]
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/mbstring/libmbfl/tests/
H A Demoji.c36 //char str[] = {0xF9,0xD7,0x00}; // U+2122
37 //char str[] = {0xF9,0x82,0x00}; // U+1F195
38 char str[] = {0xF9,0xD6,0x00}; // U+00A9 local
41 //char str[] = {0xF7,0x6A,0x00};// U+2122
42 //char str[] = {0xF7,0xE5,0x00}; // U+1F195
43 //char str[] = {0xF3,0xD2,0x00}; // U+1F1E8 U+1F1F3
44 char str[] = {0xF7,0x74,0x00}; // U+00A9 local
47 //char str[] = {0xFB,0xD7,0x00};// U+2122
48 //char str[] = {0xF7,0xB2,0x00}; // U+1F195
49 //char str[]
50 char str[] = {0xF7,0xEE,0x00}; // U+00A9 local
[all...]
/PHP_5_4/ext/fileinfo/libmagic/
H A Dfsmagic.c78 handle_mime(struct magic_set *ms, int mime, const char *str) argument
81 if (file_printf(ms, "inode/%s", str) == -1)
/PHP_5_4/ext/mbstring/oniguruma/
H A Dreggnu.c64 re_match(regex_t* reg, const char* str, int size, int pos, argument
67 return onig_match(reg, (UChar* )str, (UChar* )(str + size),
68 (UChar* )(str + pos), regs, ONIG_OPTION_NONE);
/PHP_5_4/ext/pdo_sqlite/
H A Dsqlite_statement.c281 const char *str; local
317 str = sqlite3_column_decltype(S->stmt, colno);
318 if (str) {
319 add_assoc_string(return_value, "sqlite:decl_type", (char *)str, 1);
323 str = sqlite3_column_table_name(S->stmt, colno);
324 if (str) {
325 add_assoc_string(return_value, "table", (char *)str, 1);
/PHP_5_4/ext/recode/
H A Drecode.c72 ZEND_ARG_INFO(0, str)
142 /* {{{ proto string recode_string(string request, string str)
143 Recode string str according to request string */
150 char *req, *str; local
152 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &req, &req_len, &str, &str_len) == FAILURE) {
168 recode_buffer_to_buffer(request, str, str_len, &r, &r_len, &r_alen);
/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 Dcrypt.c148 /* {{{ proto string crypt(string str [, string salt])
153 char *str, *salt_in = NULL; local
162 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &str, &str_len, &salt_in, &salt_in_len) == FAILURE) {
195 RETURN_STRING(php_md5_crypt_r(str, salt, output), 1);
206 crypt_res = php_sha512_crypt_r(str, salt, output, needed);
229 crypt_res = php_sha256_crypt_r(str, salt, output, needed);
254 crypt_res = php_crypt_blowfish_rn(str, salt, output, sizeof(output));
270 crypt_res = _crypt_extended_r(str, salt, &buffer);
294 crypt_res = crypt_r(str, salt, &buffer);
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 Dexec.c241 PHPAPI char *php_escape_shell_cmd(char *str) argument
243 register int x, y, l = strlen(str);
253 int mb_len = php_mblen(str + x, (l - x));
259 memcpy(cmd + y, str + x, mb_len);
265 switch (str[x]) {
269 if (!p && (p = memchr(str + x + 1, str[x], l - x - 1))) {
271 } else if (p && *p == str[x]) {
276 cmd[y++] = str[x];
314 cmd[y++] = str[
332 php_escape_shell_arg(char *str) argument
[all...]
H A Dmetaphone.c34 char *str; local
39 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len,
44 if (metaphone((unsigned char *)str, str_len, phones, &result, 1) == 0) {
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 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]);
/PHP_5_4/sapi/embed/
H A Dphp_embed.c47 static inline size_t php_embed_single_write(const char *str, uint str_length) argument
52 ret = write(STDOUT_FILENO, str, str_length);
58 ret = fwrite(str, 1, MIN(str_length, 16384), stdout);
64 static int php_embed_ub_write(const char *str, uint str_length TSRMLS_DC) argument
66 const char *ptr = str;
/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...]
/PHP_5_4/ext/json/
H A Dphp_json.h52 PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, int str_len, int options, long depth TSRMLS_DC);
75 static inline void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, long depth TSRMLS_DC) argument
77 php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth TSRMLS_CC);
/PHP_5_4/ext/intl/formatter/
H A Dformatter_parse.c32 /* {{{ proto mixed NumberFormatter::parse( string $str[, int $type, int &$position ])
34 /* {{{ proto mixed numfmt_parse( NumberFormatter $nf, string $str[, int $type, int &$position ])
42 char* str = NULL; local
54 &object, NumberFormatter_ce_ptr, &str, &str_len, &type, &zposition ) == FAILURE )
66 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo));
120 /* {{{ proto double NumberFormatter::parseCurrency( string $str, string $&currency[, int $&position] )
122 /* {{{ proto double numfmt_parse_currency( NumberFormatter $nf, string $str, string $&currency[, int $&position] )
133 char *str; local
142 &object, NumberFormatter_ce_ptr, &str, &str_len, &zcurrency, &zposition ) == FAILURE )
154 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_le
[all...]

Completed in 19 milliseconds

123456