#include <astl.h> #include <dfa.h> #include <cursor.h> #include <hash.h> #include <iostream> #include <cassert> #include <string> int main() { DFA_matrix<plain, hash_tag> A; make_hash(A); const char *word = ``word''; std::cout << hash_value(forwardc(A), word, word + 4) << std::endl; std::string s; value_hash(forwardc(A), 14, std::back_inserter(s)); }