82if (entrysize < 0)
return entrysize;
84for (entry = first; entry <=
last; entry += entrysize)
86 uint32_t
n =
GET2(entry, 0);
127if (rc < 0)
return rc;
129memcpy(
buffer, match_data->subject + match_data->ovector[stringnumber*2],
165int failrc, entrysize;
170if (entrysize < 0)
return entrysize;
172for (entry = first; entry <=
last; entry += entrysize)
174 uint32_t
n =
GET2(entry, 0);
216if (rc < 0)
return rc;
221memcpy(yield, match_data->subject + match_data->ovector[stringnumber*2],
272int failrc, entrysize;
277if (entrysize < 0)
return entrysize;
279for (entry = first; entry <=
last; entry += entrysize)
281 uint32_t
n =
GET2(entry, 0);
320int count = match_data->rc;
330 if (stringnumber > match_data->code->top_bracket)
332 if (stringnumber >= match_data->oveccount)
334 if (match_data->ovector[stringnumber*2] ==
PCRE2_UNSET)
343left = match_data->ovector[stringnumber*2];
344right = match_data->ovector[stringnumber*2+1];
345if (
left > match_data->subject_length ||
right > match_data->subject_length)
386if ((
count = match_data->rc) < 0)
return count;
390ovector = match_data->ovector;
394for (i = 0; i < count2; i += 2)
397 if (ovector[i+1] > ovector[i])
size +=
CU2BYTES(ovector[i+1] - ovector[i]);
406if (lengthsptr ==
NULL)
417for (i = 0; i < count2; i += 2)
419 size = (ovector[i+1] > ovector[i])? (ovector[i+1] - ovector[i]) : 0;
487uint16_t
top = code->name_count;
488uint16_t entrysize = code->name_entry_size;
493 uint16_t mid = (
top + bot) / 2;
501 lastentry = nametable + entrysize * (code->name_count - 1);
502 first =
last = entry;
503 while (first > nametable)
508 while (
last < lastentry)
513 if (firstptr ==
NULL)
return (first ==
last)?
519 if (c > 0) bot = mid + 1;
else top = mid;
count(Countable|array $value, int $mode=COUNT_NORMAL)
#define PCRE2_ERROR_INVALIDOFFSET
#define PCRE2_ERROR_UNAVAILABLE
#define pcre2_substring_get_bynumber
#define pcre2_substring_number_from_name
#define PCRE2_ERROR_UNSET
#define pcre2_substring_free
#define pcre2_substring_length_bynumber
#define PCRE2_ERROR_NOSUBSTRING
#define pcre2_substring_length_byname
#define pcre2_substring_get_byname
#define pcre2_substring_copy_byname
#define pcre2_substring_list_get
#define PCRE2_ERROR_DFA_UFUNC
#define PCRE2_ERROR_NOUNIQUESUBSTRING
#define pcre2_substring_list_free
#define PCRE2_CALL_CONVENTION
#define pcre2_substring_copy_bynumber
#define PCRE2_ERROR_PARTIAL
#define pcre2_substring_nametable_scan
#define PCRE2_ERROR_NOMEMORY
void *PRIV memctl_malloc(size_t size, pcre2_memctl *memctl)
@ PCRE2_MATCHEDBY_DFA_INTERPRETER
void(* free)(void *, void *)
strcmp(string $string1, string $string2)