MicroPython/ure.py

changeset 2
2c3f30af031d
diff -r afcd3f0662b1 -r 2c3f30af031d MicroPython/ure.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MicroPython/ure.py	Sun Aug 25 19:25:37 2019 +0200
@@ -0,0 +1,52 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'ure' module.
+"""
+
+def compile(regex_str, flags=0):
+    pass
+
+def match(regex_str, string):
+    pass
+
+def search(regex_str, string):
+    pass
+
+def sub(regex_str, replace, string, count=0, flags=0):
+    pass
+
+DEBUG = False
+
+class regex_object():
+    def match(self, string):
+        pass
+    
+    def search(self, string):
+        pass
+    
+    def sub(self, replace, string, count=0, flags=0):
+        pass
+    
+    def split(self, string, max_split=-1):
+        pass
+    
+
+class match_object():
+    def group(self, index):
+        pass
+    
+    def groups(self):
+        pass
+    
+    def start(self, index=0):
+        pass
+    
+    def end(self, index=0):
+        pass
+    
+    def span(self, index=0):
+        pass

eric ide

mercurial