Lines Matching refs:flags
565 int32_t flags = 0;
582 pat2 = RegexPattern::compile(re, flags, pe, status);
704 int32_t flags=0;
709 RegexPattern *pat = RegexPattern::compile(re, flags, pe, status);
763 int32_t flags=0;
768 RegexPattern *pat = RegexPattern::compile(re, flags, pe, status);
817 int32_t flags=0;
822 RegexPattern *pat = RegexPattern::compile(re, flags, pe, status);
1125 int32_t flags=0;
1130 RegexPattern *pat = RegexPattern::compile(re, flags, pe, status);
1203 RegexPattern *pat2 = RegexPattern::compile(re2, flags, pe, status);
1339 // Compile with no flags.
1343 REGEX_ASSERT(pat1a->flags() == 0);
1345 // Compile with different flags should be not equal
1350 REGEX_ASSERT(pat1b->flags() == UREGEX_CASE_INSENSITIVE);
1351 REGEX_ASSERT(pat1a->flags() == 0);
1591 int32_t flags = 0;
1609 pat2 = RegexPattern::compile(&re, flags, pe, status);
1737 int32_t flags=0;
1743 RegexPattern *pat = RegexPattern::compile(&re, flags, pe, status);
1847 int32_t flags=0;
1853 RegexPattern *pat = RegexPattern::compile(&re, flags, pe, status);
1906 int32_t flags=0;
1912 RegexPattern *pat = RegexPattern::compile(&re, flags, pe, status);
2132 int32_t flags=0;
2138 RegexPattern *pat = RegexPattern::compile(&re, flags, pe, status);
2284 RegexPattern *pat2 = RegexPattern::compile(&re, flags, pe, status);
2496 // Compile with no flags.
2500 REGEX_ASSERT(pat1a->flags() == 0);
2502 // Compile with different flags should be not equal
2507 REGEX_ASSERT(pat1b->flags() == UREGEX_CASE_INSENSITIVE);
2508 REGEX_ASSERT(pat1a->flags() == 0);
2818 UnicodeString testFlags; // the flags for a test.
2844 // Separate out the three main fields - pattern, flags, target.
2867 // Pull out the flags from the test file line.
2915 // regex_find(pattern, flags, inputString, lineNumber)
2919 // pattern and inputString fields, and the allowed flags.
2941 const UnicodeString &flags,
2974 if (flags.indexOf((UChar)0x69) >= 0) { // 'i' flag
2977 if (flags.indexOf((UChar)0x78) >= 0) { // 'x' flag
2980 if (flags.indexOf((UChar)0x73) >= 0) { // 's' flag
2983 if (flags.indexOf((UChar)0x6d) >= 0) { // 'm' flag
2987 if (flags.indexOf((UChar)0x65) >= 0) { // 'e' flag
2990 if (flags.indexOf((UChar)0x44) >= 0) { // 'D' flag
3000 if (flags.indexOf((UChar)0x76) >= 0 /*'v'*/ && status == U_UNSUPPORTED_ERROR) {
3004 if (flags.indexOf((UChar)0x45) >= 0) { // flags contain 'E'
3006 if (flags.indexOf((UChar)0x64) >= 0) { // flags contain 'd'
3033 if (flags.indexOf((UChar)0x76) >= 0 /*'v'*/ && status == U_UNSUPPORTED_ERROR) {
3037 if (flags.indexOf((UChar)0x45) >= 0) { // flags contain 'E'
3039 if (flags.indexOf((UChar)0x64) >= 0) { // flags contain 'd'
3057 if (flags.indexOf((UChar)0x64) >= 0) { // 'd' flag
3061 if (flags.indexOf((UChar)0x45) >= 0) { // 'E' flag
3072 if (flags.indexOf((UChar)(0x30 + i)) >= 0) { // digit flag
3082 if (flags.indexOf((UChar)0x4d) >= 0) {
3085 if (flags.indexOf((UChar)0x4c) >= 0) {
3129 // Configure the matcher according to the flags specified with this test.
3133 if (flags.indexOf((UChar)0x74) >= 0) { // 't' trace flag
3164 if (flags.indexOf((UChar)0x61) >= 0) { // 'a' anchoring bounds flag
3170 if (flags.indexOf((UChar)0x62) >= 0) { // 'b' transparent bounds flag
3222 if (flags.indexOf((UChar)0x47 /*G*/) >= 0) {
3275 if ((flags.indexOf((UChar)0x59) >= 0) && // 'Y' flag: RequireEnd() == false
3279 } else if (UTF8Matcher != NULL && (flags.indexOf((UChar)0x59) >= 0) && // 'Y' flag: RequireEnd() == false
3285 if ((flags.indexOf((UChar)0x79) >= 0) && // 'y' flag: RequireEnd() == true
3289 } else if (UTF8Matcher != NULL && (flags.indexOf((UChar)0x79) >= 0) && // 'Y' flag: RequireEnd() == false
3295 if ((flags.indexOf((UChar)0x5A) >= 0) && // 'Z' flag: hitEnd() == false
3299 } else if (UTF8Matcher != NULL && (flags.indexOf((UChar)0x5A) >= 0) && // 'Z' flag: hitEnd() == false
3305 if ((flags.indexOf((UChar)0x7A) >= 0) && // 'z' flag: hitEnd() == true
3309 } else if (UTF8Matcher != NULL && (flags.indexOf((UChar)0x7A) >= 0) && // 'z' flag: hitEnd() == true
3319 +flags+(UnicodeString)" \""+inputString+(UnicodeString)"\"");
3362 // Attempt to use non-default flags
3366 int32_t flags = UREGEX_CANON_EQ |
3369 RegexPattern *pat1= RegexPattern::compile(".*", flags, pe, status);
3599 // Test patterns with flags look like 'pattern'i
3600 // Test patterns without flags are not quoted: pattern
3601 // Coming out, capture group 2 is the pattern, capture group 3 is the flags.
3654 // split off the flags, remove the extra quotes.
3661 int32_t flags = 0;
3668 flags |= UREGEX_CASE_INSENSITIVE;
3671 flags |= UREGEX_MULTILINE;
3674 flags |= UREGEX_COMMENTS;
3681 RegexPattern *testPat = RegexPattern::compile(pattern, flags, pe, status);
3968 // Test patterns with flags look like 'pattern'i
3969 // Test patterns without flags are not quoted: pattern
3970 // Coming out, capture group 2 is the pattern, capture group 3 is the flags.
4023 // split off the flags, remove the extra quotes.
4030 int32_t flags = 0;
4037 flags |= UREGEX_CASE_INSENSITIVE;
4040 flags |= UREGEX_MULTILINE;
4043 flags |= UREGEX_COMMENTS;
4063 RegexPattern *testPat = RegexPattern::compile(&patternText, flags, pe, status);
4310 uint32_t flags = 0;
4313 RegexMatcher matcher(pattern, s, flags, status);