/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
PatternErrorTest.java | 19 import java.util.regex.Pattern; 24 * Test boundary and error conditions in java.util.regex.Pattern 31 Pattern.compile(null); 37 Pattern.compile(""); 43 Pattern.compile("foo", flags); 46 flags |= Pattern.UNIX_LINES; 47 flags |= Pattern.CASE_INSENSITIVE; 48 flags |= Pattern.MULTILINE; 49 flags |= Pattern.CANON_EQ; 50 flags |= Pattern.COMMENTS [all...] |
MatcherTest.java | 21 import java.util.regex.Pattern; 44 Pattern p = Pattern.compile("x*"); 79 Pattern pat = Pattern.compile("XX"); 91 Pattern p = Pattern.compile("xx (rur|\\$)"); 104 String pattern = "a*b"; local 105 Pattern pat = Pattern.compile(pattern) 139 String pattern = "dog"; local 384 String pattern = "a*b"; local 565 Pattern pattern = Pattern.compile("\\\\w+"); local 612 Pattern pattern = Pattern.compile("(?s).*"); local 627 Pattern pattern = Pattern.compile("c"); local 638 Pattern pattern = Pattern.compile("(?:\\\\d+)(?:pt)"); local 657 Pattern pattern = Pattern.compile(regexp); local 699 Pattern pattern = Pattern.compile(regex); local [all...] |
/development/tools/idegen/src/ |
Excludes.java | 17 import java.util.regex.Pattern; 25 private final List<Pattern> patterns; 30 public Excludes(List<Pattern> patterns) { 38 for (Pattern pattern : patterns) { 39 if (pattern.matcher(path).find()) {
|
/external/apache-http/src/org/apache/http/conn/util/ |
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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
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_ADDRES [all...] |
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
PatternTest.java | 22 import java.util.regex.Pattern; 60 final static int[] flagsSet = { Pattern.CASE_INSENSITIVE, 61 Pattern.MULTILINE, Pattern.DOTALL, Pattern.UNICODE_CASE 62 /* , Pattern.CANON_EQ */ }; 74 Pattern p = Pattern.compile("a"); 80 // splitting CharSequence which ends with pattern 86 assertEquals(Pattern.compile("o").split("boo:and:foo", 5).length, 5) 422 String pattern = "b)a"; local 490 String pattern = "(?![^\\\\<C\\\\f\\\\0146\\\\0270\\\\}&&[|\\\\02-\\\\x3E\\\\}|X-\\\\|]]{7,}+)[|\\\\\\\\\\\\x98\\\\<\\\\?\\\\u4FCFr\\\\,\\\\0025\\\\}\\\\004|\\\\0025-\\\\052\\061]|(?<![|\\\\01-\\\\u829E])|(?<!\\\\p{Alpha})|^|(?-s:[^\\\\x15\\\\\\\\\\\\x24F\\\\a\\\\,\\\\a\\\\u97D8[\\\\x38\\\\a[\\\\0224-\\\\0306[^\\\\0020-\\\\u6A57]]]]??)(?uxix:[^|\\\\{\\\\[\\\\0367\\\\t\\\\e\\\\x8C\\\\{\\\\[\\\\074c\\\\]V[|b\\\\fu\\\\r\\\\0175\\\\<\\\\07f\\\\066s[^D-\\\\x5D]]])(?xx:^{5,}+)(?uuu)(?=^\\\\D)|(?!\\\\G)(?>\\\\.*?)(?![^|\\\\]\\\\070\\\\ne\\\\{\\\\t\\\\[\\\\053\\\\?\\\\\\\\\\\\x51\\\\a\\\\075\\\\0023-\\\\[&&[|\\\\022-\\\\xEA\\\\00-\\\\u41C2&&[^|a-\\\\xCC&&[^\\\\037\\\\uECB3\\\\u3D9A\\\\x31\\\\|\\\\<b\\\\0206\\\\uF2EC\\\\01m\\\\,\\\\ak\\\\a\\\\03&&\\\\p{Punct}]]]])(?-dxs:[|\\\\06-\\\\07|\\\\e-\\\\x63&&[|Tp\\\\u18A3\\\\00\\\\|\\\\xE4\\\\05\\\\061\\\\015\\\\0116C|\\\\r\\\\{\\\\}\\\\006\\\\xEA\\\\0367\\\\xC4\\\\01\\\\0042\\\\0267\\\\xBB\\\\01T\\\\}\\\\0100\\\\?[|\\\\[-\\\\u459B|\\\\x23\\\\x91\\\\rF\\\\0376[|\\\\?-\\\\x94\\\\0113-\\\\\\\\\\\\s]]]]{6}?)(?<=[^\\\\t-\\\\x42H\\\\04\\\\f\\\\03\\\\0172\\\\?i\\\\u97B6\\\\e\\\\f\\\\uDAC2])(?=\\\\.*+)(?>[^\\\\016\\\\r\\\\{\\\\,\\\\uA29D\\\\034\\\\02[\\\\02-\\\\[|\\\\t\\\\056\\\\uF599\\\\x62\\\\e\\\\<\\\\032\\\\uF0AC\\\\0026\\\\0205Q\\\\|\\\\\\\\\\\\06\\\\0164[|\\\\057-\\\\u7A98&&[\\\\061-g|\\\\|\\\\0276\\\\n\\\\042\\\\011\\\\e\\\\xE8\\\\x64B\\\\04\\\\u6D0EDW^\\\\p{Lower}]]]]?)(?<=[^\\\\n\\\\\\\\\\\\t\\\\u8E13\\\\,\\\\0114\\\\u656E\\\\xA5\\\\]&&[\\\\03-\\\\026|\\\\uF39D\\\\01\\\\{i\\\\u3BC2\\\\u14FE]])(?<=[^|\\\\uAE62\\\\054H\\\\|\\\\}&&^\\\\p{Space}])(?sxx)(?<=[\\\\f\\\\006\\\\a\\\\r\\\\xB4]{1,5})|(?x-xd:^{5}+)()"; local 503 String pattern = "(a{1,3})aab"; local 999 String pattern = ".*(..).*\\\\1.*"; local 1091 Pattern pattern = Pattern.compile("\\\\p{javaLowerCase}"); local [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
AddressUtils.java | 19 import java.util.regex.Pattern; 34 private static Pattern ipPattern; 64 Pattern ipPattern = AddressUtils.ipPattern; 66 AddressUtils.ipPattern = ipPattern = Pattern.compile(IP_PATTERN);
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/resolver/ |
ResolverTuple.java | 18 import java.util.regex.Pattern; 24 private final Pattern regexp; 26 public ResolverTuple(Tag tag, Pattern regexp) { 35 public Pattern getRegexp() {
|
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| )$") [all...] |
/frameworks/support/compat/java/android/support/v4/util/ |
PatternsCompat.java | 23 import java.util.regex.Pattern; 34 * This pattern is auto-generated by frameworks/ex/common/tools/make-iana-tld-pattern.py 153 public static final Pattern IP_ADDRESS 154 = Pattern.compile( 208 public static final Pattern DOMAIN_NAME 209 = Pattern.compile("(" + HOST_NAME + "|" + IP_ADDRESS + ")"); 227 * Regular expression pattern to match most part of RFC 3987 230 public static final Pattern WEB_URL = Pattern.compile("( [all...] |
/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/line/ |
SingleConversionRule.java | 28 import java.util.regex.Pattern; 31 * This class represents a conversion rule It uses a Pattern and defines for 32 * each capturing group of this Pattern a replacement text 39 final private Pattern pattern; field in class:SingleConversionRule 43 public SingleConversionRule(Pattern pattern, String replacementText) { 44 this(pattern, replacementText, null); 47 public SingleConversionRule(Pattern pattern, String replacementText, String additionalLine) [all...] |
Log4jRuleSet.java | 29 import java.util.regex.Pattern; 37 SingleConversionRule crImport0 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.log4j.Logger;"), "import org.slf4j.Logger;", 40 SingleConversionRule catImport = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.log4j.Category;"), "import org.slf4j.Logger;", 43 SingleConversionRule crImport1 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.log4j.LogManager;"), "import org.slf4j.LoggerFactory;"); 45 SingleConversionRule crImport2 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.log4j.*;"), "import org.slf4j.Logger;", 48 SingleConversionRule crImportMDC = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.log4j.MDC;"), "import org.slf4j.MDC;"); 50 SingleConversionRule crFactory0 = new SingleConversionRule(Pattern.compile("Logger.getLogger\\("), "LoggerFactory.getLogger("); 52 SingleConversionRule crFactory1 = new SingleConversionRule(Pattern.compile("\\sCategory.getInstance\\("), " LoggerFactory.getLogger("); 54 SingleConversionRule crFactory2 = new SingleConversionRule(Pattern.compile("LogManager.getLogger\\("), "LoggerFactory.getLogger("); 56 SingleConversionRule variable0 = new SingleConversionRule(Pattern.compile("(\\sCategory\\b)"), " Logger") [all...] |
JCLRuleSet.java | 29 import java.util.regex.Pattern; 43 SingleConversionRule cr0 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.commons.logging.LogFactory;"), 47 SingleConversionRule cr1 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.commons.logging.Log;"), "import org.slf4j.Logger;"); 49 SingleConversionRule cr2 = new SingleConversionRule(Pattern.compile("(\\sLog\\b)"), " Logger"); 51 SingleConversionRule cr3 = new SingleConversionRule(Pattern.compile("(^Log\\b)"), "Logger"); 53 SingleConversionRule cr4 = new SingleConversionRule(Pattern.compile("LogFactory.getFactory\\(\\).getInstance\\("), "LoggerFactory.getLogger("); 55 SingleConversionRule cr5 = new SingleConversionRule(Pattern.compile("LogFactory.getLog\\("), "LoggerFactory.getLogger(");
|
/external/smali/util/src/main/java/org/jf/util/ |
TextUtils.java | 36 import java.util.regex.Pattern; 57 Pattern pattern = Pattern.compile("((^[ \t]+)|([ \t]+$))", Pattern.MULTILINE); local 58 Matcher matcher = pattern.matcher(source); 62 Pattern pattern2 = Pattern.compile("^\r?\n?", Pattern.MULTILINE); 67 Pattern pattern3 = Pattern.compile("\r?\n?$") 78 Pattern pattern = Pattern.compile("#(.*)"); local [all...] |
/tools/loganalysis/src/com/android/loganalysis/parser/ |
DumpsysWifiStatsParser.java | 22 import java.util.regex.Pattern; 32 private static final Pattern WIFI_SCAN = Pattern.compile( 39 private static final Pattern WIFI_DISCONNECT = Pattern.compile( 46 private static final Pattern WIFI_ASSOCIATION = Pattern.compile(
|
AnrParser.java | 22 import java.util.regex.Pattern; 33 public static final Pattern START = Pattern.compile( 38 private static final Pattern PID = Pattern.compile("^PID: (\\d+)$"); 42 private static final Pattern REASON = Pattern.compile("^Reason: (.*)$"); 46 private static final Pattern LOAD = Pattern.compile( 52 private static final Pattern TOTAL = Pattern.compile("^(\\d+(\\.\\d+)?)% TOTAL: .*$") [all...] |
MonkeyLogParser.java | 33 import java.util.regex.Pattern; 39 private static final Pattern THROTTLE = Pattern.compile( 41 private static final Pattern SEED_AND_TARGET_COUNT = Pattern.compile( 43 private static final Pattern SECURITY_EXCEPTIONS = Pattern.compile( 46 private static final Pattern PACKAGES = Pattern.compile(":AllowPackage: (\\S+)"); 47 private static final Pattern CATEGORIES = Pattern.compile(":IncludeCategory: (\\S+)") [all...] |
/frameworks/base/core/java/android/util/ |
Patterns.java | 20 import java.util.regex.Pattern; 30 * This pattern is auto-generated by frameworks/ex/common/tools/make-iana-tld-pattern.py 66 * Regular expression pattern to match all IANA top-level domains. 70 public static final Pattern TOP_LEVEL_DOMAIN = 71 Pattern.compile(TOP_LEVEL_DOMAIN_STR); 77 * This pattern is auto-generated by frameworks/ex/common/tools/make-iana-tld-pattern.py 116 * This pattern is auto-generated by frameworks/ex/common/tools/make-iana-tld-pattern.p [all...] |
/tools/loganalysis/tests/src/com/android/loganalysis/util/ |
LogPatternUtilTest.java | 20 import java.util.regex.Pattern; 28 * Test basic pattern matching. 32 patternUtil.addPattern(Pattern.compile("abc"), "cat1"); 33 patternUtil.addPattern(Pattern.compile("123"), "cat2"); 41 * Test pattern matching with extras. 45 patternUtil.addPattern(Pattern.compile("abc"), null, "cat1"); 46 patternUtil.addPattern(Pattern.compile("123"), "E/tag1", "cat2"); 47 patternUtil.addPattern(Pattern.compile("123"), "E/tag2", "cat3");
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
PhoneUtil.java | 23 import java.util.regex.Pattern; 30 // This pattern comes from android.util.Patterns. It has been tweaked to handle a "1" before 32 private static final Pattern PHONE_PATTERN 33 = Pattern.compile( // sdd = space, dot, or dash
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/ModifyInf/ |
ModifyInf.c | 137 char *Pattern;
143 Pattern = PatternBuffer;
164 // Apply each pattern on the line
168 strcpy (Pattern, argv[PatternNum]);
171 // For pattern '-'
174 if (*Pattern == '-') {
175 if (strstr (Line, Pattern + 1)) {
185 if (*Pattern == '[') {
186 if (strncmp (Section, Pattern, strlen (Section))) {
188 // This pattern can't be appied for current section [all...] |
/external/mockito/src/main/java/org/mockito/internal/matchers/ |
Matches.java | 9 import java.util.regex.Pattern; 14 private final Pattern pattern; field in class:Matches 17 this(Pattern.compile(regex)); 20 public Matches(Pattern pattern) { 21 this.pattern = pattern; 25 return (actual instanceof String) && pattern.matcher((String) actual).matches(); 29 return "matches(\"" + pattern.pattern().replaceAll("\\\\", "\\\\\\\\") + "\")" [all...] |
/external/owasp/sanitizer/src/main/org/owasp/html/examples/ |
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 [all...] |
/libcore/luni/src/test/java/libcore/java/util/regex/ |
OldMatcherTest.java | 22 import java.util.regex.Pattern; 31 Pattern pat = Pattern.compile("XX"); 41 pat = Pattern.compile("cat"); 66 Pattern pat = Pattern.compile(testPattern); 71 assertFalse("After reset matcher should not find pattern in given input", mat.find()); 73 assertTrue("After reset matcher should find pattern in given input", mat.find()); 77 Pattern p = Pattern.compile("cat") 559 Pattern pattern = Pattern.compile("(?:\\\\d+)(?:pt)"); local [all...] |
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/object/ |
MatchesPatternTest.java | 7 import java.util.regex.Pattern; 15 Matcher<String> matcher = new MatchesPattern(Pattern.compile(".")); 23 assertThat("a", new MatchesPattern(Pattern.compile("a"))); 28 assertDoesNotMatch("A different string does not match", new MatchesPattern(Pattern.compile("a")), "b"); 33 assertDoesNotMatch("A substring does not match", new MatchesPattern(Pattern.compile("a")), "ab"); 38 Matcher<?> m = new MatchesPattern(Pattern.compile("a[bc](d|e)")); 39 assertDescription("a string matching the pattern 'a[bc](d|e)'", m ); 44 final Matcher<String> matcher = new MatchesPattern(Pattern.compile("a")); 50 Matcher<?> m = MatchesPattern.matchesPattern(Pattern.compile("a[bc](d|e)")); 51 assertDescription("a string matching the pattern 'a[bc](d|e)'", m ) [all...] |