MicroPython/ure.py

Sun, 04 Apr 2021 16:54:03 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 04 Apr 2021 16:54:03 +0200
changeset 11
c8198736bff3
parent 2
2c3f30af031d
permissions
-rw-r--r--

Updated BBC micro:bit APIs for V2.

# -*- 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