Function ADS::overlap

Function Documentation

inline int ADS::overlap(const std::string &a, const std::string &b)

the length of the longest suffix of a that is a prefix of b, at most min( |a| , |b| ): the whole of b if a ends with it, 0 if either is empty