Consts
ascii_letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
- Source Edit
ascii_lowercase = "abcdefghijklmnopqrstuvwxyz"
- Source Edit
ascii_uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- Source Edit
printable = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&\\\'()*+,-./:;<=>?@[\\\\]^_`{|}~ \t\n\r\v\f"
- Source Edit
punctuation = """!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~"""
- Source Edit
whitespace = " \t\n\r\v\f"
- Source Edit
Procs
func capwords(a: StringLike): PyStr
-
Mimics Python string.capwords(s) -> str:
Runs of whitespace characters are replaced by a single space and leading and trailing whitespace are removed.
Source Edit func capwords(a: StringLike; sep: StringLike): PyStr
-
Mimics Python string.capwords(s, sep) -> str:
Split the argument into words using split, capitalize each word using capitalize, and join the capitalized words using join. sep is used to split and join the words.
Source Edit