/external/pcre/ |
D | pcredemo.c | 59 int ovector[OVECCOUNT]; in main() local 128 ovector, /* output vector for substring information */ in main() 149 printf("\nMatch succeeded at offset %d\n", ovector[0]); in main() 171 char *substring_start = subject + ovector[2*i]; in main() 172 int substring_length = ovector[2*i+1] - ovector[2*i]; in main() 221 ovector[2*n+1] - ovector[2*n], subject + ovector[2*n]); in main() 299 int start_offset = ovector[1]; /* Start at end of previous match */ in main() 305 if (ovector[0] == ovector[1]) in main() 307 if (ovector[0] == subject_length) break; in main() 320 ovector, /* output vector for substring information */ in main() [all …]
|
D | pcre_get.c | 186 get_first_set(const pcre *code, const char *stringname, int *ovector) in get_first_set() argument 199 if (ovector[n*2] >= 0) return n; in get_first_set() 235 pcre_copy_substring(const char *subject, int *ovector, int stringcount, in pcre_copy_substring() argument 242 yield = ovector[stringnumber+1] - ovector[stringnumber]; in pcre_copy_substring() 244 memcpy(buffer, subject + ovector[stringnumber], yield); in pcre_copy_substring() 280 pcre_copy_named_substring(const pcre *code, const char *subject, int *ovector, in pcre_copy_named_substring() argument 283 int n = get_first_set(code, stringname, ovector); in pcre_copy_named_substring() 285 return pcre_copy_substring(subject, ovector, stringcount, n, buffer, size); in pcre_copy_named_substring() 312 pcre_get_substring_list(const char *subject, int *ovector, int stringcount, in pcre_get_substring_list() argument 322 size += sizeof(char *) + ovector[i+1] - ovector[i] + 1; in pcre_get_substring_list() [all …]
|
D | pcreposix.c | 302 int *ovector = NULL; in regexec() local 324 ovector = &(small_ovector[0]); in regexec() 329 ovector = (int *)malloc(sizeof(int) * nmatch * 3); in regexec() 330 if (ovector == NULL) return REG_ESPACE; in regexec() 352 0, options, ovector, (int)(nmatch * 3)); in regexec() 365 pmatch[i].rm_so = ovector[i*2]; in regexec() 366 pmatch[i].rm_eo = ovector[i*2+1]; in regexec() 368 if (allocated_ovector) free(ovector); in regexec() 376 if (allocated_ovector) free(ovector); in regexec()
|
D | pcregexp.pas | 350 var ovector : integer; 355 function pcre_copy_substring( const subject : pchar; var ovector : integer; in pcre_copy_substring() 388 var ovector : integer; 398 function pcre_get_substring( const subject : pchar; var ovector : integer; in pcre_get_substring() 401 function pcre_get_substring_list( const subject : pchar; var ovector : integer; in pcre_get_substring_list()
|
D | NEWS | 469 ovector is required at matching time, to provide some additional workspace.
|
D | ChangeLog | 810 pcre_exec() in ovector are byte offsets, not character counts. 2640 would have been treated as zero, but if in addition "ovector" was passed as 3969 back references than supplied space in the ovector. This could cause segfaults. 4001 pcre_exec() didn't supply a large enough ovector to record the related
|
/external/webkit/Source/JavaScriptCore/runtime/ |
D | RegExpConstructor.h | 45 const Vector<int, 32>& lastOvector() const { return ovector[lastOvectorIndex]; } in lastOvector() 46 Vector<int, 32>& lastOvector() { return ovector[lastOvectorIndex]; } in lastOvector() 47 Vector<int, 32>& tempOvector() { return ovector[lastOvectorIndex ? 0 : 1]; } in tempOvector() 52 Vector<int, 32> ovector[2]; member 73 …formMatch(RegExp*, const UString&, int startOffset, int& position, int& length, int** ovector = 0); 112 …rformMatch(RegExp* r, const UString& s, int startOffset, int& position, int& length, int** ovector) in performMatch() argument 116 if (ovector) in performMatch() 117 *ovector = d->tempOvector().data(); in performMatch()
|
D | StringPrototype.cpp | 156 …rencesSlow(const UString& replacement, const UString& source, const int* ovector, RegExp* reg, siz… in substituteBackreferencesSlow() argument 177 backrefStart = ovector[0]; in substituteBackreferencesSlow() 178 backrefLength = ovector[1] - backrefStart; in substituteBackreferencesSlow() 181 backrefLength = ovector[0]; in substituteBackreferencesSlow() 183 backrefStart = ovector[1]; in substituteBackreferencesSlow() 202 backrefStart = ovector[2 * backrefIndex]; in substituteBackreferencesSlow() 203 backrefLength = ovector[2 * backrefIndex + 1] - backrefStart; in substituteBackreferencesSlow() 222 …eBackreferences(const UString& replacement, const UString& source, const int* ovector, RegExp* reg) in substituteBackreferences() argument 226 return substituteBackreferencesSlow(replacement, source, ovector, reg, i); in substituteBackreferences() 337 int* ovector; in stringProtoFuncReplace() local [all …]
|
D | RegExp.cpp | 133 int RegExp::match(const UString& s, int startOffset, Vector<int, 32>* ovector) in match() argument 149 if (ovector) { in match() 150 ovector->resize(offsetVectorSize); in match() 151 offsetVector = ovector->data(); in match()
|
D | RegExp.h | 52 int match(const UString&, int startOffset, Vector<int, 32>* ovector = 0);
|
/external/pcre/doc/ |
D | pcre.txt | 834 int options, int *ovector, int ovecsize); 838 int options, int *ovector, int ovecsize, 842 const char *subject, int *ovector, 846 int pcre_copy_substring(const char *subject, int *ovector, 851 const char *subject, int *ovector, 861 int pcre_get_substring(const char *subject, int *ovector, 866 int *ovector, int stringcount, const char ***listptr); 1921 int options, int *ovector, int ovecsize); 1940 int ovector[30]; 1948 ovector, /* vector of integers for substring information */ [all …]
|
/external/webkit/Source/JavaScriptCore/ |
D | ChangeLog-2010-05-24 | 1469 (JSC::RegExp::match): resize ovector to 0 instead of clearing to avoid 27143 allocating a new ovector buffer every time.
|
D | ChangeLog-2011-02-16 | 13773 Removed extraneous truncation of ovector on entry and error exit.
|
D | ChangeLog-2008-08-10 | 28453 ovector as a OwnArrayPtr<int> for efficiency and clearer storage management.
|