#include "dawg.h"
#include "host.h"
#include "tesscallback.h"
#include "trie.h"
#include "unicharset.h"
Go to the source code of this file.
Function Documentation
Definition at line 28 of file dawg2wordlist.cpp.
{
FILE *dawg_file = fopen(
filename,
"rb");
}
kDictDebugLevel);
fclose(dawg_file);
return retval;
}
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 70 of file dawg2wordlist.cpp.
{
if (argc != 4) {
tprintf(
"Print all the words in a given dawg.\n");
tprintf(
"Usage: %s <unicharset> <dawgfile> <wordlistfile>\n",
argv[0]);
return 1;
}
const char *unicharset_file = argv[1];
const char *dawg_file = argv[2];
const char *wordlist_file = argv[3];
tprintf(
"Error loading unicharset from %s.\n", unicharset_file);
return 1;
}
tprintf(
"Error loading dictionary from %s.\n", dawg_file);
return 1;
}
delete dict;
return retval;
}
Definition at line 54 of file dawg2wordlist.cpp.
{
FILE *out = fopen(outfile_name, "wb");
tprintf(
"Could not open %s for writing.\n", outfile_name);
return 1;
}
delete print_word_cb;
return fclose(out);
}
Variable Documentation
const int kDictDebugLevel = 1 |