Procs
func capwords(a: string): string {....raises: [], tags: [], forbids: [].}
-
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: string; sep: string): string {....raises: [], tags: [], forbids: [].}
-
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 proc get_identifiers(templ: Template): seq[string] {....raises: [Exception], tags: [RootEffect], forbids: [].}
- Source Edit
Macros
macro safe_substitute(templ: Template; kws: varargs[untyped]): string
- Source Edit
macro safe_substitute(templ: Template; mapping: Table; kws: varargs[untyped]): string
- Source Edit
macro substitute(templ: Template; kws: varargs[untyped]): string
- Source Edit
macro substitute(templ: Template; mapping: Table; kws: varargs[untyped]): string
- Source Edit