package pp-binary-ints

  1. Overview
  2. Docs

Module Pp_binary_ints.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.