50 Source(
const std::string& path);
65 void load([[maybe_unused]]
const std::string& path);
82 [[nodiscard]] std::string
random_word(std::mt19937& gen,
89 std::vector<std::string>
Source()=default
Default constructor.
std::string currentLoaded
Definition source.hpp:87
std::string random_word(std::mt19937 &gen, bool lazy=false)
Select a random word.
Definition source.inl:40
std::vector< std::string > m_Words
The internal list of words stored.
Definition source.hpp:90
void load(const std::string &path)
Load a source and fill the vector.
Definition source.inl:57
Core macros for lipsum-cpp.
#define LIPSUM_API
Macro for shared libraries.
Definition core.hpp:71
This is the main namespace of lipsum-cpp.