--- /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