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
Exports
-
removeprefix, endsWith, maketrans, substr, ==, str, ascii, NoneType, +=, partition, endsWith, startsWith, maketrans, +=, TranslateAction, ord, translate, str, bin, str, rf, u, TranslateTableVal, StringLike, split, strip, isspace, ==, str, endsWith, rstrip, isalpha, *, rindex, center, ==, Fr, split, contains, ascii, rstrip, replace, endsWith, contains, endsWith, format, toNimString, +, count, repr, lstrip, u, TranslateTableABC, runeAtPos, chr, +=, removesuffix, None, pyrepr, rsplit, capitalize, split, startsWith, startsWith, translate, format, split, center, title, replace, maketrans, [], count, ljust, toNimStr, repr, [], TranslateValType, [], TypedTranslateTableABC, toPyStr, PyStr, and, isupper, $, startsWith, isascii, index, rjust, hex, translate, reversed, rpartition, rsplit, runeLenAt, fr, str, count, chars, istitle, len, toPyStr, Rf, str, splitlines, expandtabs, toPyStr, splitlines, not, islower, runes, casefold, join, upper, ascii, contains, getChar, rfind, ljust, find, strip, oct, +, TranslateTable, lstrip, $, zfill, startsWith, StrTypedTranslateTable, rsplit, isascii, or, translate, byteLen, ord1, items, ascii, len, rjust, f, lower, <>, fspath, *, []=, newPyList, newPyList, sorted, <, <=, nimArrayAsList, []=, list, ==, pop, count, repr, []=, newPyList, <=, sorted, PyList, sort, sorted, clear, $, [], newPyListOfCap, index, append, index, newPyListOfStr, [], checkLenientOps, +=, getPtr, newPyList, <, pop, []=, sort, +=, list, pairs, delitem, delitem, extend, []=, setLen, list, []=, <, items, count, <=, newPyListOfStr, extend, ==, newPyList, *=, []=, newPyList, []=, len, mitems, *, +, insert, ==, @, +, reverse, list, delitem, reverse, repr, *, [], list, [], Template, Template, delimiter