package pp-binary-ints

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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

type 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.

    *)
type 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.

    *)
type 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.

val default : flags

A default set of flags.

OCaml

Innovation. Community. Security.