Home
last modified time | relevance | path

Searched refs:evaluate_result (Results 1 – 2 of 2) sorted by relevance

/external/python/parse_type/parse_type/
Dparse.py788 def parse(self, string, evaluate_result=True): argument
797 if evaluate_result:
798 return self.evaluate_result(m)
802 def search(self, string, pos=0, endpos=None, evaluate_result=True): argument
820 if evaluate_result:
821 return self.evaluate_result(m)
825 def findall(self, string, pos=0, endpos=None, extra_types=None, evaluate_result=True): argument
837 return ResultIterator(self, string, pos, endpos, evaluate_result=evaluate_result)
859 def evaluate_result(self, m): member in Parser
1181 def evaluate_result(self): member in Match
[all …]
/external/python/parse_type/tests/
Dtest_parse.py166 match = parse.parse('hello {}', 'hello world', evaluate_result=False)
167 r = match.evaluate_result()
722 … match = parse.search('age: {:d}\n', 'name: Rufus\nage: 42\ncolor: red\n', evaluate_result=False)
723 r = match.evaluate_result()
736 s = ''.join(m.evaluate_result().fixed[0] for m in parse.findall(">{}<",
737 "<p>some <b>bold</b> text</p>", evaluate_result=False))