Searched refs:needle_len (Results 1 - 7 of 7) sorted by relevance

/PHP_5_3/ext/intl/grapheme/
H A Dgrapheme_string.c112 int haystack_len, needle_len; local
118 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &loffset) == FAILURE) {
138 if (needle_len == 0) {
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 );
179 int haystack_len, needle_len; local
186 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &loffset) == FAILURE) {
206 if (needle_len == 0) {
217 needle_dup = (unsigned char *)estrndup((char *)needle, needle_len);
218 php_strtolower((char *)needle_dup, needle_len);
254 int haystack_len, needle_len; local
324 int haystack_len, needle_len; local
596 int haystack_len, needle_len; local
[all...]
H A Dgrapheme_util.c152 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) argument
202 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, (char *) needle, needle_len, &status );
226 /* back up until there's needle_len characters to compare */
251 if (!u_memcmp(uneedle, puhaystack, uneedle_len)) { /* needle_len - 1 in zend memnstr? */
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) argument
342 intl_convert_utf8_to_utf16(&uneedle, &uneedle_len, (char *) needle, needle_len, &status );
460 grapheme_memnstr_grapheme(UBreakIterator *bi, UChar *haystack, UChar *needle, int32_t needle_len, UChar *end) argument
463 UChar ne = needle[needle_len-1];
467 end -= needle_len;
471 if ((p = u_memchr(p, *needle, (end-p+1))) && ne == p[needle_len
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 Dgrapheme_util.h30 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_5_3/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.c755 int needle_len; member in struct:collector_strpos_data
775 if (pc->needle_pos >= pc->needle_len) {
969 unsigned int needle_u8_len = needle_u8->len, needle_len = 0; local
981 ++needle_len;
983 ++needle_len;
989 ++needle_len;
991 ++needle_len;
998 if (-offset > needle_len) {
999 offset += needle_len;
1105 pc.needle_len
[all...]
/PHP_5_3/ext/standard/
H A Dphp_string.h132 int needle_len, char *str, int str_len, int *_new_length, int case_sensitivity, int *replace_count);
134 int needle_len, char *str, int str_len, int *_new_length);
H A Dstring.c1844 int needle_len, haystack_len; local
1854 needle_len = Z_STRLEN_P(zneedle);
1861 needle_len = 1;
1864 if ((haystack_len == 0) || (needle_len == 0)) {
1874 e = haystack + haystack_len - needle_len;
1882 if (needle_len > -offset) {
1883 e = haystack + haystack_len - needle_len;
1889 if (needle_len == 1) {
1901 if (memcmp(e, needle, needle_len) == 0) {
1917 int needle_len, haystack_le local
3398 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
3570 php_str_to_str(char *haystack, int length, char *needle, int needle_len, char *str, int str_len, int *_new_length) argument
4839 int haystack_len, needle_len; local
[all...]
/PHP_5_3/Zend/
H A Dzend_operators.h227 zend_memnstr(char *haystack, char *needle, int needle_len, char *end) argument
230 char ne = needle[needle_len-1];
232 if (needle_len == 1) {
236 if (needle_len > end-haystack) {
240 end -= needle_len;
243 if ((p = (char *)memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) {
244 if (!memcmp(needle, p, needle_len-1)) {

Completed in 31 milliseconds