summaryrefslogtreecommitdiff
path: root/quackleio
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2015-09-28 13:00:57 -0500
committerJohn Fultz <jfultz@wolfram.com>2015-09-28 13:00:57 -0500
commit81554a201cc5e0748110add6eca05cc16c18850c (patch)
tree75fcfd2b3c32befec1ec31435b731f84c9b48646 /quackleio
parent03b9132b3f540bfb3713400774a9bfb832b200b2 (diff)
Now able to load text and dawg files.
Words are loaded and hashed. Duplicates are discovered. Alphabets are dealt with. Merging of multiple word lists works. This is good stuff. Saving the resulting dictionaries has not been tried, yet, and the gui code for saving needs to be finished off, yet.
Diffstat (limited to 'quackleio')
-rw-r--r--quackleio/dawgfactory.cpp4
-rw-r--r--quackleio/dawgfactory.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/quackleio/dawgfactory.cpp b/quackleio/dawgfactory.cpp
index 565778a..e7ada85 100644
--- a/quackleio/dawgfactory.cpp
+++ b/quackleio/dawgfactory.cpp
@@ -25,10 +25,10 @@
#include "util.h"
-DawgFactory::DawgFactory(const UVString& alphabetFile)
+DawgFactory::DawgFactory(const QString &alphabetFile)
{
QuackleIO::FlexibleAlphabetParameters *flexure = new QuackleIO::FlexibleAlphabetParameters;
- flexure->load(QuackleIO::Util::uvStringToQString(alphabetFile));
+ flexure->load(alphabetFile);
m_alphas = flexure;
m_root.insmallerdict = false;
diff --git a/quackleio/dawgfactory.h b/quackleio/dawgfactory.h
index 2a55461..1a1aa7d 100644
--- a/quackleio/dawgfactory.h
+++ b/quackleio/dawgfactory.h
@@ -26,7 +26,7 @@
class DawgFactory {
public:
- DawgFactory(const UVString& alphabetFile);
+ DawgFactory(const QString &alphabetFile);
~DawgFactory();
int wordCount() const { return m_root.wordCount(); };