2022-08-29 12:47:05 +08:00
|
|
|
from PikaObj import *
|
|
|
|
|
|
|
|
I: int
|
2022-08-29 16:29:03 +08:00
|
|
|
IGNORECASE: int
|
2022-08-29 12:47:05 +08:00
|
|
|
M: int
|
2022-08-29 16:29:03 +08:00
|
|
|
MULTILINE: int
|
2022-08-29 12:47:05 +08:00
|
|
|
DOTALL: int
|
|
|
|
|
2022-08-29 16:29:03 +08:00
|
|
|
def __init__(): ...
|
2022-08-29 12:47:05 +08:00
|
|
|
|
2022-08-29 16:29:03 +08:00
|
|
|
class Pattern:
|
2022-08-29 12:47:05 +08:00
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
def __del__(self):
|
|
|
|
pass
|
|
|
|
def findall(self, subject: str, *flags) -> list:
|
|
|
|
pass
|
|
|
|
def sub(self, repl: str, subjet: str, *flags) -> str:
|
|
|
|
pass
|
|
|
|
def match(self, subject: str, *flags) -> Match:
|
|
|
|
pass
|
|
|
|
def fullmatch(self, subject: str, *flags) -> Match:
|
|
|
|
pass
|
|
|
|
def search(self, subject: str, *flags) -> Match:
|
|
|
|
pass
|
|
|
|
|
2022-08-29 16:29:03 +08:00
|
|
|
class Match:
|
2022-08-29 12:47:05 +08:00
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
def __del__(self):
|
|
|
|
pass
|
|
|
|
def group(self, n: int) -> str:
|
|
|
|
pass
|
|
|
|
def groups(self) -> list:
|
|
|
|
pass
|
|
|
|
def span(self, group_n: int) -> list:
|
|
|
|
pass
|
|
|
|
|
2022-08-29 16:29:03 +08:00
|
|
|
def findall(pattern: str, subject: str, *flags) -> list: ...
|
2022-08-29 12:47:05 +08:00
|
|
|
def sub(pattern: str, repl: str, subjet: str, *flags) -> str: ...
|
|
|
|
def match(pattern: str, subject: str, *flags) -> Match: ...
|
|
|
|
def fullmatch(pattern: str, subject: str, *flags) -> Match: ...
|
|
|
|
def search(pattern: str, subject: str, *flags) -> Match: ...
|
|
|
|
def compile(pattern: str) -> Pattern: ...
|