package pp-binary-ints

  1. Overview
  2. Docs
Pretty Printing Binary Integers

Install

Dune Dependency

Authors

Maintainers

Sources

pp-binary-ints-0.1.0.tbz
sha256=5ee9f0f118588fb5713ed5e951f1592885966c5dfe5a94a328afd17e9ec9ed93
sha512=569a2f8bee26405d18f294de6fcfd81a8464166e85d800a87394f8ed043aee3649f1e1344096c27c00c1bd0dcb0033101eeb1c6dabe4ce927657d412cf4691a6

doc/pp-binary-ints/Pp_binary_ints/Int/Flags/index.html

Module Int.FlagsSource

The Flags module contains types to modify how binary integers are printed.

Sourcetype padding =
  1. | Left
  2. | Right
  3. | Zeros
    (*

    padding controls whether spaces are are added on the left or right or if zero prefixes are added.

    *)
Sourcetype zero_printing =
  1. | OCaml
  2. | InheritNonZero
    (*

    zero_printing controls whether zeros printed similar to how Printf prints zeros or if zeros are printed similar to non-zero integers.

    *)
Sourcetype flags = {
  1. padding : padding;
  2. separators : bool;
  3. prefix_non_zero : bool;
  4. zero_printing : zero_printing;
}

flags are passed to pretty printing functions to customize the output.

Sourceval default : flags

A default set of flags.

OCaml

Innovation. Community. Security.