☰

# std/private/digitsutils

Theme:

- Manual
- Standard library
- Index
- Compiler docs
- Fusion docs
- devel, stable

Search:
Source Edit

# Procs

    proc addInt(result: var string; x: int) {.inline, enforceNoRaises, ...raises: [],
        tags: [], forbids: [].}

  Source Edit

    proc addInt(result: var string; x: int64) {.enforceNoRaises, ...raises: [],
        tags: [], forbids: [].}

  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: [], forbids: [].}

  Source Edit

    proc trailingZeros2Digits(digits: uint32): int {.inline, enforceNoRaises,
        ...raises: [], tags: [], forbids: [].}

  Source Edit

    proc utoa2Digits(buf: var openArray[char]; pos: int; digits: uint32) {.inline,
        enforceNoRaises, ...raises: [], tags: [], forbids: [].}

  Source Edit