MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / handle_char_specs

Function handle_char_specs

extlibs/fmt/include/fmt/format.h:1300–1307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1298
1299template <typename Char, typename Handler>
1300FMT_CONSTEXPR void handle_char_specs(const basic_format_specs<Char>* specs,
1301 Handler&& handler) {
1302 if (!specs) return handler.on_char();
1303 if (specs->type && specs->type != 'c') return handler.on_int();
1304 if (specs->align == align::numeric || specs->sign != sign::none || specs->alt)
1305 handler.on_error("invalid format specifier for char");
1306 handler.on_char();
1307}
1308
1309template <typename Char, typename Handler>
1310FMT_CONSTEXPR void handle_cstring_type_spec(Char spec, Handler&& handler) {

Callers 2

operator()Method · 0.85
parseMethod · 0.85

Calls 3

on_charMethod · 0.45
on_intMethod · 0.45
on_errorMethod · 0.45

Tested by

no test coverage detected