diff options
author | Paul Gilbert | 2016-05-16 23:13:24 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:12:39 -0400 |
commit | 361ac2cfe4c6e778ad5eeafac94bbc6927aeaf1b (patch) | |
tree | 575b3b4b7ef0caebb831d4f9b80fa3e656bebef1 /engines/titanic/true_talk/tt_parser.h | |
parent | 3878f38d8c76f2289be1f53bbecf9cda95e43067 (diff) | |
download | scummvm-rg350-361ac2cfe4c6e778ad5eeafac94bbc6927aeaf1b.tar.gz scummvm-rg350-361ac2cfe4c6e778ad5eeafac94bbc6927aeaf1b.tar.bz2 scummvm-rg350-361ac2cfe4c6e778ad5eeafac94bbc6927aeaf1b.zip |
TITANIC: Implemented secondary replaceNumbers method
Diffstat (limited to 'engines/titanic/true_talk/tt_parser.h')
-rw-r--r-- | engines/titanic/true_talk/tt_parser.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/engines/titanic/true_talk/tt_parser.h b/engines/titanic/true_talk/tt_parser.h index 7e4e97f1ff..171c91d470 100644 --- a/engines/titanic/true_talk/tt_parser.h +++ b/engines/titanic/true_talk/tt_parser.h @@ -28,7 +28,7 @@ namespace Titanic { -enum NumberFlag { NF_2 = 2, NF_8 = 8, NF_10 = 0x10 }; +enum NumberFlag { NF_1 = 1, NF_2 = 2, NF_4 = 4, NF_8 = 8, NF_10 = 0x10 }; class CScriptHandler; @@ -94,6 +94,16 @@ private: 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 Index of the start of the following word, or -1 if at end of line + */ + int replaceNumbers(TTstring &line, int startIndex); + + /** * 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. @@ -101,7 +111,7 @@ private: * @param startIndex Starting index in the start to check * @returns Pointer to matching number entry, if match occurred */ - const NumberEntry *replaceNumbers(TTstring &line, int *startIndex); + const NumberEntry *replaceNumbers2(TTstring &line, int *startIndex); public: CScriptHandler *_owner; int _field4; |