Searched defs:needle (Results 1 - 10 of 10) sorted by relevance

/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.c874 mbfl_wchar_device needle; member in struct:collector_strpos_data
890 if (c == (int)pc->needle.buffer[pc->needle_pos]) {
894 pc->needle_pos++; /* needle pointer */
902 h = (int *)pc->needle.buffer;
907 m = (int *)pc->needle.buffer;
982 mbfl_string *needle,
991 if (haystack == NULL || haystack->val == NULL || needle == NULL || needle->val == NULL) {
1015 if (needle->no_encoding != mbfl_no_encoding_utf8) {
1017 needle_u8 = mbfl_convert_encoding(needle,
980 mbfl_strpos( mbfl_string *haystack, mbfl_string *needle, int offset, int reverse) argument
[all...]
/PHP_TRUNK/ext/intl/grapheme/
H A Dgrapheme_util.c133 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset, int32_t *puchar_pos, int f_ignore_case, int last) argument
153 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, needle, needle_len, &status );
154 STRPOS_CHECK_STATUS(status, "Error converting needle string to UTF-16");
339 grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset) argument
358 if (*e == *needle) {
367 if (memcmp(e, needle, needle_len) == 0) {
H A Dgrapheme_string.c105 /* {{{ proto int grapheme_strpos(string haystack, string needle [, int offset ])
109 char *haystack, *needle; local
116 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|l", &haystack, &haystack_len, &needle, &needle_len, &loffset) == FAILURE) {
141 found = php_memnstr(haystack + offset, needle, needle_len, haystack + haystack_len);
154 ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIgnoreCase */, 0 /* last */ );
165 /* {{{ proto int grapheme_stripos(string haystack, string needle [, int offset ])
169 char *haystack, *needle, *haystack_dup, *needle_dup; local
177 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|l", &haystack, &haystack_len, &needle, &needle_len, &loffset) == FAILURE) {
202 needle_dup = estrndup(needle, needle_len);
216 /* if needle wa
238 char *haystack, *needle; local
301 char *haystack, *needle; local
603 char *haystack, *needle; local
[all...]
/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dxmlrpc_introspection.c78 * needle. slow, would benefit from a struct key hash.
80 static inline XMLRPC_VALUE find_named_value(XMLRPC_VALUE list, const char* needle) { argument
84 if(name && !strcmp(name, needle)) {
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c257 ZEND_ARG_INFO(0, needle)
264 ZEND_ARG_INFO(0, needle)
271 ZEND_ARG_INFO(0, needle)
278 ZEND_ARG_INFO(0, needle)
285 ZEND_ARG_INFO(0, needle)
292 ZEND_ARG_INFO(0, needle)
299 ZEND_ARG_INFO(0, needle)
306 ZEND_ARG_INFO(0, needle)
313 ZEND_ARG_INFO(0, needle)
2253 /* {{{ proto int mb_strpos(string haystack, string needle [, in
2259 mbfl_string haystack, needle; local
2322 mbfl_string haystack, needle; local
2421 mbfl_string haystack, needle; local
2450 mbfl_string haystack, needle; local
2475 mbfl_string haystack, needle, result, *ret = NULL; local
2537 mbfl_string haystack, needle, result, *ret = NULL; local
2603 mbfl_string haystack, needle, result, *ret = NULL; local
2666 mbfl_string haystack, needle, result, *ret = NULL; local
2722 mbfl_string haystack, needle; local
4689 mbfl_string haystack, needle; local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_operators.c2753 static zend_always_inline void zend_memnstr_ex_pre(unsigned int td[], const char *needle, size_t needle_len, int reverse) /* {{{ */ { argument
2762 td[(unsigned char)needle[i]] = i + 1;
2766 td[(unsigned char)needle[i]] = (int)needle_len - i;
2772 ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t needle_len, char *end) /* {{{ */ argument
2782 zend_memnstr_ex_pre(td, needle, needle_len, 0);
2789 if (needle[i] != p[i]) {
2803 ZEND_API const char* ZEND_FASTCALL zend_memnrstr_ex(const char *haystack, const char *needle, size_t needle_len, char *end) /* {{{ */ argument
2813 zend_memnstr_ex_pre(td, needle, needle_len, 1);
2820 if (needle[i] != p[i]) {
H A Dzend_operators.h92 ZEND_API const char* ZEND_FASTCALL zend_memnstr_ex(const char *haystack, const char *needle, size_t needle_len, char *end);
93 ZEND_API const char* ZEND_FASTCALL zend_memnrstr_ex(const char *haystack, const char *needle, size_t needle_len, char *end);
144 zend_memnstr(const char *haystack, const char *needle, size_t needle_len, char *end) argument
147 const char ne = needle[needle_len-1];
152 return (const char *)memchr(p, *needle, (end-p));
166 if ((p = (const char *)memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) {
167 if (!memcmp(needle, p, needle_len-1)) {
181 return zend_memnstr_ex(haystack, needle, needle_len, end);
202 zend_memnrstr(const char *haystack, const char *needle, size_t needle_len, char *end) argument
205 const char ne = needle[needle_le
[all...]
/PHP_TRUNK/main/
H A Drfc1867.c593 static void *php_ap_memstr(char *haystack, int haystacklen, char *needle, int needlen, int partial) argument
599 while( (ptr = memchr(ptr, needle[0], len)) ) {
605 if (memcmp(needle, ptr, needlen < len ? needlen : len) == 0 && (partial || len >= needlen)) {
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c288 http_response_status_code_pair needle = {code, NULL}, local
291 result = bsearch(&needle, http_status_map, http_status_map_len, sizeof(needle), status_comp);
/PHP_TRUNK/ext/standard/
H A Dstring.c1802 static int php_needle_char(zval *needle, char *target) argument
1804 switch (Z_TYPE_P(needle)) {
1806 *target = (char)Z_LVAL_P(needle);
1816 *target = (char)(int)Z_DVAL_P(needle);
1819 *target = (char) zval_get_long(needle);
1822 php_error_docref(NULL, E_WARNING, "needle is not a string or an integer");
1828 /* {{{ proto string stristr(string haystack, string needle[, bool part])
1832 zval *needle; local
1840 if (zend_parse_parameters(ZEND_NUM_ARGS(), "Sz|b", &haystack, &needle, &part) == FAILURE) {
1846 if (Z_TYPE_P(needle)
1885 zval *needle; local
1932 zval *needle; local
1994 zval *needle; local
2051 char *needle; local
2120 zend_string *needle; local
2227 zval *needle; local
3188 php_str_to_str_ex(zend_string *haystack, char *needle, size_t needle_len, char *str, size_t str_len, zend_long *replace_count) argument
3258 php_str_to_str_i_ex(zend_string *haystack, char *lc_haystack, zend_string *needle, char *str, size_t str_len, zend_long *replace_count) argument
3348 php_str_to_str(char *haystack, size_t length, char *needle, size_t needle_len, char *str, size_t str_len) argument
5255 char *haystack, *needle; local
[all...]

Completed in 43 milliseconds