Home | History | Annotate | Download | only in common

Lines Matching refs:pattern

291 static const char _kPattern[]         = "pattern";
458 * things if they futz with the pattern data. But since we don't give them a way to
459 * specify a pattern for arbitrary combinations of components, there's not much use in
485 const UChar *pattern;
518 pattern=ures_getStringByKeyWithFallback(dspbundle, _kPattern, &patLen, &status);
528 /* #10244: Even though separator is now a pattern, it is awkward to handle it as such
530 * and to handle it as a pattern would entail having separate storage for the
534 * that is before {0} or after {1} (no existing separator pattern has any such thing).
535 * This is similar to how pattern is handled below.
548 if(patLen==0 || (patLen==defaultPatLen && !u_strncmp(pattern, defaultPattern, patLen))) {
549 pattern=defaultPattern;
554 } else { /* non-default pattern */
555 UChar *p0=u_strstr(pattern, sub0);
556 UChar *p1=u_strstr(pattern, sub1);
561 sub0Pos = static_cast<int32_t>(p0-pattern);
562 sub1Pos = static_cast<int32_t>(p1-pattern);
563 if (sub1Pos < sub0Pos) { /* a very odd pattern */
567 if (u_strchr(pattern, 0xFF08) != NULL) {
584 int32_t patPos=0; /* position in the pattern, used for non-substitution portions */
591 /* prefix of pattern, extremely likely to be empty */
595 *p++ = pattern[patPos++];
724 /* append internal portion of pattern, the first time,
725 or last portion of pattern the second time */
732 *p++=pattern[patPos++];
751 /* would have fit, but didn't because of pattern prefix. */