Searched refs:re (Results 1 - 25 of 94) sorted by relevance

1234

/trex/scripts/external_libs/requests/requests/packages/chardet/
H A Dcharsetprober.py30 import re namespace
53 aBuf = re.sub(b'([\x00-\x7F])+', b' ', aBuf)
57 aBuf = re.sub(b'([A-Za-z])+', b' ', aBuf)
/trex/linux_dpdk/
H A Dc_dumbpreproc.py26 import re, sys, os, string, traceback namespace
31 re_inc = re.compile(
33 re.IGNORECASE | re.MULTILINE)
41 return [(m.group(2), m.group(3)) for m in re.finditer(re_inc, code)]
/trex/scripts/external_libs/urllib3/urllib3/packages/ssl_match_hostname/
H A D_implementation.py6 import re namespace
66 pats.append(re.escape(leftmost))
69 pats.append(re.escape(leftmost).replace(r'\*', '[^.]*'))
73 pats.append(re.escape(frag))
75 pat = re.compile(r'\A' + r'\.'.join(pats) + r'\Z', re.IGNORECASE)
/trex/scripts/external_libs/requests/requests/packages/urllib3/packages/ssl_match_hostname/
H A D_implementation.py6 import re namespace
66 pats.append(re.escape(leftmost))
69 pats.append(re.escape(leftmost).replace(r'\*', '[^.]*'))
73 pats.append(re.escape(frag))
75 pat = re.compile(r'\A' + r'\.'.join(pats) + r'\Z', re.IGNORECASE)
/trex/scripts/automation/trex_control_plane/common/
H A Dtext_opts.py2 import re namespace
22 keys = [re.escape(v['start']) for k,v in TEXT_CODES.iteritems()]
23 keys += [re.escape(v['end']) for k,v in TEXT_CODES.iteritems()]
24 pattern = re.compile("|".join(keys))
28 return re.sub(TextCodesStripper.pattern, '', s)
183 pretty_str = re.sub(r'([ ]*:[ ]+)(\-?[1-9][0-9]*[^.])',r'\1{0}'.format(blue(r'\2')), pretty_str)
185 pretty_str = re.sub(r'([ ]*:[ ]+)(\-?[1-9][0-9]*\.[0-9]+)',r'\1{0}'.format(magenta(r'\2')), pretty_str)
188 pretty_str = re.sub(r'([ ]*:[ ]+)("[^"]*")',r'\1{0}'.format(red(r'\2')), pretty_str)
189 pretty_str = re.sub(r"('[^']*')", r'{0}\1{1}'.format(TEXT_CODES['magenta']['start'],
/trex/scripts/automation/trex_control_plane/stf/trex_stf_lib/
H A Dtext_opts.py2 import re namespace
22 keys = [re.escape(v['start']) for k,v in TEXT_CODES.iteritems()]
23 keys += [re.escape(v['end']) for k,v in TEXT_CODES.iteritems()]
24 pattern = re.compile("|".join(keys))
28 return re.sub(TextCodesStripper.pattern, '', s)
177 pretty_str = re.sub(r'([ ]*:[ ]+)(\-?[1-9][0-9]*[^.])',r'\1{0}'.format(blue(r'\2')), pretty_str)
179 pretty_str = re.sub(r'([ ]*:[ ]+)(\-?[1-9][0-9]*\.[0-9]+)',r'\1{0}'.format(magenta(r'\2')), pretty_str)
182 pretty_str = re.sub(r'([ ]*:[ ]+)("[^"]*")',r'\1{0}'.format(red(r'\2')), pretty_str)
183 pretty_str = re.sub(r"('[^']*')", r'{0}\1{1}'.format(TEXT_CODES['magenta']['start'],
/trex/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/
H A Dtext_opts.py2 import re namespace
22 keys = [re.escape(v['start']) for k,v in TEXT_CODES.items()]
23 keys += [re.escape(v['end']) for k,v in TEXT_CODES.items()]
24 pattern = re.compile("|".join(keys))
28 return re.sub(TextCodesStripper.pattern, '', s)
185 pretty_str = re.sub(r'([ ]*:[ ]+)(\-?[1-9][0-9]*[^.])',r'\1{0}'.format(blue(r'\2')), pretty_str)
187 pretty_str = re.sub(r'([ ]*:[ ]+)(\-?[1-9][0-9]*\.[0-9]+)',r'\1{0}'.format(magenta(r'\2')), pretty_str)
190 pretty_str = re.sub(r'([ ]*:[ ]+)("[^"]*")',r'\1{0}'.format(red(r'\2')), pretty_str)
191 pretty_str = re.sub(r"('[^']*')", r'{0}\1{1}'.format(TEXT_CODES['magenta']['start'],
/trex/scripts/external_libs/yaml-3.11/yaml/
H A Dresolver.py7 import re namespace
169 re.compile(ur'''^(?:yes|Yes|YES|no|No|NO
171 |on|On|ON|off|Off|OFF)$''', re.X),
176 re.compile(ur'''^(?:[-+]?(?:[0-9][0-9_]*)\.[0-9_]*(?:[eE][-+][0-9]+)?
180 |\.(?:nan|NaN|NAN))$''', re.X),
185 re.compile(ur'''^(?:[-+]?0b[0-1_]+
189 |[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)$''', re.X),
194 re.compile(ur'^(?:<<)$'),
199 re.compile(ur'''^(?: ~
201 | )$''', re
[all...]
/trex/scripts/python-lib/yaml/
H A Dresolver.py7 import re namespace
169 re.compile(ur'''^(?:yes|Yes|YES|no|No|NO
171 |on|On|ON|off|Off|OFF)$''', re.X),
176 re.compile(ur'''^(?:[-+]?(?:[0-9][0-9_]*)\.[0-9_]*(?:[eE][-+][0-9]+)?
180 |\.(?:nan|NaN|NAN))$''', re.X),
185 re.compile(ur'''^(?:[-+]?0b[0-1_]+
189 |[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)$''', re.X),
194 re.compile(ur'^(?:<<)$'),
199 re.compile(ur'''^(?: ~
201 | )$''', re
[all...]
/trex/scripts/automation/regression/
H A DCShowParser.py3 import re namespace
26 mtch = re.match("^\s*(\w+/\d/\d)\s+(\d+)\s+(\d+)", line)
46 mtch = re.match("\s*([\w-]+)\s*(\d+)\s*(\d+)\s+", line)
80 mtch = re.match("Total (active translations):\s+(\d+).*(\d+)\s+static,\s+(\d+)\s+dynamic", line)
88 mtch = re.match("(Hits):\s+(\d+)\s+(Misses):\s+(\d+)", line)
106 mtch = re.match("\W*Processing: Load\D*(\d+)\D*(\d+)\D*(\d+)\D*(\d+)\D*", line)
125 mtch = re.match("\W*(\w+)\W*([:]|[=])\W*(\d+)", line)
147 mtch = re.match("\W*Entity name:\W*(\w[^\r\n]+)", line)
153 mtch = re.match("\W*Handle:\W*(\d+)", line)
159 mtch = re
[all...]
/trex/scripts/external_libs/pyyaml-3.11/python2/yaml/
H A Dresolver.py7 import re namespace
169 re.compile(ur'''^(?:yes|Yes|YES|no|No|NO
171 |on|On|ON|off|Off|OFF)$''', re.X),
176 re.compile(ur'''^(?:[-+]?(?:[0-9][0-9_]*)\.[0-9_]*(?:[eE][-+][0-9]+)?
180 |\.(?:nan|NaN|NAN))$''', re.X),
185 re.compile(ur'''^(?:[-+]?0b[0-1_]+
189 |[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)$''', re.X),
194 re.compile(ur'^(?:<<)$'),
199 re.compile(ur'''^(?: ~
201 | )$''', re
[all...]
/trex/scripts/external_libs/pyyaml-3.11/python3/yaml/
H A Dresolver.py7 import re namespace
169 re.compile(r'''^(?:yes|Yes|YES|no|No|NO
171 |on|On|ON|off|Off|OFF)$''', re.X),
176 re.compile(r'''^(?:[-+]?(?:[0-9][0-9_]*)\.[0-9_]*(?:[eE][-+][0-9]+)?
180 |\.(?:nan|NaN|NAN))$''', re.X),
185 re.compile(r'''^(?:[-+]?0b[0-1_]+
189 |[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)$''', re.X),
194 re.compile(r'^(?:<<)$'),
199 re.compile(r'''^(?: ~
201 | )$''', re
[all...]
/trex/scripts/external_libs/nose-1.3.4/python2/nose/tools/
H A Dtrivial.py8 import re namespace
36 caps = re.compile('([A-Z])')
/trex/scripts/external_libs/nose-1.3.4/python3/nose/tools/
H A Dtrivial.py8 import re namespace
36 caps = re.compile('([A-Z])')
/trex/scripts/external_libs/nose-1.3.4/python2/nose/plugins/
H A Dplugintest.py98 import re namespace
306 traceback_re = re.compile(r"""
319 """, re.VERBOSE | re.MULTILINE | re.DOTALL)
327 warn_re = re.compile(r"""
333 """, re.VERBOSE | re.MULTILINE)
338 return re.sub(
H A Dcover.py14 import re namespace
199 m = re.search(multiPackageRe, f.getvalue())
201 m = re.search(singlePackageRe, f.getvalue())
224 if (re.findall(r'^%s\b' % re.escape(package), name)
/trex/scripts/external_libs/nose-1.3.4/python3/nose/plugins/
H A Dplugintest.py98 import re namespace
306 traceback_re = re.compile(r"""
319 """, re.VERBOSE | re.MULTILINE | re.DOTALL)
327 warn_re = re.compile(r"""
333 """, re.VERBOSE | re.MULTILINE)
338 return re.sub(
H A Dcover.py14 import re namespace
199 m = re.search(multiPackageRe, f.getvalue())
201 m = re.search(singlePackageRe, f.getvalue())
224 if (re.findall(r'^%s\b' % re.escape(package), name)
/trex/scripts/external_libs/scapy-2.3.1/python2/scapy/asn1/
H A Dmib.py10 import re namespace
20 _mib_re_integer = re.compile("^[0-9]+$")
21 _mib_re_both = re.compile("^([a-zA-Z_][a-zA-Z0-9_-]*)\(([0-9]+)\)$")
22 _mib_re_oiddecl = re.compile("$\s*([a-zA-Z0-9_-]+)\s+OBJECT([^:\{\}]|\{[^:]+\})+::=\s*\{([^\}]+)\}",re.M)
23 _mib_re_strings = re.compile('"[^"]*"')
24 _mib_re_comments = re.compile('--.*(\r|\n)')
/trex/scripts/external_libs/scapy-2.3.1/python2/scapy/
H A Ddata.py10 import os,sys,re namespace
59 spaces = re.compile("[ \t]+|\n")
70 lt = tuple(re.split(spaces, l))
81 spaces = re.compile("[ \t]+|\n")
93 lt = tuple(re.split(spaces, l))
105 spaces = re.compile("[ \t]+|\n")
119 lt = tuple(re.split(spaces, l))
/trex/scripts/external_libs/scapy-2.3.1/python3/scapy/asn1/
H A Dmib.py10 import re namespace
20 _mib_re_integer = re.compile(b"^[0-9]+$")
21 _mib_re_both = re.compile(b"^([a-zA-Z_][a-zA-Z0-9_-]*)\(([0-9]+)\)$")
22 _mib_re_oiddecl = re.compile(b"$\s*([a-zA-Z0-9_-]+)\s+OBJECT([^:\{\}]|\{[^:]+\})+::=\s*\{([^\}]+)\}",re.M)
23 _mib_re_strings = re.compile(b'"[^"]*"')
24 _mib_re_comments = re.compile(b'--.*(\r|\n)')
/trex/scripts/external_libs/scapy-2.3.1/python3/scapy/
H A Ddata.py10 import os,sys,re namespace
59 spaces = re.compile("[ \t]+|\n")
70 lt = tuple(re.split(spaces, l))
81 spaces = re.compile("[ \t]+|\n")
93 lt = tuple(re.split(spaces, l))
105 spaces = re.compile("[ \t]+|\n")
119 lt = tuple(re.split(spaces, l))
/trex/scripts/external_libs/python-daemon-2.0.5/daemon/
H A D_metadata.py18 import re namespace
64 rfc822_person_regex = re.compile(
/trex/scripts/external_libs/nose-1.3.4/python2/nose/
H A Dinspector.py6 import re namespace
118 cnt = re.compile(r'\\[\s\n]*$')
119 df = re.compile(r':[\s\n]*$')
120 ind = re.compile(r'^(\s*)')
206 if re.match(r'\s+\\\n', line[end[1]:]):
/trex/scripts/external_libs/nose-1.3.4/python3/nose/
H A Dinspector.py6 import re namespace
119 cnt = re.compile(r'\\[\s\n]*$')
120 df = re.compile(r':[\s\n]*$')
121 ind = re.compile(r'^(\s*)')
207 if re.match(r'\s+\\\n', line[end[1]:]):

Completed in 17 milliseconds

1234