Lines Matching refs:pattern
288 static const char _kPattern[] = "pattern";
436 * things if they futz with the pattern data. But since we don't give them a way to
437 * specify a pattern for arbitrary combinations of components, there's not much use in
464 const UChar *pattern;
492 pattern=ures_getStringByKeyWithFallback(dspbundle, _kPattern, &patLen, &status);
504 if(patLen==0 || (patLen==defaultPatLen && !u_strncmp(pattern, defaultPattern, patLen))) {
505 pattern=defaultPattern;
509 } else { /* non-default pattern */
510 UChar *p0=u_strstr(pattern, sub0);
511 UChar *p1=u_strstr(pattern, sub1);
516 sub0Pos=p0-pattern;
517 sub1Pos=p1-pattern;
518 if (sub1Pos < sub0Pos) { /* a very odd pattern */
533 int32_t patPos=0; /* position in the pattern, used for non-substitution portions */
540 /* prefix of pattern, extremely likely to be empty */
544 *p++ = pattern[patPos++];
666 /* append internal portion of pattern, the first time,
667 or last portion of pattern the second time */
674 *p++=pattern[patPos++];
693 /* would have fit, but didn't because of pattern prefix. */