Crossfire Server, Trunk
|
#include <nlohmann/json.hpp>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <functional>
#include <algorithm>
#include <cassert>
#include <iterator>
#include <limits>
#include <ostream>
#include <vector>
#include <stack>
#include <utility>
#include <queue>
#include <stdexcept>
#include <cctype>
#include <locale>
#include <map>
#include <numeric>
Go to the source code of this file.
Namespaces | |
inja | |
inja::string_view | |
nonstd | |
nonstd::sv_lite | |
Typedefs | |
using | inja::Arguments = std::vector< const json * > |
using | inja::CallbackFunction = std::function< json(Arguments &args)> |
using | inja::json = nlohmann::json |
using | inja::TemplateStorage = std::map< std::string, Template > |
using | inja::VoidCallbackFunction = std::function< void(Arguments &args)> |
Functions | |
SourceLocation | inja::get_source_location (nonstd::string_view content, size_t pos) |
nssv_DISABLE_MSVC_WARNINGS (4455 26481 26472) namespace nonstd | |
void | inja::open_file_or_throw (const std::string &path, std::ifstream &file) |
std::string | inja::render (nonstd::string_view input, const json &data) |
render with default settings to a string More... | |
void | inja::render_to (std::ostream &os, nonstd::string_view input, const json &data) |
render with default settings to the given output stream More... | |
void | inja::replace_substring (std::string &s, const std::string &f, const std::string &t) |
nonstd::string_view | inja::string_view::slice (nonstd::string_view view, size_t start, size_t end) |
std::pair< nonstd::string_view, nonstd::string_view > | inja::string_view::split (nonstd::string_view view, char Separator) |
bool | inja::string_view::starts_with (nonstd::string_view view, nonstd::string_view prefix) |
template<class CharT , class Traits > | |
std::basic_string< CharT, Traits > | nonstd::sv_lite::to_string (basic_string_view< CharT, Traits > v) |
template<class CharT , class Traits , class Allocator > | |
std::basic_string< CharT, Traits, Allocator > | nonstd::sv_lite::to_string (basic_string_view< CharT, Traits > v, Allocator const &a) |
template<class CharT , class Traits , class Allocator > | |
basic_string_view< CharT, Traits > | nonstd::sv_lite::to_string_view (std::basic_string< CharT, Traits, Allocator > const &s) |
#define INJA_THROW | ( | exception | ) | std::abort(); std::ignore = exception |
#define nssv_BETWEEN | ( | v, | |
lo, | |||
hi | |||
) | ((lo) <= (v) && (v) < (hi)) |
#define nssv_COMPILER_VERSION | ( | major, | |
minor, | |||
patch | |||
) | (10 * (10 * (major) + (minor)) + (patch)) |
#define nssv_CONFIG_SELECT_STRING_VIEW (nssv_HAVE_STD_STRING_VIEW ? nssv_STRING_VIEW_STD : nssv_STRING_VIEW_NONSTD) |
#define nssv_CPP11_100 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1600) |
#define nssv_CPP11_110 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1700) |
#define nssv_CPP11_120 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1800) |
#define nssv_CPP11_140 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1900) |
#define nssv_CPP11_141 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1910) |
#define nssv_CPP11_90 (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1500) |
#define nssv_CPP11_OR_GREATER (nssv_CPLUSPLUS >= 201103L) |
#define nssv_CPP11_OR_GREATER_ (nssv_CPLUSPLUS >= 201103L) |
#define nssv_CPP14_000 (nssv_CPP14_OR_GREATER) |
#define nssv_CPP14_OR_GREATER (nssv_CPLUSPLUS >= 201402L) |
#define nssv_CPP17_000 (nssv_CPP17_OR_GREATER) |
#define nssv_CPP17_OR_GREATER (nssv_CPLUSPLUS >= 201703L) |
#define nssv_CPP20_OR_GREATER (nssv_CPLUSPLUS >= 202000L) |
#define nssv_CPP98_OR_GREATER (nssv_CPLUSPLUS >= 199711L) |
#define nssv_HAVE_CONSTEXPR_11 nssv_CPP11_140 |
#define nssv_HAVE_CONSTEXPR_14 nssv_CPP14_000 |
#define nssv_HAVE_ENDS_WITH nssv_HAVE_STARTS_WITH |
#define nssv_HAVE_EXPLICIT_CONVERSION nssv_CPP11_140 |
#define nssv_HAVE_INLINE_NAMESPACE nssv_CPP11_140 |
#define nssv_HAVE_NODISCARD nssv_CPP17_000 |
#define nssv_HAVE_NOEXCEPT nssv_CPP11_140 |
#define nssv_HAVE_NULLPTR nssv_CPP11_100 |
#define nssv_HAVE_REF_QUALIFIER nssv_CPP11_140 |
#define nssv_HAVE_STARTS_WITH (nssv_CPP20_OR_GREATER || !nssv_USES_STD_STRING_VIEW) |
#define nssv_HAVE_STD_DEFINED_LITERALS nssv_CPP11_140 |
#define nssv_HAVE_STD_HASH nssv_CPP11_120 |
#define nssv_HAVE_UNICODE_LITERALS nssv_CPP11_140 |
#define nssv_HAVE_USER_DEFINED_LITERALS nssv_CPP11_140 |
#define nssv_HAVE_WCHAR16_T nssv_CPP11_100 |
#define nssv_HAVE_WCHAR32_T nssv_CPP11_100 |
nssv_RESTORE_WARNINGS | ( | ) |
#define nssv_STRINGIFY | ( | x | ) | nssv_STRINGIFY_(x) |
#define nssv_USES_STD_STRING_VIEW |
#define string_view_lite_VERSION |
nssv_DISABLE_MSVC_WARNINGS | ( | 4455 26481 | 26472 | ) |
Definition at line 465 of file inja.hpp.
References disinfect::a, c, disinfect::count, navar-midane_time::data, convert::dest, empty, say::max, nssv_constexpr, nssv_constexpr14, nssv_nodiscard, nssv_noexcept, nssv_nullptr, nlohmann::detail::operator<(), operator<<(), rotate-tower::result, inja::string_view::starts_with(), nonstd::sv_lite::to_string(), and nlohmann::detail::void().