|
| | Dictionary (const string &dictfile) |
| | Creates a dictionary from a given file using the string name of the file in the same directory. More...
|
| |
| void | debugStats (std::ostream &out) |
| | calls the TreeStringSet showStatistics function on the dictionary More...
|
| |
| void | checkSpelling (std::istream &in) |
| | checks the spelling of each word and provides suggestions for words spelled incorrectly More...
|
| |
|
| string | suggestSpelling (string checkee) |
| | Private helper function, returns a string with the item being checked and the possible suggestions. More...
|
| |
| Dictionary::Dictionary |
( |
const string & |
dictfile | ) |
|
Creates a dictionary from a given file using the string name of the file in the same directory.
- Returns
- Constructor does not return anything, but creates the dictionary.
- Parameters
-
| dictfile | Name of dictionary file. |
| void Dictionary::checkSpelling |
( |
std::istream & |
in | ) |
|
checks the spelling of each word and provides suggestions for words spelled incorrectly
- Parameters
-
| void Dictionary::debugStats |
( |
std::ostream & |
out | ) |
|
calls the TreeStringSet showStatistics function on the dictionary
- Parameters
-
| out | Stream to which the function should send to |
| string Dictionary::suggestSpelling |
( |
string |
checkee | ) |
|
|
private |
Private helper function, returns a string with the item being checked and the possible suggestions.
- Returns
- String in format checkee: suggestion1 sugestion 2 ...
- Parameters
-
| checkee | String to be checked |
The documentation for this class was generated from the following files: