Initial import of Dillo

This commit is contained in:
2025-02-28 13:34:30 -05:00
parent bd4e3eebd8
commit 20fea64cb5
496 changed files with 156174 additions and 0 deletions

14
test/unit/trie.cc Normal file
View File

@ -0,0 +1,14 @@
#include "dw/hyphenator.hh"
int main (int argc, char *argv[])
{
if (argc < 2) {
fprintf(stderr, "Usage: trie <pattern file>\n");
exit (1);
}
/* Use pack = 1024 to create a really small trie - can take a while.
*/
dw::Hyphenator hyphenator (argv[1], NULL, 1024);
hyphenator.saveTrie (stdout);
}