1 # Source: https://hg.python.org/cpython/file/2.7/Lib/stringold.py
\r
2 from typing import AnyStr, Iterable, List, Optional, Type
\r
4 whitespace = ... # type: str
\r
5 lowercase = ... # type: str
\r
6 uppercase = ... # type: str
\r
7 letters = ... # type: str
\r
8 digits = ... # type: str
\r
9 hexdigits = ... # type: str
\r
10 octdigits = ... # type: str
\r
11 _idmap = ... # type: str
\r
12 _idmapL = ... # type: Optional[List[str]]
\r
13 index_error = ValueError
\r
14 atoi_error = ValueError
\r
15 atof_error = ValueError
\r
16 atol_error = ValueError
\r
19 def lower(s: AnyStr) -> AnyStr: ...
\r
20 def upper(s: AnyStr) -> AnyStr: ...
\r
21 def swapcase(s: AnyStr) -> AnyStr: ...
\r
22 def strip(s: AnyStr) -> AnyStr: ...
\r
23 def lstrip(s: AnyStr) -> AnyStr: ...
\r
24 def rstrip(s: AnyStr) -> AnyStr: ...
\r
25 def split(s: AnyStr, sep: AnyStr = ..., maxsplit: int = ...) -> List[AnyStr]: ...
\r
26 def splitfields(s: AnyStr, sep: AnyStr = ..., maxsplit: int = ...) -> List[AnyStr]: ...
\r
27 def join(words: Iterable[AnyStr], sep: AnyStr = ...) -> AnyStr: ...
\r
28 def joinfields(words: Iterable[AnyStr], sep: AnyStr = ...) -> AnyStr: ...
\r
29 def index(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...
\r
30 def rindex(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...
\r
31 def count(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...
\r
32 def find(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...
\r
33 def rfind(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...
\r
34 def atof(s: unicode) -> float: ...
\r
35 def atoi(s: unicode, base: int = ...) -> int: ...
\r
36 def atol(s: unicode, base: int = ...) -> long: ...
\r
37 def ljust(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...
\r
38 def rjust(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...
\r
39 def center(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...
\r
40 def zfill(s: AnyStr, width: int) -> AnyStr: ...
\r
41 def expandtabs(s: AnyStr, tabsize: int = ...) -> AnyStr: ...
\r
42 def translate(s: str, table: str, deletions: str = ...) -> str: ...
\r
43 def capitalize(s: AnyStr) -> AnyStr: ...
\r
44 def capwords(s: AnyStr, sep: AnyStr = ...) -> AnyStr: ...
\r
45 def maketrans(fromstr: str, tostr: str) -> str: ...
\r
46 def replace(s: AnyStr, old: AnyStr, new: AnyStr, maxreplace: int = ...) -> AnyStr: ...
\r