summaryrefslogtreecommitdiffstats
path: root/qtinterface/interface_tqt3/tqtextcodec.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-02 02:11:27 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-02 02:11:27 -0600
commit67ac950eb8660dc7f455640ffe77fd36b2fa44af (patch)
tree025f297b116786a8df77f42a264eaec5ec34be94 /qtinterface/interface_tqt3/tqtextcodec.cpp
parent9ba1ac7f1c73233eb133f35babbcbb7f89dabb50 (diff)
downloadtqtinterface-67ac950eb8660dc7f455640ffe77fd36b2fa44af.tar.gz
tqtinterface-67ac950eb8660dc7f455640ffe77fd36b2fa44af.zip
Undo prior accidental commit
Diffstat (limited to 'qtinterface/interface_tqt3/tqtextcodec.cpp')
-rw-r--r--qtinterface/interface_tqt3/tqtextcodec.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/qtinterface/interface_tqt3/tqtextcodec.cpp b/qtinterface/interface_tqt3/tqtextcodec.cpp
index 6bb5b72..2333405 100644
--- a/qtinterface/interface_tqt3/tqtextcodec.cpp
+++ b/qtinterface/interface_tqt3/tqtextcodec.cpp
@@ -128,15 +128,15 @@ public:
char comm='%';
bool incmap = FALSE;
while (iod->readLine(line,maxlen) > 0) {
- if (0==tqstrnicmp(line,"<code_set_name>",15))
+ if (0==qstrnicmp(line,"<code_set_name>",15))
n = line+15;
- else if (0==tqstrnicmp(line,"<escape_char> ",14))
+ else if (0==qstrnicmp(line,"<escape_char> ",14))
esc = line[14];
- else if (0==tqstrnicmp(line,"<comment_char> ",15))
+ else if (0==qstrnicmp(line,"<comment_char> ",15))
comm = line[15];
- else if (line[0]==comm && 0==tqstrnicmp(line+1," alias ",7)) {
+ else if (line[0]==comm && 0==qstrnicmp(line+1," alias ",7)) {
aliases.append(line+8);
- } else if (0==tqstrnicmp(line,"CHARMAP",7)) {
+ } else if (0==qstrnicmp(line,"CHARMAP",7)) {
if (!from_unicode_page) {
from_unicode_page = new char*[256];
for (int i=0; i<256; i++)
@@ -146,7 +146,7 @@ public:
to_unicode = new ushort[256];
}
incmap = TRUE;
- } else if (0==tqstrnicmp(line,"END CHARMAP",11))
+ } else if (0==qstrnicmp(line,"END CHARMAP",11))
break;
else if (incmap) {
char* cursor = line;
@@ -226,7 +226,7 @@ public:
}
mb[nmb++] = 0;
from_unicode_page_multiByte[ch.row()][ch.cell()]
- = tqstrdup(mb);
+ = qstrdup(mb);
*mb_unicode = unicode;
} else {
from_unicode_page[ch.row()][ch.cell()] = (char)byte;
@@ -492,7 +492,7 @@ int QTextCodec::heuristicNameMatch(const char* hint) const
int QTextCodec::simpleHeuristicNameMatch(const char* name, const char* hint)
{
// if they're the same, return a perfect score.
- if ( name && hint && *name && *hint && tqstricmp( name, hint ) == 0 )
+ if ( name && hint && *name && *hint && qstricmp( name, hint ) == 0 )
return qstrlen( hint );
// if the letters and numbers are the same, we have an "almost"