Home
last modified time | relevance | path

Searched refs:Pattern (Results 1 – 25 of 1174) sorted by relevance

12345678910>>...47

/external/icu/android_icu4j/testing/src/com/android/icu/test/util/regex/
DMatcherNativeTest.java50 private static class Pattern { class in MatcherNativeTest
54 private static Pattern compile(String pattern) { in compile()
55 return new Pattern(pattern, 0); in compile()
58 private Pattern(String p, int flags) { in Pattern() method in MatcherNativeTest.Pattern
64 Pattern p = compile(pattern); in matches()
69 public static Pattern compile(String pattern, int flags) { in compile()
70 return new Pattern(pattern, flags); in compile()
91 private final Pattern pattern;
96 private Matcher(Pattern pattern, String input) { in Matcher()
135 public Pattern pattern() { in pattern()
[all …]
/external/owasp/sanitizer/src/main/org/owasp/html/examples/
DEbayPolicyExample.java33 import java.util.regex.Pattern;
65 private static final Pattern COLOR_NAME = Pattern.compile(
70 private static final Pattern COLOR_CODE = Pattern.compile(
73 private static final Pattern NUMBER_OR_PERCENT = Pattern.compile(
75 private static final Pattern PARAGRAPH = Pattern.compile(
77 private static final Pattern HTML_ID = Pattern.compile(
80 private static final Pattern HTML_TITLE = Pattern.compile(
82 private static final Pattern HTML_CLASS = Pattern.compile(
85 private static final Pattern ONSITE_URL = Pattern.compile(
87 private static final Pattern OFFSITE_URL = Pattern.compile(
[all …]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/resolver/
DResolver.java22 import java.util.regex.Pattern;
31 public static final Pattern BOOL = Pattern
38 public static final Pattern FLOAT = Pattern
40 public static final Pattern INT = Pattern
42 public static final Pattern MERGE = Pattern.compile("^(?:<<)$");
43 public static final Pattern NULL = Pattern.compile("^(?:~|null|Null|NULL| )$");
44 public static final Pattern EMPTY = Pattern.compile("^$");
45 public static final Pattern TIMESTAMP = Pattern
47 public static final Pattern VALUE = Pattern.compile("^(?:=)$");
48 public static final Pattern YAML = Pattern.compile("^(?:!|&|\\*)$");
[all …]
/external/llvm-project/mlir/test/IR/
Dtest-matchers.mlir15 // CHECK: Pattern add(*) matched 3 times
16 // CHECK: Pattern mul(*) matched 4 times
17 // CHECK: Pattern add(add(*), *) matched 0 times
18 // CHECK: Pattern add(*, add(*)) matched 0 times
19 // CHECK: Pattern mul(add(*), *) matched 0 times
20 // CHECK: Pattern mul(*, add(*)) matched 2 times
21 // CHECK: Pattern mul(mul(*), *) matched 3 times
22 // CHECK: Pattern mul(mul(*), mul(*)) matched 2 times
23 // CHECK: Pattern mul(mul(mul(*), mul(*)), mul(mul(*), mul(*))) matched 1 times
24 // CHECK: Pattern mul(mul(mul(mul(*), add(*)), mul(*)), mul(mul(*, add(*)), mul(*, add(*)))…
[all …]
/external/owasp/sanitizer/src/tests/org/owasp/html/
DCssFuzzerTest.java34 import java.util.regex.Pattern;
146 Pattern filter = TOKEN_TYPE_FILTERS.get(type); in testUnderStress()
174 private static final EnumMap<CssTokens.TokenType, Pattern> TOKEN_TYPE_FILTERS
182 CssTokens.TokenType.AT, Pattern.compile("@" + IDENT)); in TOKEN_TYPE_FILTERS.put()
184 CssTokens.TokenType.COLON, Pattern.compile(":")); in TOKEN_TYPE_FILTERS.put()
186 CssTokens.TokenType.COLUMN, Pattern.compile("\\|\\|")); in TOKEN_TYPE_FILTERS.put()
188 CssTokens.TokenType.COMMA, Pattern.compile(",")); in TOKEN_TYPE_FILTERS.put()
191 Pattern.compile("[^\\w\u0000- \u0080-\uffff\\-]")); in TOKEN_TYPE_FILTERS.put()
193 CssTokens.TokenType.DIMENSION, Pattern.compile(NUMBER + "[a-z]+")); in TOKEN_TYPE_FILTERS.put()
195 CssTokens.TokenType.DOT_IDENT, Pattern.compile("\\." + IDENT)); in TOKEN_TYPE_FILTERS.put()
[all …]
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/playlist/
DHlsPlaylistParser.java55 import java.util.regex.Pattern;
112 private static final Pattern REGEX_AVERAGE_BANDWIDTH =
113 Pattern.compile("AVERAGE-BANDWIDTH=(\\d+)\\b");
114 private static final Pattern REGEX_VIDEO = Pattern.compile("VIDEO=\"(.+?)\"");
115 private static final Pattern REGEX_AUDIO = Pattern.compile("AUDIO=\"(.+?)\"");
116 private static final Pattern REGEX_SUBTITLES = Pattern.compile("SUBTITLES=\"(.+?)\"");
117 private static final Pattern REGEX_CLOSED_CAPTIONS = Pattern.compile("CLOSED-CAPTIONS=\"(.+?)\"");
118 private static final Pattern REGEX_BANDWIDTH = Pattern.compile("[^-]BANDWIDTH=(\\d+)\\b");
119 private static final Pattern REGEX_CHANNELS = Pattern.compile("CHANNELS=\"(.+?)\"");
120 private static final Pattern REGEX_CODECS = Pattern.compile("CODECS=\"(.+?)\"");
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DSimpleLocaleParser.java11 import java.util.regex.Pattern;
25 private static final Pattern rootPattern = Pattern.compile(
52Pattern.COMMENTS | Pattern.CASE_INSENSITIVE); // TODO change above to be lowercase, since source is
55 private static final Pattern variantSeparatorPattern = PatternCache.get("[-_]");
56 private static final Pattern extensionPattern = Pattern.compile(
57 "([a-z]) [-_] ( [a-z 0-9]{2,8} (?:[-_] [a-z 0-9]{2,8})* )", Pattern.COMMENTS);
58 private static final Pattern privateUsePattern = Pattern.compile(
59 "(x) [-_] ( [a-z 0-9]{1,8} (?:[-_] [a-z 0-9]{1,8})* )", Pattern.COMMENTS);
60 …private static final Pattern keywordPattern = Pattern.compile("([a-z 0-9]+) \\= ([a-z 0-9]+)", Pat…
130 private void addExtensions(String item, Pattern pattern) { in addExtensions()
/external/rust/crates/glob/src/
Dlib.rs89 dir_patterns: Vec<Pattern>,
195 if let Err(err) = Pattern::new(pattern) { in glob_with()
237 dir_patterns.push(Pattern::new(component)?); in glob_with()
241 dir_patterns.push(Pattern { in glob_with()
484 pub struct Pattern { struct
491 impl fmt::Display for Pattern { argument
497 impl FromStr for Pattern { implementation
533 impl Pattern { impl
804 patterns: &[Pattern], in fill_todo() argument
810 fn pattern_as_str(pattern: &Pattern) -> Option<String> { in fill_todo()
[all …]
/external/llvm-project/llvm/lib/IR/
DDiagnosticHandler.cpp25 std::shared_ptr<Regex> Pattern; member
30 Pattern = std::make_shared<Regex>(Val); in operator =()
32 if (!Pattern->isValid(RegexError)) in operator =()
75 return (PassRemarksAnalysisOptLoc.Pattern && in isAnalysisRemarkEnabled()
76 PassRemarksAnalysisOptLoc.Pattern->match(PassName)); in isAnalysisRemarkEnabled()
79 return (PassRemarksMissedOptLoc.Pattern && in isMissedOptRemarkEnabled()
80 PassRemarksMissedOptLoc.Pattern->match(PassName)); in isMissedOptRemarkEnabled()
83 return (PassRemarksPassedOptLoc.Pattern && in isPassedOptRemarkEnabled()
84 PassRemarksPassedOptLoc.Pattern->match(PassName)); in isPassedOptRemarkEnabled()
88 return (PassRemarksPassedOptLoc.Pattern || PassRemarksMissedOptLoc.Pattern || in isAnyRemarkEnabled()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DDiagnosticHandler.cpp25 std::shared_ptr<Regex> Pattern; member
30 Pattern = std::make_shared<Regex>(Val); in operator =()
32 if (!Pattern->isValid(RegexError)) in operator =()
75 return (PassRemarksAnalysisOptLoc.Pattern && in isAnalysisRemarkEnabled()
76 PassRemarksAnalysisOptLoc.Pattern->match(PassName)); in isAnalysisRemarkEnabled()
79 return (PassRemarksMissedOptLoc.Pattern && in isMissedOptRemarkEnabled()
80 PassRemarksMissedOptLoc.Pattern->match(PassName)); in isMissedOptRemarkEnabled()
83 return (PassRemarksPassedOptLoc.Pattern && in isPassedOptRemarkEnabled()
84 PassRemarksPassedOptLoc.Pattern->match(PassName)); in isPassedOptRemarkEnabled()
88 return (PassRemarksPassedOptLoc.Pattern || PassRemarksMissedOptLoc.Pattern || in isAnyRemarkEnabled()
[all …]
/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/line/
DLog4jRuleSet.java29 import java.util.regex.Pattern;
37 …SingleConversionRule crImport0 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.l… in Log4jRuleSet()
40 …SingleConversionRule catImport = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.l… in Log4jRuleSet()
43 …SingleConversionRule crImport1 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.l… in Log4jRuleSet()
45 …SingleConversionRule crImport2 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.l… in Log4jRuleSet()
48 …SingleConversionRule crImportMDC = new SingleConversionRule(Pattern.compile("import\\s*+org.apache… in Log4jRuleSet()
50 …SingleConversionRule crFactory0 = new SingleConversionRule(Pattern.compile("Logger.getLogger\\("),… in Log4jRuleSet()
52 …SingleConversionRule crFactory1 = new SingleConversionRule(Pattern.compile("\\sCategory.getInstanc… in Log4jRuleSet()
54 …SingleConversionRule crFactory2 = new SingleConversionRule(Pattern.compile("LogManager.getLogger\\… in Log4jRuleSet()
56 …SingleConversionRule variable0 = new SingleConversionRule(Pattern.compile("(\\sCategory\\b)"), " L… in Log4jRuleSet()
[all …]
DJULRuleSet.java29 import java.util.regex.Pattern;
43 …SingleConversionRule crImport0 = new SingleConversionRule(Pattern.compile("import\\s*+java.util.lo… in JULRuleSet()
46 …SingleConversionRule crImport1 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.l… in JULRuleSet()
48 …SingleConversionRule crImport2 = new SingleConversionRule(Pattern.compile("import\\s*+java.util.lo… in JULRuleSet()
51 …SingleConversionRule crFactory0 = new SingleConversionRule(Pattern.compile("Logger.getLogger\\("),… in JULRuleSet()
53 …SingleConversionRule crFactory1 = new SingleConversionRule(Pattern.compile("LogManager.getLogger\\… in JULRuleSet()
55 …SingleConversionRule crWarning = new SingleConversionRule(Pattern.compile("\\.warning\\("), ".warn… in JULRuleSet()
56 …SingleConversionRule crSevere = new SingleConversionRule(Pattern.compile("\\.severe\\("), ".error(… in JULRuleSet()
DJCLRuleSet.java29 import java.util.regex.Pattern;
43 …SingleConversionRule cr0 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.commons… in JCLRuleSet()
47 …SingleConversionRule cr1 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.commons… in JCLRuleSet()
49 … SingleConversionRule cr2 = new SingleConversionRule(Pattern.compile("(\\sLog\\b)"), " Logger"); in JCLRuleSet()
51 SingleConversionRule cr3 = new SingleConversionRule(Pattern.compile("(^Log\\b)"), "Logger"); in JCLRuleSet()
53 …SingleConversionRule cr4 = new SingleConversionRule(Pattern.compile("LogFactory.getFactory\\(\\).g… in JCLRuleSet()
55 …SingleConversionRule cr5 = new SingleConversionRule(Pattern.compile("LogFactory.getLog\\("), "Logg… in JCLRuleSet()
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/
DAternativeApproach.java28 import java.util.regex.Pattern;
42 MultiGroupConversionRule cr2 = new MultiGroupConversionRule(Pattern.compile("(.*)(Log)")); in test()
46 Pattern pat = cr2.getPattern(); in test()
62 Pattern pat = Pattern.compile("(Log)"); in test2()
90 Pattern pat = Pattern.compile("LogFactory.getFactory\\(\\).getInstance\\("); in test3()
107 Pattern pat = Pattern.compile("(\\sLog\\b)"); in test4()
130 Pattern pat2 = Pattern.compile("^Log\\b"); in test4()
141 Pattern pat = Pattern.compile("(\\sLog\\b)"); in test5()
148 Pattern pat2 = Pattern.compile("LogFactory.getFactory\\(\\).getInstance\\("); in test5()
/external/cldr/tools/java/org/unicode/cldr/draft/
DRule.java6 import java.util.regex.Pattern;
9 private final Pattern prematch;
11 private final Pattern postmatch;
84 Pattern tempPrematch; in Rule()
90 … tempPrematch = Pattern.compile("(?<=" + pre + ")", Pattern.COMMENTS + Pattern.DOTALL); in Rule()
93 tempPrematch = Pattern.compile(pre + "$", Pattern.COMMENTS + Pattern.DOTALL); in Rule()
98 postmatch = Pattern.compile(post, Pattern.COMMENTS + Pattern.DOTALL); in Rule()
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/javadoc/
DJavadocLexer.java49 import static java.util.regex.Pattern.CASE_INSENSITIVE;
50 import static java.util.regex.Pattern.DOTALL;
51 import static java.util.regex.Pattern.compile;
61 import java.util.regex.Pattern;
83 private static final Pattern NON_UNIX_LINE_ENDING = Pattern.compile("\r\n?");
502 private static final Pattern NEWLINE_PATTERN = compile("^[ \t]*\n[ \t]*[*]?[ \t]?");
508 private static final Pattern FOOTER_TAG_PATTERN = compile("^@(param\\s+<\\w+>|[a-z]\\w*)");
509 private static final Pattern MOE_BEGIN_STRIP_COMMENT_PATTERN =
511 private static final Pattern MOE_END_STRIP_COMMENT_PATTERN =
513 private static final Pattern HTML_COMMENT_PATTERN = fullCommentPattern();
[all …]
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/object/
DMatchesPatternTest.java7 import java.util.regex.Pattern;
15 Matcher<String> matcher = new MatchesPattern(Pattern.compile(".")); in copesWithNullsAndUnknownTypes()
23 assertThat("a", new MatchesPattern(Pattern.compile("a"))); in matchesExactString()
28 …assertDoesNotMatch("A different string does not match", new MatchesPattern(Pattern.compile("a")), … in doesNotMatchADifferentString()
33 … assertDoesNotMatch("A substring does not match", new MatchesPattern(Pattern.compile("a")), "ab"); in doesNotMatchSubstring()
38 Matcher<?> m = new MatchesPattern(Pattern.compile("a[bc](d|e)")); in hasAReadableDescription()
44 final Matcher<String> matcher = new MatchesPattern(Pattern.compile("a")); in describesAMismatch()
50 Matcher<?> m = MatchesPattern.matchesPattern(Pattern.compile("a[bc](d|e)")); in factoryMethodAllowsCreationWithPattern()
/external/apache-http/src/org/apache/http/conn/util/
DInetAddressUtils.java34 import java.util.regex.Pattern;
49 private static final Pattern IPV4_PATTERN =
50 Pattern.compile(
53 private static final Pattern IPV6_STD_PATTERN =
54 Pattern.compile(
57 private static final Pattern IPV6_HEX_COMPRESSED_PATTERN =
58 Pattern.compile(
/external/jarjar/src/main/com/tonicsystems/jarjar/
DWildcard.java20 import java.util.regex.Pattern;
26 private static Pattern dstar = Pattern.compile("\\*\\*");
27 private static Pattern star = Pattern.compile("\\*");
28 private static Pattern estar = Pattern.compile("\\+\\??\\)\\Z");
29 private static Pattern dollar = Pattern.compile("\\$");
31 private final Pattern pattern;
50 this.pattern = Pattern.compile("\\A" + regex + "\\Z"); in Wildcard()
137 private static String replaceAllLiteral(Pattern pattern, String value, String replace) { in replaceAllLiteral()
/external/cldr/tools/java/org/unicode/cldr/util/
DPatternCache.java5 import java.util.regex.Pattern;
36 private final static Cache<String, Pattern> cache;
63 public static Pattern get(final String patternStr) { in get()
73 return Pattern.compile(patternStr); in get()
75 Pattern result = null; in get()
77 result = cache.get(patternStr, new Callable<Pattern>() { in get()
80 public Pattern call() throws Exception { in get()
81 return Pattern.compile(patternStr); in get()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DQualifiers.java4 import java.util.regex.Pattern;
12 private static final Pattern DIR_QUALIFIER_PATTERN = Pattern.compile("^[^-]+(?:-(.*))?$");
16 private static final Pattern SCREEN_WIDTH_PATTERN = Pattern.compile("^w([0-9]+)dp");
17 private static final Pattern SMALLEST_SCREEN_WIDTH_PATTERN = Pattern.compile("^sw([0-9]+)dp");
18 private static final Pattern VERSION_QUALIFIER_PATTERN = Pattern.compile("(v)([0-9]+)$");
19 private static final Pattern ORIENTATION_QUALIFIER_PATTERN = Pattern.compile("(land|port)");
/external/llvm-project/clang/test/CodeCompletion/
Dobjc-expr.m8 // CHECK-AT: COMPLETION: Pattern : [#NSString *#]"<#string#>"
9 // CHECK-AT: COMPLETION: Pattern : [#id#](<#expression#>)
10 // CHECK-AT: COMPLETION: Pattern : [#NSArray *#][<#objects, ...#>]
11 // CHECK-AT: COMPLETION: Pattern : [#char[]#]encode(<#type-name#>)
12 // CHECK-AT: COMPLETION: Pattern : [#Protocol *#]protocol(<#protocol-name#>)
13 // CHECK-AT: COMPLETION: Pattern : [#SEL#]selector(<#selector#>)
14 // CHECK-AT: COMPLETION: Pattern : [#NSDictionary *#]{<#key#>: <#object, ...#>}
17 // CHECK-CONST-STRINGS: COMPLETION: Pattern : [#const char[]#]encode(<#type-name#>)
/external/clang/test/CodeCompletion/
Dobjc-expr.m8 // CHECK-AT: COMPLETION: Pattern : [#NSString *#]"<#string#>"
9 // CHECK-AT: COMPLETION: Pattern : [#id#](<#expression#>)
10 // CHECK-AT: COMPLETION: Pattern : [#NSArray *#][<#objects, ...#>]
11 // CHECK-AT: COMPLETION: Pattern : [#char[]#]encode(<#type-name#>)
12 // CHECK-AT: COMPLETION: Pattern : [#Protocol *#]protocol(<#protocol-name#>)
13 // CHECK-AT: COMPLETION: Pattern : [#SEL#]selector(<#selector#>)
14 // CHECK-AT: COMPLETION: Pattern : [#NSDictionary *#]{<#key#>: <#object, ...#>}
17 // CHECK-CONST-STRINGS: COMPLETION: Pattern : [#const char[]#]encode(<#type-name#>)
/external/tensorflow/tensorflow/compiler/xla/service/
Dpattern_matcher_gmock.h27 template <typename Pattern>
30 explicit GmockMatcher(Pattern p) : pattern_(std::move(p)) {} in GmockMatcher()
77 Pattern pattern_;
81 template <typename Pattern>
83 pattern_matcher_gmock_detail::GmockMatcher<Pattern>>
84 GmockMatch(Pattern&& p) { in GmockMatch()
86 pattern_matcher_gmock_detail::GmockMatcher<Pattern>( in GmockMatch()
87 std::forward<Pattern>(p))); in GmockMatch()
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DPhoneNumberMatcher.java32 import java.util.regex.Pattern;
60 private static final Pattern PATTERN;
68 private static final Pattern PUB_PAGES = Pattern.compile("\\d{1,5}-+\\d{1,5}\\s{0,4}\\(\\d{1,4}");
74 private static final Pattern SLASH_SEPARATED_DATES =
75 Pattern.compile("(?:(?:[0-3]?\\d/[01]?\\d)|(?:[01]?\\d/[0-3]?\\d))/(?:[12]\\d)?\\d{2}");
81 private static final Pattern TIME_STAMPS =
82 Pattern.compile("[12]\\d{3}[-/]?[01]\\d[-/]?[0-3]\\d +[0-2]\\d$");
83 private static final Pattern TIME_STAMPS_SUFFIX = Pattern.compile(":[0-5]\\d");
90 private static final Pattern MATCHING_BRACKETS;
102 private static final Pattern[] INNER_MATCHES = {
[all …]

12345678910>>...47