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

/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/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_string.c107 /* {{{ proto int grapheme_strpos(string haystack, string needle [, int offset ])
111 unsigned char *haystack, *needle; local
118 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &loffset) == FAILURE) {
149 found = (unsigned char *)php_memnstr((char *)haystack + offset, (char *)needle, needle_len, (char *)haystack + haystack_len);
163 ret_pos = grapheme_strpos_utf16(haystack, haystack_len, needle, needle_len, offset, NULL, 0 /* fIgnoreCase */, 0 /* last */ TSRMLS_CC );
174 /* {{{ proto int grapheme_stripos(string haystack, string needle [, int offset ])
178 unsigned char *haystack, *needle, *haystack_dup, *needle_dup; local
186 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &loffset) == FAILURE) {
217 needle_dup = (unsigned char *)estrndup((char *)needle, needle_len);
231 /* if needle wa
253 unsigned char *haystack, *needle; local
323 unsigned char *haystack, *needle; local
622 unsigned char *haystack, *needle, *found; local
[all...]
H A Dgrapheme_util.c131 int grapheme_strpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int32_t *puchar_pos, int f_ignore_case, int last TSRMLS_DC)
151 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, (char *) needle, needle_len, &status );
337 grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset) argument
356 if (*e == *needle) {
365 if (memcmp(e, needle, needle_len) == 0) {
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c264 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)
320 ZEND_ARG_INFO(0, needle)
2243 /* {{{ proto int mb_strpos(string haystack, string needle [, in
2249 mbfl_string haystack, needle; local
2312 mbfl_string haystack, needle; local
2411 mbfl_string haystack, needle; local
2440 mbfl_string haystack, needle; local
2465 mbfl_string haystack, needle, result, *ret = NULL; local
2527 mbfl_string haystack, needle, result, *ret = NULL; local
2593 mbfl_string haystack, needle, result, *ret = NULL; local
2656 mbfl_string haystack, needle, result, *ret = NULL; local
2712 mbfl_string haystack, needle; local
4675 mbfl_string haystack, needle; local
[all...]
/PHP_TRUNK/main/
H A Drfc1867.c590 static void *php_ap_memstr(char *haystack, int haystacklen, char *needle, int needlen, int partial) argument
596 while( (ptr = memchr(ptr, needle[0], len)) ) {
602 if (memcmp(needle, ptr, needlen < len ? needlen : len) == 0 && (partial || len >= needlen)) {
/PHP_TRUNK/ext/standard/
H A Dstring.c1658 static int php_needle_char(zval *needle, char *target TSRMLS_DC) argument
1660 switch (Z_TYPE_P(needle)) {
1662 *target = (char)Z_LVAL_P(needle);
1672 *target = (char)(int)Z_DVAL_P(needle);
1675 *target = (char) zval_get_long(needle);
1678 php_error_docref(NULL TSRMLS_CC, E_WARNING, "needle is not a string or an integer");
1684 /* {{{ proto string stristr(string haystack, string needle[, bool part])
1688 zval *needle; local
1696 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Sz|b", &haystack, &needle, &part) == FAILURE) {
1702 if (Z_TYPE_P(needle)
1741 zval *needle; local
1788 zval *needle; local
1851 zval *needle; local
1909 char *needle; local
1992 char *needle; local
2096 zval *needle; local
3493 php_str_to_str_ex(char *haystack, size_t length, char *needle, size_t needle_len, char *str, size_t str_len, int case_sensitivity, size_t *replace_count) argument
3658 php_str_to_str(char *haystack, size_t length, char *needle, size_t needle_len, char *str, size_t str_len) argument
4972 char *haystack, *needle; local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_operators.h167 zend_memnstr(const char *haystack, const char *needle, size_t needle_len, char *end) argument
170 const char ne = needle[needle_len-1];
175 return (char *)memchr(p, *needle, (end-p));
187 if ((p = (char *)memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) {
188 if (!memcmp(needle, p, needle_len-1)) {
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c341 php_cli_server_http_response_status_code_pair needle, *result = NULL; local
343 needle.code = code;
344 needle.str = NULL;
346 result = bsearch(&needle, status_map, sizeof(status_map) / sizeof(needle), sizeof(needle), status_comp);

Completed in 49 milliseconds