package b0
Software construction and deployment kit
Install
dune-project
Dependency
Authors
Maintainers
Sources
b0-0.0.6.tbz
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0
doc/b0.std/B0_std/Fmt/OCaml/index.html
Module Fmt.OCaml
Source
Formatting OCaml literal values.
int
formats int
literals. Warning. Values formatted on a 64-bit platform may not parse on 32-bit platforms.
nativeuint
formats unsigned nativeint
literals (i.e. as hexadecimal).
Chars and strings
FIXME. Can we make the string combinators multi line ?
char
formats char
literals as follows:
Char.Ascii.is_print
except single quote and slash are printed verbatim.- Characters
'\''
,'\\'
,'\n'
,'\r'
and'\t'
are printed just as written here. - Other charactres use hex escapes
'\xhh'
.
ascii_string
formats string
literals using char
, except that double quotes are escaped and single quotes are not.
string
formats string
literals. Assumes an UTF-8 encoded string but escapes:
- Double quotes.
- C0 control characters (U+0000-U+001F)
- C1 control characters (U+0080-U+009F)
- Line separator (U+2028) and paragraph separator (U+2029).
- UTF-8 decode errors by hex escapes
\xhh
.
binary_string
formats binary string literals. All characters are formatted using \xhh
escapes.
Parametric types
Note. Depending on what you print an enclosing parens
may be due on the arguments.
result ~ok ~error
formats result literals.
t5
formats quintuplets.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page