Lines Matching defs:length
173 pcre2_match(). Either string length may be PCRE2_ZERO_TERMINATED.
178 length length of subject string (may contain binary zeros)
184 rlength length of replacement string
186 blength points to length of buffer; updated to length of string
195 length. */
197 #define CHECKMEMCPY(from,length) \
199 if (!overflowed && lengthleft < length) \
203 extra_needed = length - lengthleft; \
207 extra_needed += length; \
211 memcpy(buffer + buff_offset, from, CU2BYTES(length)); \
212 buff_offset += length; \
213 lengthleft -= length; \
220 pcre2_substitute(const pcre2_code *code, PCRE2_SPTR subject, PCRE2_SIZE length,
263 /* Validate length and find the end of the replacement. A NULL replacement of
264 zero length is interpreted as an empty string. */
330 /* A NULL subject of zero length is treated as an empty string. */
334 if (length != 0) return PCRE2_ERROR_NULL;
338 /* Find length of zero-terminated subject */
340 if (length == PCRE2_ZERO_TERMINATED)
341 length = subject? PRIV(strlen)(subject) : 0;
362 /* Error if the start match offset is greater than the length of the subject. */
364 if (start_offset > length)
389 else rc = pcre2_match(code, subject, length, start_offset, options|goptions,
406 if (goptions == 0 || start_offset >= length) break;
417 start_offset < length &&
426 while (start_offset < length && (subject[start_offset] & 0xc0) == 0x80)
429 while (start_offset < length &&
493 copy it with length check. */
720 /* We now have a group that is identified by number. Find the length of
962 fraglength = length - start_offset;
970 and matching has carried on after a full buffer, in order to compute the length
980 length of buffer used, excluding the trailing zero. */