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

1234567

/PHP_TRUNK/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_TRUNK/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:__anon73
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_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/xmlrpc/libxmlrpc/
H A Dsimplestring.h52 char* str; /* string buf */ member in struct:_simplestring
/PHP_TRUNK/ext/intl/
H A Dintl_convertcpp.cpp28 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status) argument
39 str, str_len, U_SENTINEL /* no substitution */, NULL,
/PHP_TRUNK/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_TRUNK/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);
H A Dtestc.c34 static void xx(char* pattern, char* str, int from, int to, int mem, int not) argument
51 r = regexec(&reg, str, reg.re_nsub + 1, pmatch, 0);
61 fprintf(stdout, "OK(N): /%s/ '%s'\n", pattern, str);
65 fprintf(stdout, "FAIL: /%s/ '%s'\n", pattern, str);
71 fprintf(stdout, "FAIL(N): /%s/ '%s'\n", pattern, str);
76 fprintf(stdout, "OK: /%s/ '%s'\n", pattern, str);
80 fprintf(stdout, "FAIL: /%s/ '%s' %d-%d : %d-%d\n", pattern, str,
102 r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)),
144 x2(char* pattern, char* str, int from, int to) argument
149 x3(char* pattern, char* str, int from, int to, int mem) argument
154 n(char* pattern, char* str) argument
[all...]
/PHP_TRUNK/ext/mbstring/oniguruma/win32/
H A Dtestc.c34 static void xx(char* pattern, char* str, int from, int to, int mem, int not) argument
51 r = regexec(&reg, str, reg.re_nsub + 1, pmatch, 0);
61 fprintf(stdout, "OK(N): /%s/ '%s'\n", pattern, str);
65 fprintf(stdout, "FAIL: /%s/ '%s'\n", pattern, str);
71 fprintf(stdout, "FAIL(N): /%s/ '%s'\n", pattern, str);
76 fprintf(stdout, "OK: /%s/ '%s'\n", pattern, str);
80 fprintf(stdout, "FAIL: /%s/ '%s' %d-%d : %d-%d\n", pattern, str,
102 r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)),
144 x2(char* pattern, char* str, int from, int to) argument
149 x3(char* pattern, char* str, int from, int to, int mem) argument
154 n(char* pattern, char* str) argument
[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...]
H A Dzip_file_get_external_attributes.c41 const zip_uint8_t *str; local
/PHP_TRUNK/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...]
/PHP_TRUNK/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_TRUNK/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_TRUNK/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.c256 /* {{{ proto string crypt(string str [, string salt])
261 char *str, *salt_in = NULL, *result = NULL; local
269 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &str, &str_len, &salt_in, &salt_in_len) == FAILURE) {
296 if (php_crypt(str, str_len, salt, salt_in_len, &result) == FAILURE) {
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 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_TRUNK/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_TRUNK/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 78 milliseconds

1234567