std/private/digitsutils

  Source   Edit

Procs

proc addInt(result: var string; x: int) {.inline, enforceNoRaises, ...raises: [],
    tags: [].}
  Source   Edit
proc addInt(result: var string; x: int64) {.enforceNoRaises, ...raises: [],
    tags: [].}
Converts integer to its string representation and appends it to result.

Example:

var s = "foo"
s.addInt(45)
assert s == "foo45"
  Source   Edit
func addInt(result: var string; x: uint64) {.enforceNoRaises, ...raises: [],
    tags: [].}
  Source   Edit
proc trailingZeros2Digits(digits: uint32): int32 {.inline, ...raises: [], tags: [].}
  Source   Edit
proc utoa2Digits(buf: var openArray[char]; pos: int; digits: uint32) {.inline,
    ...raises: [], tags: [].}
  Source   Edit