labs-edaf30/lab2/word.h
Sven Gestegard Robertz e4df45f4a9 imported lab skeletons
2021-10-27 15:39:22 +02:00

21 lines
445 B
C++

#ifndef WORD_H
#define WORD_H
#include <string>
#include <vector>
class Word {
public:
/* Creates a word w with the sorted trigrams t */
Word(const std::string& w, const std::vector<std::string>& t);
/* Returns the word */
std::string get_word() const;
/* Returns how many of the trigrams in t that are present
in this word's trigram vector */
unsigned int get_matches(const std::vector<std::string>& t) const;
private:
};
#endif