src/pylib/stringlib/percent_format

Source   Edit  

__mod__ implementation for str, bytes or bytearray.

Procs

proc allElementsSameType(eleTypes: NimNode; start = 0): bool {....raises: [],
    tags: [], forbids: [].}
Source   Edit  
proc getTypeName(t: AnyKind): string {....raises: [], tags: [], forbids: [].}
e.g. get "int" from akInt Source   Edit  
proc Py_FormatEx(dictMode: static[bool]; format: string; args: NimNode;
                 t_reprCb, t_asciiCb: static[proc (x: string): string];
                 disallow%b = true): NimNode
only exported if pylibDisableStaticPercentFormat not defined Source   Edit  
proc Py_FormatEx[T: not NimNode](dictMode: static[bool]; format: string;
                                 args: T;
                                 reprCb: proc (x: string): string = repr;
                                 asciiCb: proc (x: string): string = repr;
                                 disallow%b = true): string
Source   Edit  

Templates

template genPercentAndExport(S = string;
                             reprCb: proc (x: string): string = repr;
                             asciiCb: proc (x: string): string = repr;
                             disallowPercentb = true) {.dirty.}
Source   Edit