aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/tt_parser.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-16 19:29:46 -0400
committerPaul Gilbert2016-07-15 19:12:02 -0400
commite16239e21fb1893e700f1a11bbc251d9915c03a7 (patch)
treefe672421a424931e1e3decabb4b90566e39ba634 /engines/titanic/true_talk/tt_parser.h
parente1ba9672330802c458aebd7049e8ae3f4b23f9ca (diff)
downloadscummvm-rg350-e16239e21fb1893e700f1a11bbc251d9915c03a7.tar.gz
scummvm-rg350-e16239e21fb1893e700f1a11bbc251d9915c03a7.tar.bz2
scummvm-rg350-e16239e21fb1893e700f1a11bbc251d9915c03a7.zip
TITANIC: Implemented parser replaceNumbers sub-methods
Diffstat (limited to 'engines/titanic/true_talk/tt_parser.h')
-rw-r--r--engines/titanic/true_talk/tt_parser.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/titanic/true_talk/tt_parser.h b/engines/titanic/true_talk/tt_parser.h
index 1eed38d515..22a2850516 100644
--- a/engines/titanic/true_talk/tt_parser.h
+++ b/engines/titanic/true_talk/tt_parser.h
@@ -67,6 +67,16 @@ private:
* @returns Index of the start of the following word
*/
static int searchAndReplace(TTstring &line, int startIndex, const StringArray &strings);
+
+ /**
+ * Checks the string starting at a given index for a number representation
+ * such as roman numericals, spelled out numbers, etc. and replaces it with
+ * a plain decimal representation.
+ * @param line Line to check
+ * @param startIndex Starting index in the start to check
+ * @returns True if end of line hasn't been reached yet
+ */
+ static bool replaceNumbers(TTstring &line, int *startIndex);
public:
CScriptHandler *_owner;
int _field4;