9#include <string/LinearString.h>
23 template <
class SymbolType >
27template <
class SymbolType >
29 const auto& x =
string.getContent();
30 size_t maxlen = 0 , first = 0 ,
second = 0 ;
31 for (
size_t i = 0 ;
i < x.size() ; ++
i ) {
32 for (
size_t j =
i + 1 ; j < x.size() ; ++ j ) {
34 while (
i + k < j && j + k < x.size() && x[
i + k] == x[j + k]) ++ k ;
Class extending the tuple class from the standard library. Original reason is to allow printing of th...
Definition: tuple.hpp:42
Linear string.
Definition: LinearString.h:57
Definition: Repetition.h:15
static ext::tuple< size_t, size_t, size_t > construct(const string::LinearString< SymbolType > &string)
Definition: Repetition.h:28
p second
Definition: ToRegExpAlgebraic.h:126
int i
Definition: AllEpsilonClosure.h:118
constexpr auto make_tuple(Elements &&... args)
Helper of extended tuple construction. The tuple is constructed from values pack, types are deduced.
Definition: tuple.hpp:203
Definition: RandomStringFactory.cpp:12