Lines Matching refs:size1
75 # define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \
76 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
387 /* True if `size1' is non-NULL and PTR is pointing anywhere inside
391 (size1 && string1 <= (ptr) && (ptr) <= string1 + size1)
418 const char *string1, int size1,
424 const char *string1, int size1,
442 wchar_t *string1, int size1,
446 const char *string1, int size1,
1181 int size1, const CHAR_T *string2, int size2)
1193 for (this_char = where - string1; this_char < size1; this_char++)
1672 DEBUG_PRINT_DOUBLE_STRING (string_place, string1, size1, string2, \
1721 `pend', `string1', `size1', `string2', and `size2'. */
1748 DEBUG_PRINT_DOUBLE_STRING (str, string1, size1, string2, size2); \
4949 STRING1 and STRING2 have length SIZE1 and SIZE2, respectively.
4967 re_search_2 (struct re_pattern_buffer *bufp, const char *string1, int size1,
4973 return wcs_re_search_2 (bufp, string1, size1, string2, size2, startpos,
4977 return byte_re_search_2 (bufp, string1, size1, string2, size2, startpos,
4999 if (size1 > MAX_ALLOCA_SIZE) \
5026 int size1, const char *string2, int size2,
5033 int total_size = size1 + size2;
5091 if (size1 != 0)
5093 if (size1 > MAX_ALLOCA_SIZE)
5095 wcs_string1 = TALLOC (size1 + 1, CHAR_T);
5096 mbs_offset1 = TALLOC (size1 + 1, int);
5097 is_binary = TALLOC (size1 + 1, char);
5101 wcs_string1 = REGEX_TALLOC (size1 + 1, CHAR_T);
5102 mbs_offset1 = REGEX_TALLOC (size1 + 1, int);
5103 is_binary = REGEX_TALLOC (size1 + 1, char);
5107 if (size1 > MAX_ALLOCA_SIZE)
5121 wcs_size1 = convert_mbs_to_wcs(wcs_string1, string1, size1,
5124 if (size1 > MAX_ALLOCA_SIZE)
5178 if (startpos < size1 && startpos + range >= size1)
5179 lim = range - (size1 - startpos);
5181 d = (startpos >= size1 ? string2 - size1 : string1) + startpos;
5198 register CHAR_T c = (size1 == 0 || startpos >= size1
5199 ? string2[startpos - size1]
5218 val = wcs_re_match_2_internal (bufp, string1, size1, string2,
5224 val = byte_re_match_2_internal (bufp, string1, size1, string2,
5286 : ((regoff_t) ((ptr) - string2 + size1)))
5308 #define AT_STRINGS_BEG(d) ((d) == (size1 ? string1 : string2) || !size2)
5454 the (virtual) concatenation of STRING1 and STRING2 (of length SIZE1
5467 re_match_2 (struct re_pattern_buffer *bufp, const char *string1, int size1,
5474 result = wcs_re_match_2_internal (bufp, string1, size1, string2, size2,
5479 result = byte_re_match_2_internal (bufp, string1, size1, string2, size2,
5553 /* string1 == string2 == NULL means string1/2, size1/2 and
5556 wchar_t *string1, int size1,
5563 const char *string1, int size1,
5743 if (pos < 0 || pos > size1 + size2)
5820 size2 = size1;
5822 size1 = 0;
5830 end1 = string1 + size1;
5855 if (stop <= size1)
5863 end_match_2 = string2 + stop - size1;
5874 if (size1 > 0 && pos <= csize1)
5893 if (size1 > 0 && pos <= size1)
5900 d = string2 + pos - size1;
5908 DEBUG_PRINT_DOUBLE_STRING (d, string1, size1, string2, size2);
6053 : ((regoff_t) (d - string2 + size1)));
6097 : string2 - size1);