Home
last modified time | relevance | path

Searched refs:re (Results 1 – 25 of 186) sorted by relevance

12345678

/AliOS-Things-master/components/py_engine/tests/extmod/
A Dure1.py2 import ure as re namespace
5 import re
10 r = re.compile(".+")
22 r = re.compile("(.+)1")
31 r = re.compile("[a-cu-z]")
58 r = re.compile("o+")
67 m = re.match(".*", "foo")
79 m = re.match("a|b", "b")
85 r = re.compile("^b|b$")
90 re.compile("*")
[all …]
A Dure_sub.py2 import ure as re namespace
5 import re
11 re.sub
33 re.sub(
50 print(re.sub("a", "b", "c"))
57 re.sub("(a)", "b\\2", "a")
68 print(re.sub("a", "a", "a"))
69 print(re.sub(b".", b"a", b"a"))
70 print(re.sub(re.compile("a"), "a", "a"))
72 re.sub(123, "a", "a")
[all …]
A Dure_groups.py4 import ure as re namespace
7 import re
13 m = re.match(".", "a")
20 m = re.match(r"(([0-9]*)([a-z]*)[0-9]*)", "1234hello567")
23 m = re.match(r"([0-9]*)(([a-z]*)([0-9]*))", "1234hello567")
27 print(re.match(r"(a)?b(c)", "abc").groups())
30 print(re.match(r"(a)?b(c)", "bc").groups())
33 print(re.match(r"abc", "abc").groups())
A Dure_split.py2 import ure as re namespace
5 import re
10 r = re.compile(" ")
14 r = re.compile(" +")
18 r = re.compile(" +")
22 r = re.compile(" +")
26 r = re.compile("[a-f]+")
31 r = re.compile(b"x")
A Dure_span.py4 import ure as re namespace
7 import re
13 m = re.match(".", "a")
31 m = re.match(r"(([0-9]*)([a-z]*)[0-9]*)", "1234hello567")
34 m = re.match(r"([0-9]*)(([a-z]*)([0-9]*))", "1234hello567")
38 print_spans(re.match(r"(a)?b(c)", "abc"))
41 print_spans(re.match(r"(a)?b(c)", "bc"))
A Dure_group.py4 import ure as re namespace
7 import re
24 m = re.match(r"(([0-9]*)([a-z]*)[0-9]*)", "1234hello567")
27 m = re.match(r"([0-9]*)(([a-z]*)([0-9]*))", "1234hello567")
31 print_groups(re.match(r"(a)?b(c)", "abc"))
34 print_groups(re.match(r"(a)?b(c)", "bc"))
A Dure_namedclass.py4 import ure as re namespace
7 import re
24 m = re.match(r"\w+", "1234hello567 abc")
27 m = re.match(r"(\w+)\s+(\w+)", "ABC \t1234hello567 abc")
30 m = re.match(r"(\S+)\s+(\D+)", "ABC \thello abc567 abc")
33 m = re.match(r"(([0-9]*)([a-z]*)\d*)", "1234hello567")
A Dure_sub_unmatched.py4 import ure as re namespace
7 import re
13 re.sub
19 print(re.sub(r"(a)(b)?", r"\2-\1", "1a2"))
A Dure_split_empty.py8 import ure as re namespace
13 r = re.compile(" *")
17 r = re.compile("x*")
21 r = re.compile("x*")
A Dure_stack_overflow.py2 import ure as re namespace
5 import re
11 re.match("(a*)*", "aaa")
A Dure_error.py4 import ure as re namespace
7 import re
15 re.compile(r)
A Dure_split_notimpl.py2 import ure as re namespace
7 r = re.compile("( )")
/AliOS-Things-master/components/py_engine/engine/lib/re1.5/
A Dcompilecode.c29 for (; *re && *re != ')'; re++) { in _compilecode()
30 switch (*re) { in _compilecode()
32 re++; in _compilecode()
34 if ((*re | 0x20) == 'd' || (*re | 0x20) == 's' || (*re | 0x20) == 'w') { in _compilecode()
56 re++; in _compilecode()
65 for (cnt = 0; *re != ']'; re++, cnt++) { in _compilecode()
71 if (re[1] == '-' && re[2] != ']') { in _compilecode()
82 int capture = re[1] != '?' || re[2] != ':'; in _compilecode()
93 re = _compilecode(re + 1, prog, sizecode); in _compilecode()
209 re = _compilecode(re, prog, /*sizecode*/0); in re1_5_compilecode()
[all …]
/AliOS-Things-master/components/freetype/src/tools/docmaker/
A Dsources.py22 import fileinput, re, sys, os, string
42 self.start = re.compile( start, re.VERBOSE )
43 self.column = re.compile( column, re.VERBOSE )
44 self.end = re.compile( end, re.VERBOSE )
135 re_crossref = re.compile( r'@((?:\w|-)*)(.*)' ) # @foo
140 re_italic = re.compile( r"_(\w(\w|')*)_(.*)" ) # _italic_
141 re_bold = re.compile( r"\*(\w(\w|')*)\*(.*)" ) # *bold*
177 re_url = re.compile( url, re.VERBOSE | re.MULTILINE )
182 re_source_sep = re.compile( r'\s*/\*\s*\*/' )
187 re_source_crossref = re.compile( r'(\W*)(\w*)' )
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/cmake/
A Dbazel_to_cmake.py33 import re
76 elif re.search(r':windows$', key):
78 elif re.search(r':ppc$', key):
80 elif re.search(r':s390x$', key):
82 elif re.search(r':fuchsia$', key):
84 elif re.search(r':arm32_assuming_neon$', key):
86 elif re.search(r':do_not_want_O3$', key):
91 elif re.search(r':x86_64_and_not_msvc$', key):
93 elif re.search(r':windows_msvc$', key):
95 elif re.search(r':ruy_profiler$', key):
[all …]
/AliOS-Things-master/components/freetype/src/tools/
A Dchktrcmp.py11 import re
52 c_pathname_pat = re.compile( '^.*\.[ch]$', re.IGNORECASE )
53 trace_use_pat = re.compile( '^[ \t]*#define[ \t]+FT_COMPONENT[ \t]+trace_' )
77 trace_def_pat_opn = re.compile( '^.*FT_TRACE_DEF[ \t]*\([ \t]*' )
78 trace_def_pat_cls = re.compile( '[ \t\)].*$' )
/AliOS-Things-master/components/amp/libjs/lib/
A Dudp.js6 var ch, st, re = [];
15 re = re.concat(st.reverse());
17 return re;
A Dtcp.js6 var ch, st, re = [];
15 re = re.concat(st.reverse());
17 return re;
/AliOS-Things-master/components/littlevgl/scripts/
A Dlv_conf_checker.py6 import re
36 r = re.search(r'^ *# *define ([^\s]+).*$', i)
43 elif re.search('^ *typedef .*;.*$', i):
/AliOS-Things-master/components/py_engine/engine/py/
A Dmakemoduledefs.py10 import re
16 pattern = re.compile(r"[\n;]\s*MP_REGISTER_MODULE\((.*?),\s*(.*?),\s*(.*?)\);", flags=re.DOTALL)
51 return set(re.findall(pattern, c_file_obj.read()))
/AliOS-Things-master/components/py_engine/engine/tools/
A Dcc119 import re
44 re_preproc_line = re.compile(r'# [0-9]+ ')
45 re_map_entry = re.compile(r'\{.+?\(MP_QSTR_([A-Za-z0-9_]+)\).+\},')
46 re_mp_obj_dict_t = re.compile(r'(?P<head>(static )?const mp_obj_dict_t (?P<id>[a-z0-9_]+) = \{ \.ba…
47 re_mp_map_t = re.compile(r'(?P<head>(static )?const mp_map_t (?P<id>[a-z0-9_]+) = \{ \.all_keys_are…
48 re_mp_rom_map_elem_t = re.compile(r'static const mp_rom_map_elem_t [a-z_0-9]+\[\] = {$')
A Dcodeformat.py32 import re
105 m = re.match(r"( +)#(if |ifdef |ifndef |elif |else|endif)", l)
111 indent_next = len(re.match(r"( *)", l_next).group(1))
112 if indent - 4 == indent_next and re.match(r" +(} else |case )", l_next):
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmodure.c46 ByteProg re; member
192 int caps_num = (self->re.sub + 1) * 2; in ure_exec()
196 int res = re1_5_recursiveloopprog(&self->re, &subj, match->caps, caps_num, is_anchored); in ure_exec()
225 int caps_num = (self->re.sub + 1) * 2; in re_split()
237 int res = re1_5_recursiveloopprog(&self->re, &subj, caps, caps_num, false); in re_split()
246 if (self->re.sub > 0) { in re_split()
285 int caps_num = (self->re.sub + 1) * 2; in re_sub_helper()
297 int res = re1_5_recursiveloopprog(&self->re, &subj, match->caps, caps_num, false); in re_sub_helper()
417 int error = re1_5_compilecode(&o->re, re_str); in mod_re_compile()
424 re1_5_dumpcode(&o->re); in mod_re_compile()
/AliOS-Things-master/components/py_engine/engine/tools/mpremote/mpremote/
A Dpyboardextended.py1 import io, os, re, serial, struct, time
318 fs_hook_code = re.sub(key, str(value), fs_hook_code)
319 fs_hook_code = re.sub(" *#.*$", "", fs_hook_code, flags=re.MULTILINE)
320 fs_hook_code = re.sub("\n\n+", "\n", fs_hook_code)
321 fs_hook_code = re.sub(" ", " ", fs_hook_code)
322 fs_hook_code = re.sub("rd_", "r", fs_hook_code)
323 fs_hook_code = re.sub("wr_", "w", fs_hook_code)
324 fs_hook_code = re.sub("buf4", "b4", fs_hook_code)
/AliOS-Things-master/hardware/chip/rtl872xd/
A Dprepend_header.py5 import re
15 addr = int('0x'+re.search(r"\n(\w+) (\w+) "+section_start_name, open(symbol_list_file).read()).grou…

Completed in 21 milliseconds

12345678