aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2017-02-25 21:40:29 +0100
committerEugene Sandulenko2017-02-25 21:44:01 +0100
commit27a0f433338726dd486c5c8be0ad60ba587aeaa1 (patch)
tree17ebef213b16b1f15f71c7a195be15e59e8c2f43 /engines/director/lingo/lingo.cpp
parent16d21cd0ff7fa200664fb75b915da015cccc8a48 (diff)
downloadscummvm-rg350-27a0f433338726dd486c5c8be0ad60ba587aeaa1.tar.gz
scummvm-rg350-27a0f433338726dd486c5c8be0ad60ba587aeaa1.tar.bz2
scummvm-rg350-27a0f433338726dd486c5c8be0ad60ba587aeaa1.zip
DIRECTOR: Move utility functions to util.cpp
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r--engines/director/lingo/lingo.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp
index ffbbdab933..5775eb13bc 100644
--- a/engines/director/lingo/lingo.cpp
+++ b/engines/director/lingo/lingo.cpp
@@ -438,48 +438,6 @@ const char *Datum::type2str(bool isk) {
}
}
-// This is table for built-in Macintosh font lowercasing.
-// '.' means that the symbol should be not changed, rest
-// of the symbols are stripping the diacritics
-// The table starts from 0x80
-//
-// TODO: Check it for correctness.
-static char lowerCaseConvert[] =
-"aacenoua" // 80
-"aaaaacee" // 88
-"eeiiiino" // 90
-"oooouuuu" // 98
-"........" // a0
-".......o" // a8
-"........" // b0
-".......o" // b8
-"........" // c0
-".. aao.." // c8
-"--.....y";// d0-d8
-
-Common::String *Lingo::toLowercaseMac(Common::String *s) {
- Common::String *res = new Common::String;
- const unsigned char *p = (const unsigned char *)s->c_str();
-
- while (*p) {
- if (*p >= 0x80 && *p <= 0xd8) {
- if (lowerCaseConvert[*p - 0x80] != '.')
- *res += lowerCaseConvert[*p - 0x80];
- else
- *res += *p;
- } else if (*p < 0x80) {
- *res += tolower(*p);
- } else {
- warning("Unacceptable symbol in toLowercaseMac: %c", *p);
-
- *res += *p;
- }
- p++;
- }
-
- return res;
-}
-
void Lingo::parseMenu(const char *code) {
warning("STUB: parseMenu");
}