|
MT Core (C++)
Core library for replacing C++ standard in project usage
|
#include "floats.hpp"#include "format.hpp"#include "mtcore/alloc.hpp"#include "mtcore/ascii.hpp"#include "mtcore/colls/bitset.hpp"#include "writer.hpp"#include <cstdio>#include "mtcore/csv/common.hpp"#include "../traits.hpp"

Go to the source code of this file.
Classes | |
| struct | mtcore::io::PaddingOptions |
| Represents parsed padding options for formatting output. More... | |
| struct | mtcore::io::Padded< T > |
| Formats data with padding into a writer's output stream Uses Formatter<T> under the hood Usually will use extract_padding_options to get padding options. More... | |
| struct | mtcore::io::Formatter< char > |
| Formatter for characters Format specifier options for output: More... | |
| struct | mtcore::io::Formatter< T > |
| Formats integer numbers (other than char) such as int, unsigned, long long, etc Format specifier options for output: More... | |
| struct | mtcore::io::Formatter< char * > |
| Format specifier for null-terminated char* (mutable C-strings) Has same format options as template<Iterable T> struct Formatter<T> More... | |
| struct | mtcore::io::Formatter< const char * > |
| Format specifier for null-terminated const char* (C-strings) Has same format options as template<Iterable T> struct Formatter<T> More... | |
| struct | mtcore::io::Formatter< Optional< T > > |
| Formatter for an optional Uses the formatter for the underlying value if available No formatting options. More... | |
| struct | mtcore::io::Formatter< Result< V, E > > |
| Formatter for a result Will check if the value has been moved out of the result Uses the formatter for the underlying value and/or error if available No formatting options. More... | |
| struct | mtcore::io::EnsureFormattable< WI > |
Namespaces | |
| namespace | mtcore |
| Core library for C++ with Zig-related functionality. | |
| namespace | mtcore::io |
Enumerations | |
| enum class | mtcore::io::ContentAlignment { mtcore::io::ContentAlignment::LEFT , mtcore::io::ContentAlignment::RIGHT , mtcore::io::ContentAlignment::CENTER } |
| Represents content alignment options for padded formatting options. More... | |
Functions | |
| Optional< PaddingOptions > | mtcore::io::extract_padding_options (Slice< const char > formatStr) |
Extracts padding options from a format string if present Padding options are in the following form: (padChar)(padDirection)(padLen); Where padChar is the character to pad with (maybe escaped with \ to avoid interpretation as a control character), padDirection is either < for left pad, > for right pad, or ^ for center padding, and padLen is an integer of the minimum length the output should be. | |