![]() |
MOS Source Code
|
#include <algorithm>#include <mos/mos_global.h>#include <mos/moslib_global.hpp>#include <mos_stdio.hpp>#include <mos_stdlib.hpp>#include <mos_string.hpp>Go to the source code of this file.
Classes | |
| struct | printf_flags_t |
| struct | va_list_ptrwrappper_t |
Macros | |
| #define | goto_next_char() |
| #define | current (*format) |
| #define | wrap_printed(x) |
Enumerations | |
| enum | length_modifier_t { LM_none , LM_hh , LM__h , LM__l , LM_ll , LM__L , LM__j , LM__z , LM__t } |
Functions | |
| static size_t | parse_printf_flags (const char *format, printf_flags_t *pflags, va_list_ptrwrappper_t *args) |
| should_inline __nodiscard int | buf_putchar (char *buf, char c, size_t *size_left) |
| static int | printf_diouxX (char *buf, u64 number, printf_flags_t *pflags, char conv, size_t *size_left) |
| static int | printf_cs (char *buf, const char *data, printf_flags_t *pflags, char conv, size_t *psize_left) |
| int | vsnprintf (char *buf, size_t size, const char *format, va_list _args) |
Variables | |
| static const char *const | lower_hex_digits = "0123456789abcdef" |
| static const char *const | upper_hex_digits = "0123456789ABCDEF" |
| #define goto_next_char | ( | ) |
Referenced by parse_printf_flags().
| #define current (*format) |
| #define wrap_printed | ( | x | ) |
Definition at line 205 of file mos_stdio_impl.cpp.
Referenced by printf_cs(), printf_diouxX(), and vsnprintf().
| enum length_modifier_t |
| Enumerator | |
|---|---|
| LM_none | |
| LM_hh | |
| LM__h | |
| LM__l | |
| LM_ll | |
| LM__L | |
| LM__j | |
| LM__z | |
| LM__t | |
Definition at line 10 of file mos_stdio_impl.cpp.
|
static |
Definition at line 68 of file mos_stdio_impl.cpp.
Referenced by vsnprintf().
| should_inline __nodiscard int buf_putchar | ( | char * | buf, |
| char | c, | ||
| size_t * | size_left ) |
Definition at line 191 of file mos_stdio_impl.cpp.
Referenced by printf_cs(), printf_diouxX(), and vsnprintf().
|
static |
Definition at line 213 of file mos_stdio_impl.cpp.
Referenced by vsnprintf().
|
static |
Definition at line 390 of file mos_stdio_impl.cpp.
Referenced by vsnprintf().
|
static |
Definition at line 202 of file mos_stdio_impl.cpp.
Referenced by printf_diouxX().
|
static |
Definition at line 203 of file mos_stdio_impl.cpp.
Referenced by printf_diouxX().