| /PHP_TRUNK/ext/phar/phar/ |
| H A D | pharcommand.inc | 189 * Whether a string ends with another needle. 192 * @param string $needle The needle. 194 * substr'ed if the string ends with the needle. 196 static function strEndsWith($haystack, $needle) 198 return substr($haystack, -strlen($needle)) == $needle;
|
| /PHP_TRUNK/ext/standard/tests/filters/ |
| H A D | filter_errors.inc | 3 function filter_errors_skipif($needle) { 9 if (fnmatch($filter, $needle)) return; 11 die("skip $needle not available");
|
| /PHP_TRUNK/ext/xmlrpc/libxmlrpc/ |
| H A D | xmlrpc_introspection.c | 78 * 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/intl/doc/ |
| H A D | grapheme_api.php | 32 * @param string $needle The string to look for 36 * @return int Returns the position as an integer. If needle is not found, strpos() will return boolean FALSE. 38 function grapheme_strpos($haystack, $needle, $offset = 0) {} 44 * @param string $needle The string to look for 48 * @return int Returns the position as an integer. If needle is not found, grapheme_stripos() will return boolean FALSE. 50 function grapheme_stripos($haystack, $needle, $offset = 0) {} 56 * @param string $needle The string to look for 60 * @return int Returns the position as an integer. If needle is not found, grapheme_strrpos() will return boolean FALSE. 62 function grapheme_strrpos($haystack, $needle, $offset = 0) {} 68 * @param string $needle Th [all...] |
| /PHP_TRUNK/ext/intl/grapheme/ |
| H A D | grapheme_string.c | 107 /* {{{ 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, &uchar_pos, 0 /* fIgnoreCase */ 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 599 unsigned char *haystack, *needle, *found; local [all...] |
| H A D | grapheme_util.c | 152 grapheme_strrpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int f_ignore_case TSRMLS_DC) 202 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, (char *) needle, needle_len, &status ); 243 /* is there enough haystack left to hold the needle? */ 253 /* does the grapheme in the haystack end at the same place as the last grapheme in the needle? */ 286 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 TSRMLS_DC) 342 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, (char *) needle, needle_len, &status ); 458 /* {{{ grapheme_memnstr_grapheme: find needle in haystack using grapheme boundaries */ 460 grapheme_memnstr_grapheme(UBreakIterator *bi, UChar *haystack, UChar *needle, int32_t needle_len, UChar *end) argument 463 UChar ne = needle[needle_len-1]; 471 if ((p = u_memchr(p, *needle, (en 570 grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset) argument [all...] |
| H A D | grapheme_util.h | 30 grapheme_strrpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int f_ignore_case TSRMLS_DC); 33 grapheme_strpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int *puchar_pos, int f_ignore_case TSRMLS_DC); 43 grapheme_memnstr_grapheme(UBreakIterator *bi, UChar *haystack, UChar *needle, int32_t needle_len, UChar *end); 51 grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset);
|
| /PHP_TRUNK/ext/intl/ |
| H A D | php_intl.c | 214 ZEND_ARG_INFO(0, needle) 226 ZEND_ARG_INFO(0, needle)
|
| /PHP_TRUNK/ext/mbstring/libmbfl/mbfl/ |
| H A D | mbfilter.c | 874 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...] |
| H A D | mbfilter.h | 194 mbfl_strpos(mbfl_string *haystack, mbfl_string *needle, int offset, int reverse); 201 mbfl_substr_count(mbfl_string *haystack, mbfl_string *needle);
|
| /PHP_TRUNK/ext/iconv/ |
| H A D | iconv.c | 80 ZEND_ARG_INFO(0, needle) 87 ZEND_ARG_INFO(0, needle) 2029 /* {{{ proto int iconv_strpos(string haystack, string needle [, int offset [, string charset]]) 2030 Finds position of first occurrence of needle within part of haystack beginning with offset */ 2077 /* {{{ proto int iconv_strrpos(string haystack, string needle [, string charset]) 2078 Finds position of last occurrence of needle within part of haystack beginning with offset */
|
| /PHP_TRUNK/ext/mbstring/ |
| H A D | mbstring.c | 265 ZEND_ARG_INFO(0, needle) 272 ZEND_ARG_INFO(0, needle) 279 ZEND_ARG_INFO(0, needle) 286 ZEND_ARG_INFO(0, needle) 293 ZEND_ARG_INFO(0, needle) 300 ZEND_ARG_INFO(0, needle) 307 ZEND_ARG_INFO(0, needle) 314 ZEND_ARG_INFO(0, needle) 321 ZEND_ARG_INFO(0, needle) 2221 /* {{{ proto int mb_strpos(string haystack, string needle [, in 2227 mbfl_string haystack, needle; local 2290 mbfl_string haystack, needle; local 2389 mbfl_string haystack, needle; local 2418 mbfl_string haystack, needle; local 2443 mbfl_string haystack, needle, result, *ret = NULL; local 2501 mbfl_string haystack, needle, result, *ret = NULL; local 2563 mbfl_string haystack, needle, result, *ret = NULL; local 2621 mbfl_string haystack, needle, result, *ret = NULL; local 2673 mbfl_string haystack, needle; local 4660 mbfl_string haystack, needle; local [all...] |
| /PHP_TRUNK/ext/standard/ |
| H A D | php_string.h | 131 PHPAPI char *php_str_to_str_ex(char *haystack, int length, char *needle, 133 PHPAPI char *php_str_to_str(char *haystack, int length, char *needle,
|
| H A D | string.c | 1664 static int php_needle_char(zval *needle, char *target TSRMLS_DC) argument 1666 switch (Z_TYPE_P(needle)) { 1669 *target = (char)Z_LVAL_P(needle); 1675 *target = (char)(int)Z_DVAL_P(needle); 1679 zval holder = *needle; 1689 php_error_docref(NULL TSRMLS_CC, E_WARNING, "needle is not a string or an integer"); 1696 /* {{{ proto string stristr(string haystack, string needle[, bool part]) 1700 zval *needle; local 1709 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|b", &haystack, &haystack_len, &needle, &part) == FAILURE) { 1715 if (Z_TYPE_P(needle) 1754 zval *needle; local 1802 zval *needle; local 1858 zval *needle; local 1916 char *needle, *haystack; local 1989 char *needle, *haystack; local 2092 zval *needle; local 3653 php_str_to_str_ex(char *haystack, int length, char *needle, int needle_len, char *str, int str_len, int *_new_length, int case_sensitivity, int *replace_count) argument 3825 php_str_to_str(char *haystack, int length, char *needle, int needle_len, char *str, int str_len, int *_new_length) argument 5142 char *haystack, *needle; local [all...] |
| H A D | basic_functions.c | 324 ZEND_ARG_INFO(0, needle) 330 ZEND_ARG_INFO(0, needle) 2249 ZEND_ARG_INFO(0, needle) 2255 ZEND_ARG_INFO(0, needle) 2261 ZEND_ARG_INFO(0, needle) 2267 ZEND_ARG_INFO(0, needle) 2273 ZEND_ARG_INFO(0, needle) 2279 ZEND_ARG_INFO(0, needle) 2285 ZEND_ARG_INFO(0, needle) 2441 ZEND_ARG_INFO(0, needle) [all...] |
| /PHP_TRUNK/Zend/ |
| H A D | zend_operators.h | 273 zend_memnstr(char *haystack, char *needle, int needle_len, char *end) argument 276 char ne = needle[needle_len-1]; 279 return (char *)memchr(p, *needle, (end-p)); 289 if ((p = (char *)memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) { 290 if (!memcmp(needle, p, needle_len-1)) {
|