Function format_error

Summary

#include <toml/value.hpp>

(1) template <typename C, template< typename ... > class T, template< typename ... > class A>
    std::string format_error(const std::string &err_msg, const basic_value< C, T, A > &v, const std::string &comment, std::vector< std::string > hints={}, const bool colorize=TOML11_ERROR_MESSAGE_COLORIZED)

(2) template <typename C, template< typename ... > class T, template< typename ... > class A>
    std::string format_error(const std::string &err_msg, const toml::basic_value< C, T, A > &v1, const std::string &comment1, const toml::basic_value< C, T, A > &v2, const std::string &comment2, std::vector< std::string > hints={}, const bool colorize=TOML11_ERROR_MESSAGE_COLORIZED)

(3) template <typename C, template< typename ... > class T, template< typename ... > class A>
    std::string format_error(const std::string &err_msg, const toml::basic_value< C, T, A > &v1, const std::string &comment1, const toml::basic_value< C, T, A > &v2, const std::string &comment2, const toml::basic_value< C, T, A > &v3, const std::string &comment3, std::vector< std::string > hints={}, const bool colorize=TOML11_ERROR_MESSAGE_COLORIZED)

Function overload

Synopsis

#include <toml/value.hpp>

template <typename C, template< typename ... > class T, template< typename ... > class A>
std::string format_error(const std::string &err_msg, const basic_value< C, T, A > &v, const std::string &comment, std::vector< std::string > hints={}, const bool colorize=TOML11_ERROR_MESSAGE_COLORIZED)

Description

No description yet.

Mentioned in

Source

Lines 1927-1935 in toml/value.hpp.

template<typename C, template<typename ...> class T, template<typename ...> class A>
inline std::string format_error(const std::string& err_msg,
        const basic_value<C, T, A>& v, const std::string& comment,
        std::vector<std::string> hints = {},
        const bool colorize = TOML11_ERROR_MESSAGE_COLORIZED)
{
    return detail::format_underline(err_msg, {{v.location(), comment}},
                                    std::move(hints), colorize);
}

Synopsis

#include <toml/value.hpp>

template <typename C, template< typename ... > class T, template< typename ... > class A>
std::string format_error(const std::string &err_msg, const toml::basic_value< C, T, A > &v1, const std::string &comment1, const toml::basic_value< C, T, A > &v2, const std::string &comment2, std::vector< std::string > hints={}, const bool colorize=TOML11_ERROR_MESSAGE_COLORIZED)

Description

No description yet.

Mentioned in

Source

Lines 1937-1947 in toml/value.hpp.

template<typename C, template<typename ...> class T, template<typename ...> class A>
inline std::string format_error(const std::string& err_msg,
        const toml::basic_value<C, T, A>& v1, const std::string& comment1,
        const toml::basic_value<C, T, A>& v2, const std::string& comment2,
        std::vector<std::string> hints = {},
        const bool colorize = TOML11_ERROR_MESSAGE_COLORIZED)
{
    return detail::format_underline(err_msg, {
            {v1.location(), comment1}, {v2.location(), comment2}
        }, std::move(hints), colorize);
}

Synopsis

#include <toml/value.hpp>

template <typename C, template< typename ... > class T, template< typename ... > class A>
std::string format_error(const std::string &err_msg, const toml::basic_value< C, T, A > &v1, const std::string &comment1, const toml::basic_value< C, T, A > &v2, const std::string &comment2, const toml::basic_value< C, T, A > &v3, const std::string &comment3, std::vector< std::string > hints={}, const bool colorize=TOML11_ERROR_MESSAGE_COLORIZED)

Description

No description yet.

Mentioned in

Source

Lines 1949-1960 in toml/value.hpp.

template<typename C, template<typename ...> class T, template<typename ...> class A>
inline std::string format_error(const std::string& err_msg,
        const toml::basic_value<C, T, A>& v1, const std::string& comment1,
        const toml::basic_value<C, T, A>& v2, const std::string& comment2,
        const toml::basic_value<C, T, A>& v3, const std::string& comment3,
        std::vector<std::string> hints = {},
        const bool colorize = TOML11_ERROR_MESSAGE_COLORIZED)
{
    return detail::format_underline(err_msg, {{v1.location(), comment1},
            {v2.location(), comment2}, {v3.location(), comment3}
        }, std::move(hints), colorize);
}





Add Discussion as Guest

Log in