OILS / pyext / libc.pyi View on Github | oils.pub

24 lines, 18 significant
1from typing import List, Optional, Tuple
2
3# generated by ./configure
4HAVE_GLOB_PERIOD: int
5HAVE_FNM_EXTMATCH: int
6
7# libc values
8FNM_CASEFOLD: int
9GLOB_PERIOD: int
10REG_ICASE: int
11REG_NEWLINE: int
12REG_NOTBOL: int
13
14def gethostname() -> str: ...
15def glob(pat: str, flags: int = 0) -> List[str]: ...
16def fnmatch(pat: str, s: str, flags: int = 0) -> bool: ...
17def regex_first_group_match(regex: str, s: str, pos: int) -> Optional[Tuple[int, int]]: ...
18def regex_search(regex: str, cflags: int, s: str, eflags: int, pos: int = 0) -> Optional[List[int]]: ...
19def wcswidth(s: str) -> int: ...
20def get_terminal_width() -> int: ...
21def print_time(real: float, user: float, sys: float) -> None: ...
22def realpath(path: str) -> str: ...
23
24def cpython_reset_locale() -> None: ...