Lines Matching refs:pattern
289 static const char _kPattern[] = "pattern";
456 * things if they futz with the pattern data. But since we don't give them a way to
457 * specify a pattern for arbitrary combinations of components, there's not much use in
483 const UChar *pattern;
516 pattern=ures_getStringByKeyWithFallback(dspbundle, _kPattern, &patLen, &status);
526 /* #10244: Even though separator is now a pattern, it is awkward to handle it as such
528 * and to handle it as a pattern would entail having separate storage for the
532 * that is before {0} or after {1} (no existing separator pattern has any such thing).
533 * This is similar to how pattern is handled below.
546 if(patLen==0 || (patLen==defaultPatLen && !u_strncmp(pattern, defaultPattern, patLen))) {
547 pattern=defaultPattern;
552 } else { /* non-default pattern */
553 UChar *p0=u_strstr(pattern, sub0);
554 UChar *p1=u_strstr(pattern, sub1);
559 sub0Pos=p0-pattern;
560 sub1Pos=p1-pattern;
561 if (sub1Pos < sub0Pos) { /* a very odd pattern */
565 if (u_strchr(pattern, 0xFF08) != NULL) {
582 int32_t patPos=0; /* position in the pattern, used for non-substitution portions */
589 /* prefix of pattern, extremely likely to be empty */
593 *p++ = pattern[patPos++];
722 /* append internal portion of pattern, the first time,
723 or last portion of pattern the second time */
730 *p++=pattern[patPos++];
749 /* would have fit, but didn't because of pattern prefix. */