/external/owasp/sanitizer/src/main/org/owasp/html/examples/ |
D | EbayPolicyExample.java | 33 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/ |
D | Resolver.java | 22 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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowPatterns.java | 5 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/ |
D | CssFuzzerTest.java | 34 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/ |
D | Log4jRuleSet.java | 29 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 …]
|
D | JULRuleSet.java | 29 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()
|
D | JCLRuleSet.java | 29 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/smali/util/src/main/java/org/jf/util/ |
D | TextUtils.java | 36 import java.util.regex.Pattern; 57 Pattern pattern = Pattern.compile("((^[ \t]+)|([ \t]+$))", Pattern.MULTILINE); in normalizeWhitespace() 62 Pattern pattern2 = Pattern.compile("^\r?\n?", Pattern.MULTILINE); in normalizeWhitespace() 67 Pattern pattern3 = Pattern.compile("\r?\n?$"); in normalizeWhitespace() 78 Pattern pattern = Pattern.compile("#(.*)"); in stripComments()
|
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/ |
D | AternativeApproach.java | 28 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/hamcrest/hamcrest-library/src/test/java/org/hamcrest/object/ |
D | MatchesPatternTest.java | 7 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/ |
D | InetAddressUtils.java | 34 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/ |
D | Wildcard.java | 20 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/ |
D | objc-expr.m | 8 // 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/syslinux/gnu-efi/gnu-efi-3.0/lib/ |
D | str.c | 275 IN CHAR16 *Pattern in MetaMatch() argument 281 p = *Pattern; in MetaMatch() 282 Pattern += 1; in MetaMatch() 292 if (MetaMatch (String, Pattern)) { in MetaMatch() 297 return MetaMatch (String, Pattern); in MetaMatch() 315 while ((p = *Pattern++)) { in MetaMatch() 321 p = *Pattern; // get high range in MetaMatch() 339 p = *Pattern; in MetaMatch() 340 Pattern += 1; in MetaMatch() 363 IN CHAR16 *Pattern in LibStubMetaiMatch() argument [all …]
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberMatcher.java | 31 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 …]
|
D | RegexCache.java | 21 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/caliper/caliper/src/main/java/com/google/caliper/bridge/ |
D | LogMessageParser.java | 26 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/swiftshader/third_party/LLVM/utils/TableGen/ |
D | DAGISelMatcherGen.cpp | 51 const PatternToMatch &Pattern; member in __anon542a269f0111::MatcherGen 145 : Pattern(pattern), CGP(cgp), NextRecordedOperandNo(0), in MatcherGen() 159 PatWithNoTypes = Pattern.getSrcPattern()->clone(); in MatcherGen() 210 if (N == Pattern.getSrcPattern()) { in EmitLeafMatchCode() 291 if (N == Pattern.getSrcPattern()) in EmitOperatorMatchCode() 353 const TreePatternNode *Root = Pattern.getSrcPattern(); in EmitOperatorMatchCode() 382 N != Pattern.getSrcPattern()) { in EmitOperatorMatchCode() 464 Pattern.getSrcPattern()->getComplexPatternInfo(CGP)) { in EmitMatcherCode() 475 EmitMatchCode(Pattern.getSrcPattern(), PatWithNoTypes); in EmitMatcherCode() 479 if (!Pattern.getPredicateCheck().empty()) in EmitMatcherCode() [all …]
|
/external/vogar/src/vogar/ |
D | DotJavaFile.java | 22 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");
|
D | Expectation.java | 22 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()
|
/external/clang/test/SemaCXX/ |
D | crash-lambda-12645424.cpp | 26 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/ |
D | DAGISelMatcherGen.cpp | 49 const PatternToMatch &Pattern; member in __anonbed01c730111::MatcherGen 149 : Pattern(pattern), CGP(cgp), NextRecordedOperandNo(0), in MatcherGen() 163 PatWithNoTypes = Pattern.getSrcPattern()->clone(); in MatcherGen() 209 if (N == Pattern.getSrcPattern()) { in EmitLeafMatchCode() 326 if (N == Pattern.getSrcPattern()) in EmitOperatorMatchCode() 388 const TreePatternNode *Root = Pattern.getSrcPattern(); in EmitOperatorMatchCode() 417 N != Pattern.getSrcPattern()) { in EmitOperatorMatchCode() 501 Pattern.getSrcPattern()->getComplexPatternInfo(CGP)) { in EmitMatcherCode() 512 EmitMatchCode(Pattern.getSrcPattern(), PatWithNoTypes); in EmitMatcherCode() 516 if (!Pattern.getPredicateCheck().empty()) in EmitMatcherCode() [all …]
|
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/ |
D | StructuralWhitespaceStripper.java | 44 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/testng/src/main/java/org/testng/reporters/ |
D | JUnitXMLReporter.java | 22 import java.util.regex.Pattern; 31 private static final Pattern ENTITY= Pattern.compile("&[a-zA-Z]+;.*"); 32 private static final Pattern LESS= Pattern.compile("<"); 33 private static final Pattern GREATER= Pattern.compile(">"); 34 private static final Pattern SINGLE_QUOTE = Pattern.compile("'"); 35 private static final Pattern QUOTE = Pattern.compile("\""); 36 private static final Map<String, Pattern> ATTR_ESCAPES= Maps.newHashMap(); 252 for(Map.Entry<String, Pattern> e: ATTR_ESCAPES.entrySet()) { in encodeAttr() 259 private String replaceAmpersand(String str, Pattern pattern) { in replaceAmpersand()
|
/external/stressapptest/src/ |
D | pattern.h | 49 class Pattern { 51 Pattern(); 52 ~Pattern(); 96 Pattern *GetPattern(int i); 98 Pattern *GetRandomPattern(); 103 vector<class Pattern> patterns_;
|