Template Function noLZSS::factorize_stream
Defined in File factorizer.cpp
Function Documentation
-
template<class Sink>
size_t noLZSS::factorize_stream(std::string_view text, Sink &&sink) Factorizes a text string using the noLZSS algorithm.
This is a template function that provides the core factorization functionality for in-memory text. It builds a compressed suffix tree and applies the noLZSS algorithm to find all factors.
See also
factorize() for the non-template version that returns a vector
Note
This function copies the input string for suffix tree construction
Note
For large inputs, consider using factorize_file_stream() instead
- Template Parameters:
Sink – Callable type that accepts Factor objects
- Parameters:
text – Input text string
sink – Callable that receives each computed factor
- Returns:
Number of factors emitted