Beispiel #1
0
void assimilate_text_chars(string txt, Store &s, int order){
	string chars;
	queue<string> seq;
	for (int i = 0; i < txt.length(); i++){
		seq = get_seq_char(txt, i, order);
		s.add_hits(seq, 1);
	}
	cerr << "ok" << endl;
}
Beispiel #2
0
void assimilate_text(string txt, Store &s, int order){
	string chars;
	queue<string> seq;
	vector<string> tab = split(txt);
	for (int i = 0; i < tab.size(); i++){
		seq = get_seq(tab, i, order);
		s.add_hits(seq, 1);
	}
	cerr << "ok" << endl;
}