HomeSort by relevance Sort by last modified time
    Searched refs:Pattern (Results 1 - 25 of 445) 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;
45 Pattern p = Pattern.compile("x*");
80 Pattern pat = Pattern.compile("XX");
92 Pattern p = Pattern.compile("xx (rur|\\$)");
105 String pattern = "a*b"; local
106 Pattern pat = Pattern.compile(pattern)
143 String pattern = "dog"; local
421 String pattern = "a*b"; local
604 Pattern pattern = Pattern.compile("\\\\w+"); local
653 Pattern pattern = Pattern.compile("(?s).*"); local
671 Pattern pattern = Pattern.compile("c"); local
684 Pattern pattern = Pattern.compile("(?:\\\\d+)(?:pt)"); local
708 Pattern pattern = Pattern.compile(regexp); local
752 Pattern pattern = Pattern.compile(regex); local
    [all...]
ModeTest.java 20 import java.util.regex.Pattern;
26 * Tests Pattern compilation modes and modes triggered in pattern strings
31 Pattern p;
34 p = Pattern.compile("([a-z]+)[0-9]+");
40 p = Pattern.compile("([a-z]+)[0-9]+", Pattern.CASE_INSENSITIVE);
48 p = Pattern.compile("(?i)([a-z]+)[0-9]+");
58 Pattern p;
61 p = Pattern.compile("^foo")
    [all...]
  /external/chromium_org/chrome/common/
content_settings_pattern_unittest.cc 12 ContentSettingsPattern Pattern(const std::string& str) {
21 Pattern("[*.]ikea.com").ToString().c_str());
48 // NOTICE: When content settings pattern are created from a GURL the following
55 ContentSettingsPattern pattern = ContentSettingsPattern::FromURL( local
57 EXPECT_TRUE(pattern.IsValid());
58 EXPECT_STREQ("[*.]www.youtube.com", pattern.ToString().c_str());
61 pattern = ContentSettingsPattern::FromURL(GURL("http://www.google.com"));
62 EXPECT_TRUE(pattern.Matches(GURL("http://www.google.com")));
63 EXPECT_TRUE(pattern.Matches(GURL("http://foo.www.google.com")));
64 EXPECT_TRUE(pattern.Matches(GURL("http://www.google.com:80")))
94 ContentSettingsPattern pattern = local
145 ContentSettingsPattern pattern = ContentSettingsPattern::FromURLNoWildcard( 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;
44 private static final Pattern IPV4_PATTERN =
45 Pattern.compile(
48 private static final Pattern IPV6_STD_PATTERN =
49 Pattern.compile(
52 private static final Pattern IPV6_HEX_COMPRESSED_PATTERN =
53 Pattern.compile(
  /external/chromium_org/third_party/WebKit/Source/core/platform/graphics/
Pattern.h 44 class Pattern : public RefCounted<Pattern> {
46 static PassRefPtr<Pattern> create(PassRefPtr<Image> tileImage, bool repeatX, bool repeatY)
48 return adoptRef(new Pattern(tileImage, repeatX, repeatY));
50 ~Pattern();
63 Pattern(PassRefPtr<Image>, bool repeatX, bool repeatY);
  /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
61 * Regular expression pattern to match all IANA top-level domains.
63 public static final Pattern TOP_LEVEL_DOMAIN =
64 Pattern.compile(TOP_LEVEL_DOMAIN_STR);
70 * This pattern is auto-generated by frameworks/ex/common/tools/make-iana-tld-pattern.py
111 * Regular expression pattern to match most part of RFC 3987
115 public static final Pattern WEB_URL = Pattern.compile
    [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...]
ModeTest.java 20 import java.util.regex.Pattern;
25 * Tests Pattern compilation modes and modes triggered in pattern strings
31 Pattern p;
34 p = Pattern.compile("([a-z]+)[0-9]+");
41 p = Pattern.compile("([a-z]+)[0-9]+", Pattern.CASE_INSENSITIVE);
50 p = Pattern.compile("(?i)([a-z]+)[0-9]+");
59 Pattern p;
62 p = Pattern.compile("^foo")
    [all...]
  /cts/hostsidetests/monkey/src/com/android/cts/monkey/
PackageTest.java 19 import java.util.regex.Pattern;
23 private static final Pattern ALLOW_MONKEY =
24 Pattern.compile("^.*Allowing.*cmp=com\\.android\\.cts\\.monkey/\\.MonkeyActivity.*$",
25 Pattern.MULTILINE);
27 private static final Pattern ALLOW_CHIMP =
28 Pattern.compile("^.*Allowing.*cmp=com\\.android\\.cts\\.monkey2/\\.ChimpActivity.*$",
29 Pattern.MULTILINE);
  /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...]
  /libcore/benchmarks/src/benchmarks/regression/
StringSplitBenchmark.java 20 import java.util.regex.Pattern;
42 Pattern p = Pattern.compile(",");
49 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...]
  /external/chromium_org/tools/gn/
pattern.cc 5 #include "tools/gn/pattern.h"
11 void ParsePattern(const std::string& s, std::vector<Pattern::Subrange>* out) {
14 Pattern::Subrange* last_literal = NULL;
20 (*out)[out->size() - 1].type != Pattern::Subrange::ANYTHING)
21 out->push_back(Pattern::Subrange(Pattern::Subrange::ANYTHING));
27 out->push_back(Pattern::Subrange(Pattern::Subrange::PATH_BOUNDARY));
32 out->push_back(Pattern::Subrange(Pattern::Subrange::LITERAL))
    [all...]
pattern.h 13 class Pattern {
47 Pattern(const std::string& s);
48 ~Pattern();
50 // Returns true if the current pattern matches the given string.
75 // Initializes the pattern list from a give list of pattern strings. Sets
83 std::vector<Pattern> patterns_;
pattern_unittest.cc 6 #include "tools/gn/pattern.h"
11 const char* pattern; member in struct:__anon16495::Case
18 TEST(Pattern, Matches) {
20 // Empty pattern matches only empty string.
56 Pattern pattern(c.pattern);
57 bool result = pattern.MatchesString(c.candidate);
58 EXPECT_EQ(c.expected_match, result) << i << ": \"" << c.pattern
  /cts/libs/vogar-expect/src/vogar/
Expectation.java 22 import java.util.regex.Pattern;
30 * pattern .*should get token \[, but get -1.*
35 * pattern .*cannot find symbol.*
40 /** The pattern to use when no expected output is specified */
41 public static final Pattern MATCH_ALL_PATTERN
42 = Pattern.compile(".*", Pattern.MULTILINE | Pattern.DOTALL);
54 /** The pattern the expected output will match. */
55 private final Pattern pattern field in class:Expectation
    [all...]
  /packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/
RegexFileFilter.java 21 import java.util.regex.Pattern;
28 * See java.util.regex.Pattern for regex matching rules
48 /** The regular expression pattern that will be used to match filenames */
49 private final Pattern pattern; field in class:RegexFileFilter
54 * @param pattern regular string expression to match
55 * @throws IllegalArgumentException if the pattern is null
57 public RegexFileFilter(String pattern) {
58 if (pattern == null) {
59 throw new IllegalArgumentException("Pattern is missing");
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/build/
BaseBuilderTest.java 20 import java.util.regex.Pattern;
27 Pattern p = Pattern.compile( "^(.+):(\\d+):\\s(.+)$"); //$NON-NLS-1$
  /external/guava/guava/src/com/google/common/io/
PatternFilenameFilter.java 24 import java.util.regex.Pattern;
39 private final Pattern pattern; field in class:PatternFilenameFilter
42 * Constructs a pattern file name filter object.
43 * @param patternStr the pattern string on which to filter file names
45 * @throws PatternSyntaxException if pattern compilation fails (runtime)
48 this(Pattern.compile(patternStr));
52 * Constructs a pattern file name filter object.
53 * @param pattern the pattern on which to filter file name
    [all...]
  /external/clang/test/SemaCXX/
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 {{candidate template ignored}}
  /external/libphonenumber/java/src/com/android/i18n/phonenumbers/
RegexCache.java 21 import java.util.regex.Pattern;
29 private LRUCache<String, Pattern> cache;
32 cache = new LRUCache<String, Pattern>(size);
35 public Pattern getPatternForRegex(String regex) {
36 Pattern pattern = cache.get(regex); local
37 if (pattern == null) {
38 pattern = Pattern.compile(regex);
39 cache.put(regex, pattern);
    [all...]
  /external/stressapptest/src/
pattern.h 15 // pattern.h : global pattern references and initialization
34 // Pattern and CRC data structure
36 const char *name; // Name of this pattern.
39 unsigned char weight[4]; // Weighted frequency of this pattern.
40 // Each pattern has 32,64,128,256 width versions.
43 // appropriate pattern is chosen. Thus a weight of
49 class Pattern {
51 Pattern();
52 ~Pattern();
62 unsigned int pattern(unsigned int offset) { function in class:Pattern
    [all...]

Completed in 449 milliseconds

1 2 3 4 5 6 7 8 91011>>