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

Function compile

extlibs/fmt/include/fmt/compile.h:504–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502template <typename... Args, typename S,
503 FMT_ENABLE_IF(is_compile_string<S>::value)>
504constexpr auto compile(S format_str) {
505 constexpr basic_string_view<typename S::char_type> str = format_str;
506 if constexpr (str.size() == 0) {
507 return internal::make_text(str, 0, 0);
508 } else {
509 constexpr auto result =
510 internal::compile_format_string<internal::type_list<Args...>, 0, 0>(
511 format_str);
512 if constexpr (std::is_same<remove_cvref_t<decltype(result)>,
513 internal::unknown_format>()) {
514 return internal::compiled_format<S, Args...>(to_string_view(format_str));
515 } else {
516 return result;
517 }
518 }
519}
520
521template <typename CompiledFormat, typename... Args,
522 typename Char = typename CompiledFormat::char_type,

Callers

nothing calls this directly

Calls 3

make_textFunction · 0.85
to_string_viewFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected