13 template<concepts::Encoding Enc, concepts::Formattable... Args>
14 class FormatStringImpl {
16 using StringView = container::string::StringViewImpl<Enc>;
20 auto parse_context = format::FormatParseContext<Enc> { view,
sizeof...(Args) };
21 for (
auto part : parse_context) {
24 }
else if (part->index() == 0) {
28 if constexpr (
sizeof...(Args) > 0) {
40 constexpr operator StringView()
const {
return m_view; }
42 constexpr auto encoding()
const {
return m_view.
encoding(); }
48 template<concepts::Encoding Enc, concepts::Formattable... Args>
49 class FormatStringWithLocationImpl {
51 using StringView = container::string::StringViewImpl<Enc>;
56 : m_base(view), m_location(location) {}
58 constexpr operator StringView()
const {
return m_base; }
60 constexpr auto encoding()
const {
return m_base.
encoding(); }
61 constexpr auto location()
const {
return m_location; }
65 util::SourceLocation m_location;
69template<concepts::Encoding Enc, concepts::Formattable... Args>
constexpr auto encoding() const -> Enc
Definition string_view_impl.h:74
static consteval auto current(char const *file_name=__builtin_FILE(), char const *function_name=__builtin_FUNCTION(), unsigned int line=__builtin_LINE(), unsigned int column=__builtin_COLUMN()) -> SourceLocation
Definition source_location.h:12
Definition encoding.h:205
string::StringViewImpl< string::Utf8Encoding > StringView
Definition string_view.h:12
FixedString(char const (&)[size]) -> FixedString< size - 1 >
constexpr auto index_dispatch
Definition index_dispatch.h:41
constexpr auto get(T &&value) -> decltype(auto)
Definition get.h:8
void compile_time_fail()
Definition compile_time_fail.h:7
Definition any_storable.h:9