5 namespace tdc {
namespace esp {
6 template<
typename Source,
typename F>
8 for(
size_t j = i; j < src.size() - 1; j++) {
9 if (!f(src[j], src[j + 1])) {
10 return j + (max ? 1 : 0);
16 template<
typename round_view_t>
21 for (
size_t i = 0; i < src.size();) {
26 j =
split_where(src, i, !ctx.behavior_metablocks_maximimze_repeating,
27 [](
size_t a,
size_t b){ return a != b; });
29 auto s = src.slice(i, j);
31 auto mb = debug.metablock();
41 j =
split_where(src, i, ctx.behavior_metablocks_maximimze_repeating,
42 [](
size_t a,
size_t b){ return a == b; });
44 auto s = src.slice(i, j);
46 auto mb = debug.metablock();
Contains the text compression and encoding framework.
void eager_mb2(const Source &src)
size_t split_where(const Source &src, size_t i, bool max, F f)
void eager_mb13(const Source &src, size_t t)