HomeSort by relevance Sort by last modified time
    Searched refs:Pattern (Results 1 - 25 of 688) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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/src/main/java/org/conscrypt/
AddressUtils.java 19 import java.util.regex.Pattern;
31 private static Pattern ipPattern;
61 Pattern ipPattern = AddressUtils.ipPattern;
63 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...]
  /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(");
ConversionRule.java 28 import java.util.regex.Pattern;
32 public Pattern getPattern();
35 * Given replacement rules, replace each capturing group in matcher's pattern
JULRuleSet.java 29 import java.util.regex.Pattern;
43 SingleConversionRule crImport0 = new SingleConversionRule(Pattern.compile("import\\s*+java.util.logging.Logger;"), "import org.slf4j.Logger;",
46 SingleConversionRule crImport1 = new SingleConversionRule(Pattern.compile("import\\s*+org.apache.log4j.LogManager;"), "import org.slf4j.LoggerFactory;");
48 SingleConversionRule crImport2 = new SingleConversionRule(Pattern.compile("import\\s*+java.util.logging.*;"), "import org.slf4j.Logger;",
51 SingleConversionRule crFactory0 = new SingleConversionRule(Pattern.compile("Logger.getLogger\\("), "LoggerFactory.getLogger(");
53 SingleConversionRule crFactory1 = new SingleConversionRule(Pattern.compile("LogManager.getLogger\\("), "LoggerFactory.getLogger(");
55 SingleConversionRule crWarning = new SingleConversionRule(Pattern.compile("\\.warning\\("), ".warn(");
56 SingleConversionRule crSevere = new SingleConversionRule(Pattern.compile("\\.severe\\("), ".error(");
  /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...]
  /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...]
  /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
  /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;
30 Pattern pat = Pattern.compile("XX");
40 pat = Pattern.compile("cat");
65 Pattern pat = Pattern.compile(testPattern);
70 assertFalse("After reset matcher should not find pattern in given input", mat.find());
72 assertTrue("After reset matcher should find pattern in given input", mat.find());
76 Pattern p = Pattern.compile("cat")
558 Pattern pattern = Pattern.compile("(?:\\\\d+)(?:pt)"); local
    [all...]
OldAndroidRegexTest.java 20 import java.util.regex.Pattern;
27 Pattern p = Pattern.compile("bcd");
31 /* Pattern in the middle */
32 p = Pattern.compile("bcd");
36 /* Pattern at the head */
40 /* Pattern at the tail */
45 p = Pattern.compile(".*");
51 p = Pattern.compile(".");
64 /* Tests class Pattern */
    [all...]
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/resolver/
ResolverTupleTest.java 18 import java.util.regex.Pattern;
27 ResolverTuple tuple = new ResolverTuple(new Tag("dice"), Pattern.compile("\\d+"));
  /libcore/benchmarks/src/benchmarks/regression/
StringSplitBenchmark.java 19 import java.util.regex.Pattern;
41 Pattern p = Pattern.compile(",");
48 Pattern p = Pattern.compile("\\.");
  /development/samples/Wiktionary/src/com/example/android/wiktionary/
ExtendedWikiHelper.java 31 import java.util.regex.Pattern;
49 * Pattern of section titles we're interested in showing. This trims out
52 private static final Pattern sValidSections =
53 Pattern.compile("(verb|noun|adjective|pronoun|interjection)", Pattern.CASE_INSENSITIVE);
56 * Pattern that can be used to split a returned wiki page into its various
59 private static final Pattern sSectionSplit =
60 Pattern.compile("^=+(.+?)=+.+?(?=^=)", Pattern.MULTILINE | Pattern.DOTALL)
    [all...]
  /cts/hostsidetests/monkey/src/com/android/cts/monkey/
PackageTest.java 19 import java.util.regex.Pattern;
24 private static final Pattern ALLOW_MONKEY =
25 Pattern.compile("^.*Allowing.*cmp=com\\.android\\.cts\\.monkey/\\.MonkeyActivity.*$",
26 Pattern.MULTILINE);
28 private static final Pattern ALLOW_CHIMP =
29 Pattern.compile("^.*Allowing.*cmp=com\\.android\\.cts\\.monkey2/\\.ChimpActivity.*$",
30 Pattern.MULTILINE);
  /external/caliper/caliper/src/main/java/com/google/caliper/bridge/
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*");

Completed in 728 milliseconds

1 2 3 4 5 6 7 8 91011>>