Lines Matching defs:subject

14 "(*UTF)", both it and the subject are treated as UTF-8 strings, where
73 PCRE2_SPTR subject; /* the appropriate width (in this case, 8 bits). */
115 and the subject string. */
119 printf("Exactly two arguments required: a regex and a subject string\n");
123 /* Pattern and subject are char arguments, so they can be straightforwardly
124 cast to PCRE2_SPTR because we are working in 8-bit code units. The subject
129 subject = (PCRE2_SPTR)argv[i+1];
130 subject_length = (PCRE2_SIZE)strlen((char *)subject);
160 * pattern match against the subject string. This does just ONE match. If *
177 subject, /* the subject string */
178 subject_length, /* the length of the subject */
179 0, /* start at offset 0 in the subject */
209 * We have found the first match within the subject string. If the output *
231 (char *)(subject + ovector[1]));
243 PCRE2_SPTR substring_start = subject + ovector[2*i];
253 * repeated matches on the same subject. *
291 (int)(ovector[2*n+1] - ovector[2*n]), subject + ovector[2*n]);
299 * to search for additional matches in the subject string, in a similar *
311 * subject is not a valid match; other possibilities must be tried. The *
356 at the end of the subject. Otherwise, arrange to run another match at the
378 if (startchar >= subject_length) break; /* Reached end of subject. */
383 if ((subject[start_offset] & 0xc0) != 0x80) break;
392 subject, /* the subject string */
393 subject_length, /* the length of the subject */
394 start_offset, /* starting offset in the subject */
418 subject[start_offset] == '\r' &&
419 subject[start_offset + 1] == '\n')
425 if ((subject[ovector[1]] & 0xc0) != 0x80) break;
460 (char *)(subject + ovector[1]));
472 PCRE2_SPTR substring_start = subject + ovector[2*i];
485 (int)(ovector[2*n+1] - ovector[2*n]), subject + ovector[2*n]);