| 502 | template <typename... Args, typename S, |
| 503 | FMT_ENABLE_IF(is_compile_string<S>::value)> |
| 504 | constexpr 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 | |
| 521 | template <typename CompiledFormat, typename... Args, |
| 522 | typename Char = typename CompiledFormat::char_type, |
nothing calls this directly
no test coverage detected