• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
      • Std/lists
      • Std/alists
      • Obags
      • Std/util
      • Std/strings
        • Pretty-printing
        • Printtree
        • Base64
        • Charset-p
        • Strtok!
        • Cases
        • Concatenation
        • Html-encoding
        • Character-kinds
        • Substrings
        • Strtok
        • Equivalences
        • Url-encoding
        • Lines
        • Ordering
        • Numbers
          • Decimal
          • Hex
          • Octal
            • Parse-octal-from-string
            • Parse-octal-from-charlist
            • Nat-to-oct-chars
            • Oct-digit-chars-value
            • Oct-digit-char-p
            • Take-leading-oct-digit-chars
            • Oct-digit-char-value
            • Oct-digit-char-listp
            • Skip-leading-octal-digits
            • Strval8
            • Oct-digit-string-p
            • Nat-to-oct-string
            • Nat-to-oct-string-list
            • Revappend-nat-to-oct-chars
            • Nonzero-oct-digit-char-p
            • Nat-to-oct-string-size
            • Octal-digit-to-char
          • Binary
        • Pad-trim
        • Coercion
        • Std/strings-extensions
        • Std/strings/digit-to-char
        • Substitution
        • Symbols
      • Std/io
      • Std/osets
      • Std/system
      • Std/basic
      • Std/typed-lists
      • Std/bitsets
      • Std/testing
      • Std/typed-alists
      • Std/stobjs
      • Std-extensions
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Testing-utilities
    • Math
  • Numbers

Octal

Functions for working with octal numbers in strings.

Subtopics

Parse-octal-from-string
Parse a octal number from a string, at some offset.
Parse-octal-from-charlist
Parse a octal number from the beginning of a character list.
Nat-to-oct-chars
Convert a natural number into a list of octal bits.
Oct-digit-chars-value
Coerces a oct-digit-char-listp into a natural number.
Oct-digit-char-p
Recognizer for octal digit characters: 0-7.
Take-leading-oct-digit-chars
Collect any leading octal digit characters from the start of a character list.
Oct-digit-char-value
Coerces a oct-digit-char-p character into a number.
Oct-digit-char-listp
Recognizes lists of oct-digit-char-p characters.
Skip-leading-octal-digits
Skip over any leading octal digit characters at the start of a character list.
Strval8
Interpret a string as a octal number.
Oct-digit-string-p
Recognizer for strings whose characters are octal digits.
Nat-to-oct-string
Convert a natural number into a string with its octal digits.
Nat-to-oct-string-list
Convert a list of natural numbers into a list of octal digit strings.
Revappend-nat-to-oct-chars
More efficient version of (revappend (nat-to-oct-chars n) acc).
Nonzero-oct-digit-char-p
Recognizer for non-zero octal digit characters: 1-7.
Nat-to-oct-string-size
Number of characters in the octal representation of a natural.
Octal-digit-to-char
Convert a number from 0-7 into a octal character.