diff options
| -rw-r--r-- | engines/titanic/true_talk/tt_parser.cpp | 4 | ||||
| -rw-r--r-- | engines/titanic/true_talk/tt_parser.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/engines/titanic/true_talk/tt_parser.cpp b/engines/titanic/true_talk/tt_parser.cpp index 2d958f8d7a..0bb30a14b5 100644 --- a/engines/titanic/true_talk/tt_parser.cpp +++ b/engines/titanic/true_talk/tt_parser.cpp @@ -69,7 +69,7 @@ int TTparser::normalize(TTinput *input) { break; case '\'': - if (!normalizeQuotedString(srcLine, index, *destLine)) + if (!normalizeContraction(srcLine, index, *destLine)) flag = true; break; @@ -165,7 +165,7 @@ int TTparser::isSpecialCommand(const TTstring &str, int &index) { } } -bool TTparser::normalizeQuotedString(const TTstring &srcLine, int srcIndex, TTstring &destLine) { +bool TTparser::normalizeContraction(const TTstring &srcLine, int srcIndex, TTstring &destLine) { // TODO return false; } diff --git a/engines/titanic/true_talk/tt_parser.h b/engines/titanic/true_talk/tt_parser.h index d05835dd4c..3e31257c9d 100644 --- a/engines/titanic/true_talk/tt_parser.h +++ b/engines/titanic/true_talk/tt_parser.h @@ -38,9 +38,10 @@ private: int normalize(TTinput *input); /** - * Submethod called by normalize to handle text following single quote chracters + * Submethod called by normalize to handle expanding contacted word pairs + * like can't, should've, and so on. */ - bool normalizeQuotedString(const TTstring &srcLine, int srcIndex, TTstring &destLine); + bool normalizeContraction(const TTstring &srcLine, int srcIndex, TTstring &destLine); /** * Checks for what is likely special developer cheat codes |
