MicroPython/ure.py

changeset 2
2c3f30af031d
equal deleted inserted replaced
1:afcd3f0662b1 2:2c3f30af031d
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module containing stubs for API generation of the def 'ure' module.
8 """
9
10 def compile(regex_str, flags=0):
11 pass
12
13 def match(regex_str, string):
14 pass
15
16 def search(regex_str, string):
17 pass
18
19 def sub(regex_str, replace, string, count=0, flags=0):
20 pass
21
22 DEBUG = False
23
24 class regex_object():
25 def match(self, string):
26 pass
27
28 def search(self, string):
29 pass
30
31 def sub(self, replace, string, count=0, flags=0):
32 pass
33
34 def split(self, string, max_split=-1):
35 pass
36
37
38 class match_object():
39 def group(self, index):
40 pass
41
42 def groups(self):
43 pass
44
45 def start(self, index=0):
46 pass
47
48 def end(self, index=0):
49 pass
50
51 def span(self, index=0):
52 pass

eric ide

mercurial