|
| | string_formatter (string_formatter const &)=delete |
| |
| void | operator= (string_formatter const &)=delete |
| |
| | string_formatter (string_formatter &&r) |
| |
| void | operator= (string_formatter &&r) |
| |
| | string_formatter (int flags=0, std::string_view text={}) |
| |
| | string_formatter (std::string_view text) |
| |
| | ~string_formatter () |
| |
| char | decimal_point () const |
| |
| string_formatter & | reset (int flags, std::string_view text) |
| |
| template<typename T > |
| string_formatter & | arg (T const &value, int width=-1, int precision=-1) |
| |
| string_formatter & | f (double value, int width=-1, int precision=-1) |
| |
| string_formatter & | c (char value, int width=-1, int precision=-1) |
| |
| string_formatter & | d (int32_t value, int width=-1, int precision=-1) |
| |
| string_formatter & | ld (int64_t value, int width=-1, int precision=-1) |
| |
| string_formatter & | u (uint32_t value, int width=-1, int precision=-1) |
| |
| string_formatter & | lu (uint64_t value, int width=-1, int precision=-1) |
| |
| string_formatter & | o (int32_t value, int width=-1, int precision=-1) |
| |
| string_formatter & | lo (int64_t value, int width=-1, int precision=-1) |
| |
| string_formatter & | x (int32_t value, int width=-1, int precision=-1) |
| |
| string_formatter & | lx (int64_t value, int width=-1, int precision=-1) |
| |
| string_formatter & | s (char const *value, int width=-1, int precision=-1) |
| |
| string_formatter & | s (std::string_view const &value, int width=-1, int precision=-1) |
| |
| string_formatter & | p (void *value, int width=-1, int precision=-1) |
| |
| template<typename T > |
| string_formatter & | operator() (T const &value, int width=-1, int precision=-1) |
| |
| void | render (std::function< void(char const *ptr, int len)> const &to) |
| |
| void | write_to (FILE *fp) |
| |
| void | write_to (int fd) |
| |
| void | put () |
| |
| void | err () |
| |
| void | append_to (std::vector< char > *vec) |
| |
| void | append_to (std::string *str) |
| |
| std::vector< char > | vec () |
| |
| std::string | str () |
| |
| | operator std::string () |
| |
|
| void * | x_alloc (size_t size) |
| |
| void | x_free (void *ptr) |
| |
| Part * | alloc_part (const char *data, int size) |
| |
| Part * | alloc_part (const char *begin, const char *end) |
| |
| Part * | alloc_part (const char *str) |
| |
| Part * | alloc_part (const std::string_view &str) |
| |
| void | free_part (Part **p) |
| |
| void | free_list (PartList *list) |
| |
| void | add_chars (PartList *list, char c, int n) |
| |
| Part * | format_double (double val, int precision, bool trim_zeros, bool plus) |
| |
| Part * | format_int32 (int32_t val, bool force_sign) |
| |
| Part * | format_uint32 (uint32_t val) |
| |
| Part * | format_int64 (int64_t val, bool force_sign) |
| |
| Part * | format_uint64 (uint64_t val) |
| |
| Part * | format_oct32 (uint32_t val) |
| |
| Part * | format_oct64 (uint64_t val) |
| |
| Part * | format_hex32 (uint32_t val, bool upper) |
| |
| Part * | format_hex64 (uint64_t val, bool upper) |
| |
| Part * | format_pointer (void *val) |
| |
| void | _init () |
| |
| void | clear () |
| |
| bool | advance (bool complete) |
| |
| Part * | format_f (double value, bool trim_zeros) |
| |
| Part * | format_c (char c) |
| |
| Part * | format_o32 (uint32_t value, int hint) |
| |
| Part * | format_o64 (uint64_t value, int hint) |
| |
| Part * | format_x32 (uint32_t value, int hint) |
| |
| Part * | format_x64 (uint64_t value, int hint) |
| |
| Part * | format (char c, int hint) |
| |
| Part * | format (double value, int hint) |
| |
| Part * | format (int32_t value, int hint) |
| |
| Part * | format (uint32_t value, int hint) |
| |
| Part * | format (int64_t value, int hint) |
| |
| Part * | format (uint64_t value, int hint) |
| |
| Part * | format (char const *value, int hint) |
| |
| Part * | format (std::string_view const &value, int hint) |
| |
| Part * | format (std::vector< char > const &value, int hint) |
| |
| Part * | format_p (void *val) |
| |
| void | reset_format_params () |
| |
| void | format (std::function< Part *(int)> const &callback, int width, int precision) |
| |
| int | length () |
| |
| void | use_locale (bool use) |
| |
| void | set_flags (int flags) |
| |