13 Meta m(
"generator",
"run_rich",
"Generates run-rich strings.");
19 std::string t0 =
"0110101101001011010",
21 t2 =
"01101011010010110101101",
28 for(
size_t i = 4; i < n; ++i) {
29 std::string tmp = (i % 3 == 0) ? (t3+t2) : (t3+t0);
39 using Generator::Generator;
41 inline virtual std::string
generate()
override {
Contains the text compression and encoding framework.
Env & env()
Provides access to the environment that the algorithm works in.
Base for string generators.
Generates strings according to A Series of Run-Rich Strings (Wataru Matsubara et al.)
static std::string generate(size_t n)
virtual std::string generate() override
Generates a string based on the environment settings.