From e16239e21fb1893e700f1a11bbc251d9915c03a7 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 16 May 2016 19:29:46 -0400 Subject: TITANIC: Implemented parser replaceNumbers sub-methods --- engines/titanic/true_talk/tt_parser.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engines/titanic/true_talk/tt_parser.h') 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; -- cgit v1.2.3