| /prebuilts/gdb/darwin-x86/lib/python2.7/lib2to3/ |
| patcomp.py | 4 """Pattern compiler. 8 The compiler compiles a pattern to a pytree.*Pattern instance. 24 # The pattern grammar file 48 Takes an optional alternative filename for the pattern grammar. 57 """Compiles a pattern string to a nested pytree.*Pattern object.""" 94 pattern = self.compile_basic(node.children[1:]) 95 p = pytree.NegatedPattern(pattern) 111 pattern = self.compile_basic(nodes, repeat [all...] |
| /prebuilts/gdb/linux-x86/lib/python2.7/lib2to3/ |
| patcomp.py | 4 """Pattern compiler. 8 The compiler compiles a pattern to a pytree.*Pattern instance. 24 # The pattern grammar file 48 Takes an optional alternative filename for the pattern grammar. 57 """Compiles a pattern string to a nested pytree.*Pattern object.""" 94 pattern = self.compile_basic(node.children[1:]) 95 p = pytree.NegatedPattern(pattern) 111 pattern = self.compile_basic(nodes, repeat [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/ |
| patcomp.py | 4 """Pattern compiler. 8 The compiler compiles a pattern to a pytree.*Pattern instance. 24 # The pattern grammar file 48 Takes an optional alternative filename for the pattern grammar. 57 """Compiles a pattern string to a nested pytree.*Pattern object.""" 94 pattern = self.compile_basic(node.children[1:]) 95 p = pytree.NegatedPattern(pattern) 111 pattern = self.compile_basic(nodes, repeat [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/ |
| patcomp.py | 4 """Pattern compiler. 8 The compiler compiles a pattern to a pytree.*Pattern instance. 24 # The pattern grammar file 48 Takes an optional alternative filename for the pattern grammar. 57 """Compiles a pattern string to a nested pytree.*Pattern object.""" 94 pattern = self.compile_basic(node.children[1:]) 95 p = pytree.NegatedPattern(pattern) 111 pattern = self.compile_basic(nodes, repeat [all...] |
| /developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/parser/ |
| Parser.java | 26 import java.util.regex.Pattern; 65 Pattern quotePattern = Pattern.compile(QUOTE_REGEX); 66 Pattern pattern = Pattern.compile(BULLET_POINT_CODE_BLOCK_REGEX); local 78 parents.addAll(findElements(text, pattern)); 89 parents.addAll(findElements(text, pattern)); 110 @NonNull final Pattern pattern) { 122 parents.addAll(findElements(string.substring(lastStartIndex, startIndex), pattern)); local [all...] |
| /development/tools/idegen/src/ |
| Eclipse.java | 25 import java.util.regex.Pattern; 47 List<Pattern> patterns = new ArrayList<Pattern>(); 54 patterns.add(Pattern.compile("^(?!out/)")); 58 patterns.add(Pattern.compile(".*")); 62 for (Pattern pattern : patterns) { 63 buckets.add(new Bucket(pattern)); 177 private final Pattern pattern; field in class:Eclipse.Bucket [all...] |
| /external/apache-http/src/org/apache/http/impl/cookie/ |
| DateUtils.java | 60 * Date format pattern used to parse HTTP date headers in RFC 1123 format. 65 * Date format pattern used to parse HTTP date headers in RFC 1036 format. 70 * Date format pattern used to parse HTTP date headers in ANSI C 177 * Formats the given date according to the RFC 1123 pattern. 189 * Formats the given date according to the specified pattern. The pattern 194 * @param pattern The pattern to use for formatting the date. 197 * @throws IllegalArgumentException If the given date pattern is invalid. 201 public static String formatDate(Date date, String pattern) { [all...] |
| /external/autotest/client/site_tests/login_LogoutProcessCleanup/ |
| login_LogoutProcessCleanup.py | 15 def __init__(self, command, pattern): 17 self.pattern = pattern 23 """Waits for a subprocess that matches self.pattern.""" 24 def _subprocess_pid(pattern): 26 % pattern, ignore_status=True) 29 utils.poll_for_condition(lambda: _subprocess_pid(self.pattern)) 30 self.pid_bash = _subprocess_pid(self.pattern)
|
| /external/icu/icu4c/source/i18n/ |
| number_patternstring.h | 61 UnicodeString pattern; member in struct:number::impl::ParsedPatternInfo 65 ParsedPatternInfo() : state(this->pattern), currentSubpattern(nullptr) {} 89 const UnicodeString &pattern; // reference to the parent member in struct:number::impl::ParsedPatternInfo::ParserState 92 explicit ParserState(const UnicodeString &_pattern) : pattern(_pattern) {}; 142 * Runs the recursive descent parser on the given pattern string, returning a data structure with raw information 143 * about the pattern string. 151 * The LDML decimal format pattern (Excel-style pattern) to parse. 162 * Parses a pattern string into a new property bag. 164 * @param pattern [all...] |
| stsearch.cpp | 26 StringSearch::StringSearch(const UnicodeString &pattern, 32 m_pattern_(pattern) 52 StringSearch::StringSearch(const UnicodeString &pattern, 58 m_pattern_(pattern) 84 StringSearch::StringSearch(const UnicodeString &pattern, 90 m_pattern_(pattern) 109 StringSearch::StringSearch(const UnicodeString &pattern, 115 m_pattern_(pattern) 263 void StringSearch::setPattern(const UnicodeString &pattern, 267 m_pattern_ = pattern; [all...] |
| udatpg.cpp | 88 const UChar *pattern, int32_t length, 94 if(pattern==NULL && length!=0) { 98 UnicodeString patternString((UBool)(length<0), pattern, length); 106 const UChar *pattern, int32_t length, 112 if(pattern==NULL && length!=0) { 116 UnicodeString patternString((UBool)(length<0), pattern, length); 124 const UChar *pattern, int32_t patternLength, 131 if(pattern==NULL && patternLength!=0) { 135 UnicodeString patternString((UBool)(patternLength<0), pattern, patternLength); 220 const UChar *pattern, int32_t patternLength [all...] |
| umsg.cpp | 20 * Removed pattern parser. 62 const UChar *pattern, 75 actLen = u_vformatMessage(locale,pattern,patternLength,result,resultLength,ap,status); 84 const UChar *pattern, 93 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status); 101 const UChar *pattern, 115 actLen = u_vformatMessageWithError(locale,pattern,patternLength,result,resultLength,parseError,ap,status); 124 const UChar *pattern, 134 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,parseError,status); 147 const UChar *pattern, [all...] |
| /external/icu/icu4c/source/i18n/unicode/ |
| plurfmt.h | 82 * specify the message pattern, you can either pass it to the 90 * The pattern text defines the message output for each plural case of the 115 * (The offset defaults to 0 if it is omitted from the pattern string.) 212 * Creates a new cardinal-number <code>PluralFormat</code> for a given pattern string. 215 * @param pattern the pattern for this <code>PluralFormat</code>. 216 * errors are returned to status if the pattern is invalid. 221 PluralFormat(const UnicodeString& pattern, UErrorCode& status); 224 * Creates a new cardinal-number <code>PluralFormat</code> for a given pattern string and 231 * @param pattern the pattern for this <code>PluralFormat</code> [all...] |
| /external/strace/tests/ |
| nlattr_packet_diag_msg.c | 105 static char pattern[4096]; local 106 fill_memory_ex(pattern, sizeof(pattern), 'a', 'z' - 'a' + 1); 118 PACKET_DIAG_INFO, pattern, pinfo, 144 PACKET_DIAG_MCLIST, pattern, dml, 158 PACKET_DIAG_RX_RING, pattern, pdr, 170 PACKET_DIAG_FILTER, pattern, filter,
|
| /external/strace/tests-m32/ |
| nlattr_packet_diag_msg.c | 105 static char pattern[4096]; local 106 fill_memory_ex(pattern, sizeof(pattern), 'a', 'z' - 'a' + 1); 118 PACKET_DIAG_INFO, pattern, pinfo, 144 PACKET_DIAG_MCLIST, pattern, dml, 158 PACKET_DIAG_RX_RING, pattern, pdr, 170 PACKET_DIAG_FILTER, pattern, filter,
|
| /external/strace/tests-mx32/ |
| nlattr_packet_diag_msg.c | 105 static char pattern[4096]; local 106 fill_memory_ex(pattern, sizeof(pattern), 'a', 'z' - 'a' + 1); 118 PACKET_DIAG_INFO, pattern, pinfo, 144 PACKET_DIAG_MCLIST, pattern, dml, 158 PACKET_DIAG_RX_RING, pattern, pdr, 170 PACKET_DIAG_FILTER, pattern, filter,
|
| /external/tensorflow/tensorflow/python/kernel_tests/ |
| io_ops_test.py | 99 pattern = directory_path + 'AB%sDEF.GH*' 102 set(io_ops.matching_files(pattern % 'z').eval()), 105 set(io_ops.matching_files(pattern % '?').eval()), 108 set(io_ops.matching_files(pattern % '*').eval()), 114 set(io_ops.matching_files(pattern % '[cxz]').eval()), 117 set(io_ops.matching_files(pattern % '[0-9]').eval()), 132 pattern % '?', directory_path + 'X?Z*']).eval(),
|
| /frameworks/base/core/java/android/net/captiveportal/ |
| CaptivePortalProbeSpec.java | 32 import java.util.regex.Pattern; 57 * expression is invalid for {@link Pattern#compile(String)}. 73 final Pattern statusRegex = parsePatternIfNonEmpty(splits[1], statusRegexPos); 74 final Pattern locationRegex = parsePatternIfNonEmpty(splits[2], locationRegexPos); 80 private static Pattern parsePatternIfNonEmpty(String pattern, int pos) throws ParseException { 81 if (TextUtils.isEmpty(pattern)) { 85 return Pattern.compile(pattern); 88 String.format("Invalid status pattern [%s]: %s", pattern, e) [all...] |
| /prebuilts/go/darwin-x86/src/log/ |
| log_test.go | 31 pattern string // regexp that log output must match; we add ^ and expected_text$ always 51 func testPrint(t *testing.T, flag int, prefix string, pattern string, useFormat bool) { 63 pattern = "^" + pattern + "hello 23 world$" 64 matched, err4 := regexp.MatchString(pattern, line) 66 t.Fatal("pattern did not compile:", err4) 69 t.Errorf("log output should match %q is %q", pattern, line) 76 testPrint(t, testcase.flag, testcase.prefix, testcase.pattern, false) 77 testPrint(t, testcase.flag, testcase.prefix, testcase.pattern, true) 125 pattern := "^Reality:" + Rdate + " " + Rtime + Rmicroseconds + " hello\n [all...] |
| /prebuilts/go/linux-x86/src/log/ |
| log_test.go | 31 pattern string // regexp that log output must match; we add ^ and expected_text$ always 51 func testPrint(t *testing.T, flag int, prefix string, pattern string, useFormat bool) { 63 pattern = "^" + pattern + "hello 23 world$" 64 matched, err4 := regexp.MatchString(pattern, line) 66 t.Fatal("pattern did not compile:", err4) 69 t.Errorf("log output should match %q is %q", pattern, line) 76 testPrint(t, testcase.flag, testcase.prefix, testcase.pattern, false) 77 testPrint(t, testcase.flag, testcase.prefix, testcase.pattern, true) 125 pattern := "^Reality:" + Rdate + " " + Rtime + Rmicroseconds + " hello\n [all...] |
| /device/linaro/bootloader/edk2/StdLib/PosixLib/Glob/ |
| glob.c | 9 * Set in gl_flags if pattern contained a globbing character.
11 * Same as GLOB_NOCHECK, but it will only append pattern if it did
182 const char *pattern,
194 _DIAGASSERT(pattern != NULL);
196 patnext = (const u_char *) pattern;
234 * Expand recursively a glob {} pattern. When there is no more expansion
239 globexp1(const Char *pattern, glob_t *pglob, size_t *limit)
241 const Char* ptr = pattern;
244 _DIAGASSERT(pattern != NULL);
248 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[2] == EOS) [all...] |
| /developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/parser/ |
| Parser.kt | 19 import java.util.regex.Pattern 45 val patternQuote = Pattern.compile(QUOTE_REGEX) 46 val pattern = Pattern.compile(BULLET_POINT_CODE_BLOCK_REGEX) 58 parents.addAll(findElements(text, pattern)) 70 parents.addAll(findElements(text, pattern)) 89 private fun findElements(string: CharSequence, pattern: Pattern): List<Element> { 91 val matcher = pattern.matcher(string) 102 pattern)) [all...] |
| /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/tree/ |
| wizard.rb | 84 # test whether a tree matches a pattern 88 # extract nodes matching a pattern 94 # iterate through the tree and extract nodes with pattern labels 144 attr_reader :text, :error, :pattern 145 def initialize( pattern ) 146 @pattern = pattern.to_s 147 @scanner = StringScanner.new( pattern ) 156 type, = PATTERNS.find do |type, pattern| 157 @scanner.scan( pattern ) 200 def pattern method in class:ANTLR3.AST.Wizard.PatternParser [all...] |
| /bionic/libc/upstream-freebsd/lib/libc/gen/ |
| glob.c | 55 * Set in gl_flags if pattern contained a globbing character. 57 * Same as GLOB_NOCHECK, but it will only append pattern if it did 187 glob(const char * __restrict pattern, int flags, 198 patnext = pattern; 222 return (err_nomatch(pglob, &limit, pattern)); 244 return (err_nomatch(pglob, &limit, pattern)); 254 return (err_nomatch(pglob, &limit, pattern)); 258 return (globexp0(patbuf, pglob, &limit, pattern)); 260 return (glob0(patbuf, pglob, &limit, pattern)); 264 globexp0(const Char *pattern, glob_t *pglob, struct glob_limit *limit [all...] |
| /external/skia/src/ports/ |
| SkFontConfigInterface_direct.cpp | 162 // Returns the string from the pattern, or nullptr 163 static const char* get_string(FcPattern* pattern, const char field[], int index = 0) { 165 if (FcPatternGetString(pattern, field, index, (FcChar8**)&name) != FcResultMatch) { 363 static int get_int(FcPattern* pattern, const char object[], int missing) { 365 if (FcPatternGetInteger(pattern, object, 0, &value) != FcResultMatch) { 413 static SkFontStyle skfontstyle_from_fcpattern(FcPattern* pattern) { 428 int weight = map_ranges(get_int(pattern, FC_WEIGHT, FC_WEIGHT_REGULAR), 442 int width = map_ranges(get_int(pattern, FC_WIDTH, FC_WIDTH_NORMAL), 446 switch (get_int(pattern, FC_SLANT, FC_SLANT_ROMAN)) { 456 static void fcpattern_from_skfontstyle(SkFontStyle style, FcPattern* pattern) { [all...] |