Searched defs:needle_len (Results 1 - 5 of 5) sorted by relevance

/PHP_5_4/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, NULL, 0 /* fIgnoreCase */, 0 /* last */ 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
616 int haystack_len, needle_len; 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) argument
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
343 e = haystack + haystack_len - needle_len;
346 if (needle_len > -offset) {
347 e = haystack + haystack_len - needle_len;
353 if (needle_len == 1) {
365 if (memcmp(e, needle, needle_len) == 0) {
/PHP_5_4/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.c875 int needle_len; member in struct:collector_strpos_data
895 if (pc->needle_pos >= pc->needle_len) {
1089 unsigned int needle_u8_len = needle_u8->len, needle_len = 0; local
1101 ++needle_len;
1103 ++needle_len;
1109 ++needle_len;
1111 ++needle_len;
1118 if (-offset > needle_len) {
1119 offset += needle_len;
1225 pc.needle_len
[all...]
/PHP_5_4/Zend/
H A Dzend_operators.h251 zend_memnstr(char *haystack, char *needle, int needle_len, char *end) argument
254 char ne = needle[needle_len-1];
256 if (needle_len == 1) {
260 if (needle_len > end-haystack) {
264 end -= needle_len;
267 if ((p = (char *)memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) {
268 if (!memcmp(needle, p, needle_len-1)) {
/PHP_5_4/ext/standard/
H A Dstring.c1930 int needle_len, haystack_len; local
1940 needle_len = Z_STRLEN_P(zneedle);
1947 needle_len = 1;
1950 if ((haystack_len == 0) || (needle_len == 0)) {
1960 e = haystack + haystack_len - needle_len;
1968 if (needle_len > -offset) {
1969 e = haystack + haystack_len - needle_len;
1975 if (needle_len == 1) {
1987 if (memcmp(e, needle, needle_len) == 0) {
2003 int needle_len, haystack_le local
3723 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
3895 php_str_to_str(char *haystack, int length, char *needle, int needle_len, char *str, int str_len, int *_new_length) argument
5216 int haystack_len, needle_len; local
[all...]

Completed in 18 milliseconds