Home
last modified time | relevance | path

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

12345678910>>...14

/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/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowPatterns.java5 import java.util.regex.Pattern;
43 public static final Pattern TOP_LEVEL_DOMAIN =
44 Pattern.compile(TOP_LEVEL_DOMAIN_STR);
78 public static final Pattern WEB_URL = Pattern.compile(
96 public static final Pattern IP_ADDRESS
97 = Pattern.compile(
103 public static final Pattern DOMAIN_NAME
104 = Pattern.compile(
109 public static final Pattern EMAIL_ADDRESS
110 = 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/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()
DSingleConversionRule.java28 import java.util.regex.Pattern;
39 final private Pattern pattern;
43 public SingleConversionRule(Pattern pattern, String replacementText) { in SingleConversionRule()
47 public SingleConversionRule(Pattern pattern, String replacementText, String additionalLine) { in SingleConversionRule()
58 public Pattern getPattern() { in getPattern()
/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/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/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/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 …]
DRegexCache.java21 import java.util.regex.Pattern;
29 private LRUCache<String, Pattern> cache;
32 cache = new LRUCache<String, Pattern>(size); in RegexCache()
35 public Pattern getPatternForRegex(String regex) { in getPatternForRegex()
36 Pattern pattern = cache.get(regex); in getPatternForRegex()
38 pattern = Pattern.compile(regex); in getPatternForRegex()
/external/jetty/src/java/org/eclipse/jetty/util/
DPatternMatcher.java24 import java.util.regex.Pattern;
58 public void match (Pattern pattern, URI[] uris, boolean isNullInclusive) in match()
65 List<Pattern> subPatterns = new ArrayList<Pattern>(); in match()
68 subPatterns.add(Pattern.compile(patterns[i])); in match()
80 for (Pattern p : subPatterns) in match()
89 public void matchPatterns (Pattern pattern, URI[] uris, boolean isNullInclusive) in matchPatterns()
/external/vogar/src/vogar/
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");
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()
DClassFileIndex.java38 import java.util.regex.Pattern;
61 private static final List<Pattern> JAR_PATTERNS = new ArrayList<Pattern>();
64 JAR_PATTERNS.add(Pattern.compile(patternString)); in Pattern.compile()
67 private static final List<Pattern> FAILURE_PATTERNS = new ArrayList<Pattern>();
71 FAILURE_PATTERNS.add(Pattern.compile(patternString, Pattern.DOTALL)); in Pattern.compile()
92 for (Pattern pattern : FAILURE_PATTERNS) { in suggestClasspaths()
188 for (Pattern pattern : JAR_PATTERNS) {
/external/clang/test/SemaCXX/
Dcrash-lambda-12645424.cpp26 template< class Pattern> struct F {
27 typedef Pattern filtered_pattern;
31 template<class, class Pattern> struct get_case {
32 F<Pattern> type;
35 template<class Pattern> struct rvalue_builder {
36 …template<typename Expr> typename get_case<Expr, Pattern>::type operator>>(Expr ); // expected-note…
/external/llvm/utils/TableGen/
DDAGISelMatcherGen.cpp50 const PatternToMatch &Pattern; member in __anon932818540111::MatcherGen
154 : Pattern(pattern), CGP(cgp), NextRecordedOperandNo(0), in MatcherGen()
168 PatWithNoTypes = Pattern.getSrcPattern()->clone(); in MatcherGen()
214 if (N == Pattern.getSrcPattern()) { in EmitLeafMatchCode()
329 if (N == Pattern.getSrcPattern()) in EmitOperatorMatchCode()
391 const TreePatternNode *Root = Pattern.getSrcPattern(); in EmitOperatorMatchCode()
420 N != Pattern.getSrcPattern()) { in EmitOperatorMatchCode()
506 Pattern.getSrcPattern()->getComplexPatternInfo(CGP)) { in EmitMatcherCode()
517 EmitMatchCode(Pattern.getSrcPattern(), PatWithNoTypes); in EmitMatcherCode()
521 if (!Pattern.getPredicateCheck().empty()) in EmitMatcherCode()
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/
DStructuralWhitespaceStripper.java44 import java.util.regex.Pattern;
105 private static final Pattern INLINE_WHITESPACE = Pattern.compile(IWS);
110 private static final Pattern STARTS_WITH_NEWLINE = Pattern.compile("^" + IWS + "\\n");
115 private static final Pattern ENDS_WITH_NEWLINE = Pattern.compile("\\n" + IWS + "$");
121 private static final Pattern LEADING_WHITESPACE_AND_NEWLINE =
122 Pattern.compile("^" + IWS + "\\n(.*)$", Pattern.DOTALL);
129 private static final Pattern TRAILING_WHITESPACE =
130 Pattern.compile("^(.*?)" + IWS + "$", Pattern.DOTALL);
/external/skia/src/core/
DSkRecordOpts.cpp37 typename Pass::Pattern pattern; in apply()
52 Pattern; typedef
54 bool onMatch(SkRecord* record, Pattern* pattern, unsigned begin, unsigned end) { in onMatch()
128 Pattern; typedef
130 bool onMatch(SkRecord* record, Pattern* pattern, unsigned begin, unsigned end) { in onMatch()
149 typedef Pattern3<Is<SaveLayer>, IsDraw, Is<Restore> > Pattern; typedef
151 bool onMatch(SkRecord* record, Pattern* pattern, unsigned begin, unsigned end) { in onMatch()
196 Is<Restore>, Is<Restore>, Is<Restore> > Pattern; typedef
198 bool onMatch(SkRecord* record, Pattern* pattern, unsigned begin, unsigned end) { in onMatch()
/external/llvm/lib/IR/
DDiagnosticInfo.cpp40 std::shared_ptr<Regex> Pattern; member
45 Pattern = std::make_shared<Regex>(Val); in operator =()
47 if (!Pattern->isValid(RegexError)) in operator =()
158 return PassRemarksOptLoc.Pattern && in isEnabled()
159 PassRemarksOptLoc.Pattern->match(getPassName()); in isEnabled()
163 return PassRemarksMissedOptLoc.Pattern && in isEnabled()
164 PassRemarksMissedOptLoc.Pattern->match(getPassName()); in isEnabled()
168 return PassRemarksAnalysisOptLoc.Pattern && in isEnabled()
169 PassRemarksAnalysisOptLoc.Pattern->match(getPassName()); in isEnabled()
/external/markdown/markdown/
Dinlinepatterns.py116 class Pattern: class
156 BasePattern = Pattern # for backward compatibility
158 class SimpleTextPattern (Pattern):
166 class SimpleTagPattern (Pattern):
173 Pattern.__init__(self, pattern)
188 class BacktickPattern (Pattern):
191 Pattern.__init__(self, pattern)
214 class HtmlPattern (Pattern):
223 class LinkPattern (Pattern):
337 class AutolinkPattern (Pattern):
[all …]
/external/conscrypt/src/main/java/org/conscrypt/
DAddressUtils.java19 import java.util.regex.Pattern;
31 private static Pattern ipPattern;
61 Pattern ipPattern = AddressUtils.ipPattern; in isLiteralIpAddress()
63 AddressUtils.ipPattern = ipPattern = Pattern.compile(IP_PATTERN); in isLiteralIpAddress()
/external/doclava/src/com/google/doclava/
DAttrTagInfo.java21 import java.util.regex.Pattern;
34 private static final Pattern TEXT = Pattern.compile("(\\S+)\\s*(.*)", Pattern.DOTALL);
35 private static final Pattern NAME_TEXT = Pattern.compile("(\\S+)(.*)", Pattern.DOTALL);

12345678910>>...14