Home
last modified time | relevance | path

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

12345678910>>...36

/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/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/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DDiagnosticHandler.cpp26 std::shared_ptr<Regex> Pattern; member
31 Pattern = std::make_shared<Regex>(Val); in operator =()
33 if (!Pattern->isValid(RegexError)) in operator =()
76 return (PassRemarksAnalysisOptLoc.Pattern && in isAnalysisRemarkEnabled()
77 PassRemarksAnalysisOptLoc.Pattern->match(PassName)); in isAnalysisRemarkEnabled()
80 return (PassRemarksMissedOptLoc.Pattern && in isMissedOptRemarkEnabled()
81 PassRemarksMissedOptLoc.Pattern->match(PassName)); in isMissedOptRemarkEnabled()
84 return (PassRemarksPassedOptLoc.Pattern && in isPassedOptRemarkEnabled()
85 PassRemarksPassedOptLoc.Pattern->match(PassName)); in isPassedOptRemarkEnabled()
89 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;
78 Pattern tempPrematch; in Rule()
84 … tempPrematch = Pattern.compile("(?<=" + pre + ")", Pattern.COMMENTS + Pattern.DOTALL); in Rule()
87 tempPrematch = Pattern.compile(pre + "$", Pattern.COMMENTS + Pattern.DOTALL); in Rule()
92 postmatch = Pattern.compile(post, Pattern.COMMENTS + Pattern.DOTALL); in Rule()
/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/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/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/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 …]
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberMatcher.java31 import java.util.regex.Pattern;
59 private static final Pattern PATTERN;
67 private static final Pattern PUB_PAGES = Pattern.compile("\\d{1,5}-+\\d{1,5}\\s{0,4}\\(\\d{1,4}");
73 private static final Pattern SLASH_SEPARATED_DATES =
74 Pattern.compile("(?:(?:[0-3]?\\d/[01]?\\d)|(?:[01]?\\d/[0-3]?\\d))/(?:[12]\\d)?\\d{2}");
80 private static final Pattern TIME_STAMPS =
81 Pattern.compile("[12]\\d{3}[-/]?[01]\\d[-/]?[0-3]\\d +[0-2]\\d$");
82 private static final Pattern TIME_STAMPS_SUFFIX = Pattern.compile(":[0-5]\\d");
89 private static final Pattern MATCHING_BRACKETS;
101 private static final Pattern[] INNER_MATCHES = {
[all …]
/external/cldr/tools/java/org/unicode/cldr/json/
DLdmlConvertRules.java5 import java.util.regex.Pattern;
305 public static final Pattern ARRAY_ITEM_PATTERN = PatternCache.get(
329 public static final Pattern NO_NUMBERING_SYSTEM_PATTERN = Pattern
331 public static final Pattern NUMBERING_SYSTEM_PATTERN = Pattern
344 public static final Pattern ROOT_IDENTITY_PATTERN = Pattern
351 public Pattern pattern;
/external/caliper/caliper/src/main/java/com/google/caliper/bridge/
DLogMessageParser.java26 import java.util.regex.Pattern;
36 private static final Pattern GC_PATTERN =
37 Pattern.compile(".*\\[(?:(Full) )?GC.*(\\d+\\.\\d+) secs\\]");
38 private static final Pattern JIT_PATTERN =
39 Pattern.compile(".*::.*( \\(((\\d+ bytes)|(static))\\))?");
40 private static final Pattern VM_OPTION_PATTERN =
41 Pattern.compile("\\s*(\\w+)\\s+(\\w+)\\s+:?=\\s+([^\\s]*)\\s+\\{([^}]*)\\}\\s*");
/external/smali/baksmali/src/test/java/org/jf/baksmali/
DBaksmaliTestUtils.java48 import java.util.regex.Pattern;
136 Pattern pattern = Pattern.compile("((^[ \t]+)|([ \t]+$))", Pattern.MULTILINE); in normalizeWhitespace()
141 Pattern pattern2 = Pattern.compile("^\r?\n?", Pattern.MULTILINE); in normalizeWhitespace()
146 Pattern pattern3 = Pattern.compile("\r?\n?$"); in normalizeWhitespace()
157 Pattern pattern = Pattern.compile("#(.*)"); in stripComments()
/external/vogar/src/vogar/
DExpectation.java22 import java.util.regex.Pattern;
41 public static final Pattern MATCH_ALL_PATTERN
42 = Pattern.compile(".*", Pattern.MULTILINE | Pattern.DOTALL);
55 private final Pattern pattern;
70 Pattern pattern, in Expectation()
DDotJavaFile.java22 import java.util.regex.Pattern;
29 private static final Pattern PACKAGE_PATTERN = Pattern.compile(
31 private static final Pattern TYPE_DECLARATION_PATTERN = Pattern.compile(
33 private static final Pattern AT_TEST_PATTERN = Pattern.compile("\\W@test\\W");

12345678910>>...36