20#ifndef MMGR_VERBA_SCRIBO_H
21#define MMGR_VERBA_SCRIBO_H
32#define MMGR_G_MAX_SIG 18u
39#define MMGR_FIXED_MAX_DECIMALS 18u
The embedded_types headers every module builds on.
Arguments for the entries that write the buffer itself, with no value to place in it.
Arguments for the entries that write a double.
Arguments for the entries that write one character.
Arguments for the entries that write an integer.
Type of the verba_finis dispatch table.
embed_bool(*) ok(const VerbaFinisCfg *args)
size_t(*) finish(const VerbaFinisCfg *args)
Type of the verba_fractio dispatch table.
embed_bool(*) is_inf(const VerbaFractioCfg *args)
embed_bool(*) sign_bit(const VerbaFractioCfg *args)
size_t(*) g(const VerbaFractioCfg *args)
embed_bool(*) is_nan(const VerbaFractioCfg *args)
size_t(*) fixed(const VerbaFractioCfg *args)
Type of the verba_littera dispatch table.
size_t(*) ch(const VerbaLitteraCfg *args)
Type of the verba_numerus dispatch table.
size_t(*) u32w(const VerbaNumerusCfg *args)
size_t(*) u64(const VerbaNumerusCfg *args)
size_t(*) u64_clip(const VerbaNumerusCfg *args)
size_t(*) i64(const VerbaNumerusCfg *args)
size_t(*) u32(const VerbaNumerusCfg *args)
size_t(*) hex(const VerbaNumerusCfg *args)
size_t(*) uint(const VerbaNumerusCfg *args)
Type of the verba_textus dispatch table.
size_t(*) put_clip(const VerbaTextusCfg *args)
size_t(*) put(const VerbaTextusCfg *args)
size_t(*) put_n(const VerbaTextusCfg *args)
size_t(*) xml(const VerbaTextusCfg *args)
size_t(*) json(const VerbaTextusCfg *args)
Arguments for the entries that write text into a buffer.
static const VerbaScriboLitteraNs verba_littera
Dispatch table instance named verba_littera, whose one member is set to mmgr_verba_ch.
static const VerbaScriboFinisNs verba_finis
Dispatch table instance named verba_finis, with each member set to its mmgr_verba_ function.
size_t mmgr_verba_u32w(const VerbaNumerusCfg *args)
Writes a value in base ten, padded to min digits.
size_t mmgr_verba_u64_clip(const VerbaNumerusCfg *args)
Writes a value right aligned, padded with spaces.
size_t mmgr_verba_hex(const VerbaNumerusCfg *args)
Writes a value in lower case base sixteen.
embed_bool mmgr_verba_ok(const VerbaFinisCfg *args)
Reports whether there is still room.
size_t mmgr_verba_xml(const VerbaTextusCfg *args)
Writes text with the four XML entities substituted.
size_t mmgr_verba_put_clip(const VerbaTextusCfg *args)
Writes as much of a string as fits.
size_t mmgr_verba_uint(const VerbaNumerusCfg *args)
Writes a value in the base the caller gives.
size_t mmgr_verba_put_n(const VerbaTextusCfg *args)
Writes a counted run of text.
static const VerbaScriboTextusNs verba_textus
Dispatch table instance named verba_textus, with each member set to its mmgr_verba_ function.
size_t mmgr_verba_u64(const VerbaNumerusCfg *args)
Writes a value in base ten, unpadded.
size_t mmgr_verba_finish(const VerbaFinisCfg *args)
Stores the terminator and reports the length.
size_t mmgr_verba_g(const VerbaFractioCfg *args)
Writes a double to a significant digit count.
size_t mmgr_verba_fixed(const VerbaFractioCfg *args)
Writes a double to a decimal count.
size_t mmgr_verba_u32(const VerbaNumerusCfg *args)
Writes a value in base ten, unpadded.
embed_bool mmgr_verba_is_nan(const VerbaFractioCfg *args)
Reports whether a double is a NaN.
static const VerbaScriboFractioNs verba_fractio
Dispatch table instance named verba_fractio, with each member set to its mmgr_verba_ function.
embed_bool mmgr_verba_sign_bit(const VerbaFractioCfg *args)
Reports a double's sign bit.
embed_bool mmgr_verba_is_inf(const VerbaFractioCfg *args)
Reports whether a double is an infinity.
static const VerbaScriboNumerusNs verba_numerus
Dispatch table instance named verba_numerus, with each member set to its mmgr_verba_ function.
size_t mmgr_verba_json(const VerbaTextusCfg *args)
Writes text as a quoted JSON string.
size_t mmgr_verba_i64(const VerbaNumerusCfg *args)
Writes a signed value in base ten.
size_t mmgr_verba_ch(const VerbaLitteraCfg *args)
Writes one character.
size_t mmgr_verba_put(const VerbaTextusCfg *args)
Writes a terminated string, measuring it first.