|
IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
|
Format implementation details. More...
Classes | |
| struct | spec_t |
| Conversion specification. More... | |
| class | writer_t |
| Output buffer writer: never writes past last position (reserved for terminator). More... | |
Enumerations | |
| enum class | argSize_t : igros_byte_t { BYTE , WORD , DWORD , QUAD , SIZE } |
| Argument size (length modifier). More... | |
Functions | |
| template<std::integral T> | |
| void | putInteger (writer_t &out, const T value, const radix_t radix, const spec_t &spec, const bool upper=false) noexcept |
| Integer with sign (signed types, decimal only) and padding. | |
| void | putArgument (writer_t &out, std::va_list &list, const radix_t radix, const spec_t &spec, const bool isSigned, const bool upper) noexcept |
| Integer argument of given size: signed or unsigned. | |
| auto | parseSpec (const char *&fmt) noexcept -> spec_t |
| Parse flags, field width and length modifier of a placeholder. | |
Format implementation details.
|
strong |
Argument size (length modifier).
| Enumerator | |
|---|---|
| BYTE | hh |
| WORD | h |
| DWORD | (none) |
| QUAD | ll (l on 64-bit) |
| SIZE | z, t |
Definition at line 41 of file kPrint.cpp.
|
nodiscardnoexcept |
Parse flags, field width and length modifier of a placeholder.
(fmt points to '' on entry, to the last parsed character on return)
| fmt | Format position (advanced past parsed characters) |
Definition at line 207 of file kPrint.cpp.
|
noexcept |
Integer argument of given size: signed or unsigned.
| out | Output writer |
| list | Arguments (one is taken) |
| radix | Radix |
| spec | Conversion specification (argument size) |
| isSigned | Signed conversion |
| upper | Uppercase hexadecimal digits |
Definition at line 168 of file kPrint.cpp.
|
noexcept |
Integer with sign (signed types, decimal only) and padding.
| T | Integer type |
| out | Output writer |
| value | Value |
| radix | Radix (sign for decimal only) |
| spec | Field width and padding flags |
| upper | Uppercase hexadecimal digits |
Definition at line 150 of file kPrint.cpp.