diff options
author | John Fultz <jfultz@wolfram.com> | 2015-08-24 00:51:48 -0500 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2015-08-24 00:51:48 -0500 |
commit | d1f5f768764d439f02520d9c6c017fcd3ae96b83 (patch) | |
tree | e54e047c16bbb0da22b3978cdbbe9b3f86f7add0 /fixedstring.h | |
parent | 5e5d414c57d5c7dd8a3037dda1555db5fb7eb486 (diff) |
Add a new DAWG format.
Make reader and writer for the new format, while
maintaing compatibility with the old. Things to
note of the new format...
* Now has a header, with version number, MD5, and word count.
* No longer has terminator bit. Nodes are terminated by
a non-zero playability.
* Which means letters have one more bit. So we can now
support more than 32 letters. Important for Slovak alphabet.
Also, various cleanups and refactorings.
Diffstat (limited to 'fixedstring.h')
-rw-r--r-- | fixedstring.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fixedstring.h b/fixedstring.h index 46d1011..e8db0bf 100644 --- a/fixedstring.h +++ b/fixedstring.h @@ -54,6 +54,7 @@ class FixedLengthString size_type size() const { return length(); } void clear() { m_end = m_data; } void push_back(char c); + const char* constData() const { return m_data; } int compare(const FixedLengthString& s) const; |