pathnorm
nimony/lib/std/pathnorm.nim
OS-Path normalization. Used by os.nim but also generally useful for dealing with paths.
Unstable API.
type PathIter = object i: int64 prev: int64 notFirst: bool
func hasNext(it: PathIter; x: string): boolTrue while
ithas not consumed all ofx.func next(it: var PathIter; x: string): tuple[int64, int64]Advances
itoverxand returns inclusive(start, end)indices of the next component.func addNormalizePath(x: string; result: var string; state: var int64; dirSep: char)Low level proc. Undocumented.
func normalizePath(path: string; dirSep: char): string