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

/PHP_TRUNK/ext/intl/grapheme/
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) {
H A Dgrapheme_string.c112 size_t 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 size_t 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 size_t haystack_len, needle_len; local
324 size_t haystack_len, needle_len; local
623 size_t haystack_len, needle_len; local
[all...]
/PHP_TRUNK/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_TRUNK/Zend/
H A Dzend_operators.h276 zend_memnstr(const char *haystack, const char *needle, size_t needle_len, char *end) argument
279 const char ne = needle[needle_len-1];
283 if (needle_len == 1) {
289 if (needle_len > off_s) {
293 end -= needle_len;
296 if ((p = (char *)memchr(p, *needle, (end-p+1))) && ne == p[needle_len-1]) {
297 if (!memcmp(needle, p, needle_len-1)) {
/PHP_TRUNK/ext/standard/
H A Dstring.c1920 size_t needle_len; local
1939 needle_len = Z_STRLEN_P(zneedle);
1946 needle_len = 1;
1949 if ((haystack->len == 0) || (needle_len == 0)) {
1959 e = haystack->val + haystack->len - needle_len;
1967 if (needle_len > -offset) {
1968 e = haystack->val + haystack->len - needle_len;
1974 if (needle_len == 1) {
1986 if (memcmp(e, needle, needle_len) == 0) {
2003 size_t needle_len; local
3502 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
3667 php_str_to_str(char *haystack, size_t length, char *needle, size_t needle_len, char *str, size_t str_len) argument
4985 size_t haystack_len, needle_len; local
[all...]

Completed in 12 milliseconds