diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-08-10 16:15:11 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-08-10 16:15:11 -0400 |
commit | e6c087fb6c631d5acf16536356ebe5a72967c9b0 (patch) | |
tree | 69dc3215baa3330c76c016419f12f8498dbf3b05 /lib/pronunciation.cpp | |
parent | 494e19b3c27e6a1eb63b39c245ad4024702e883b (diff) | |
download | verbly-e6c087fb6c631d5acf16536356ebe5a72967c9b0.tar.gz verbly-e6c087fb6c631d5acf16536356ebe5a72967c9b0.tar.bz2 verbly-e6c087fb6c631d5acf16536356ebe5a72967c9b0.zip |
Replaced some split/implode uses with hkutil
Diffstat (limited to 'lib/pronunciation.cpp')
-rw-r--r-- | lib/pronunciation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pronunciation.cpp b/lib/pronunciation.cpp index fa471ec..1f36899 100644 --- a/lib/pronunciation.cpp +++ b/lib/pronunciation.cpp | |||
@@ -1,8 +1,8 @@ | |||
1 | #include "pronunciation.h" | 1 | #include "pronunciation.h" |
2 | #include <sqlite3.h> | 2 | #include <sqlite3.h> |
3 | #include <hkutil/string.h> | ||
3 | #include "form.h" | 4 | #include "form.h" |
4 | #include "word.h" | 5 | #include "word.h" |
5 | #include "util.h" | ||
6 | 6 | ||
7 | namespace verbly { | 7 | namespace verbly { |
8 | 8 | ||
@@ -27,7 +27,7 @@ namespace verbly { | |||
27 | id_ = sqlite3_column_int(row, 0); | 27 | id_ = sqlite3_column_int(row, 0); |
28 | 28 | ||
29 | std::string phonemesStr(reinterpret_cast<const char*>(sqlite3_column_text(row, 1))); | 29 | std::string phonemesStr(reinterpret_cast<const char*>(sqlite3_column_text(row, 1))); |
30 | phonemes_ = split<std::vector<std::string>>(phonemesStr, " "); | 30 | phonemes_ = hatkirby::split<std::vector<std::string>>(phonemesStr, " "); |
31 | 31 | ||
32 | syllables_ = sqlite3_column_int(row, 2); | 32 | syllables_ = sqlite3_column_int(row, 2); |
33 | stress_ = std::string(reinterpret_cast<const char*>(sqlite3_column_text(row, 3))); | 33 | stress_ = std::string(reinterpret_cast<const char*>(sqlite3_column_text(row, 3))); |