25 "lpsm::ArgVec2::ArgVec2(): min and max set to (",
29 "), expected both >= 0. If "
30 "this is intentional,"
31 "use another method to generate random numbers "
48 std::uniform_int_distribution<int> dist(
min,
max);
51 std::uniform_int_distribution<int> dist(
max,
min);
55#ifndef LIPSUM_MIN_BUILD
58 if (format == Format::Plain)
64 auto xmlLogic = [&]() -> std::string
95 auto jsonLogic = [&]() -> std::string
122 auto mdLogic = [&]() -> std::string
124 static const std::vector<char> chars = {
'\\',
139 for (
const auto& let : chars)
143 return std::string(
"\\") + std::string(1, let);
160 case Format::Markdown:
167 "lpsm::internal::HandleHTMLEntity(): Format "
169 static_cast<int>(format),
170 " is out of range.");
Declaration of lipsum::internal.
void LogWarn(LogType type, const Args &... args)
Log a warning.
Definition internal.hpp:126
LIPSUM_API std::string HandleHTMLEntity(char letter, Format format=Format::HTML)
Handle HTML entities.
Definition argvec2.inl:56
This is the main namespace of lipsum-cpp.
Format
Types of formats.
Definition misc.hpp:33
int max
The maximum value.
Definition argvec2.hpp:56
int min
The minimum value.
Definition argvec2.hpp:55
ArgVec2(int min, int max)
Constructor for ArgVec2.
Definition argvec2.inl:20
int roll(std::mt19937 &gen, bool lazy=false) const
Return a number between min and max.
Definition argvec2.inl:39