summaryrefslogtreecommitdiffstats
path: root/src/codecs/qeucjpcodec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/codecs/qeucjpcodec.cpp')
-rw-r--r--src/codecs/qeucjpcodec.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/codecs/qeucjpcodec.cpp b/src/codecs/qeucjpcodec.cpp
index 7d9ab92..ca3d465 100644
--- a/src/codecs/qeucjpcodec.cpp
+++ b/src/codecs/qeucjpcodec.cpp
@@ -302,10 +302,10 @@ int QEucJpCodec::heuristicNameMatch(const char* hint) const
{
int score = 0;
bool ja = FALSE;
- if (tqstrnicmp(hint, "ja_JP", 5) == 0 || tqstrnicmp(hint, "japan", 5) == 0) {
+ if (qstrnicmp(hint, "ja_JP", 5) == 0 || qstrnicmp(hint, "japan", 5) == 0) {
score += 3;
ja = TRUE;
- } else if (tqstrnicmp(hint, "ja", 2) == 0) {
+ } else if (qstrnicmp(hint, "ja", 2) == 0) {
score += 2;
ja = TRUE;
}
@@ -320,16 +320,16 @@ int QEucJpCodec::heuristicNameMatch(const char* hint) const
p = hint;
}
if (p) {
- if ((tqstricmp(p, "AJEC") == 0) ||
- (tqstricmp(p, "eucJP") == 0) ||
- (tqstricmp(p, "ujis") == 0) ||
+ if ((qstricmp(p, "AJEC") == 0) ||
+ (qstricmp(p, "eucJP") == 0) ||
+ (qstricmp(p, "ujis") == 0) ||
(simpleHeuristicNameMatch(p, "eucJP") > 0) ||
(simpleHeuristicNameMatch(p, "x-euc-jp") > 0)) {
return score + 4;
}
// there exists ja_JP.EUC, ko_KR.EUC, zh_CN.EUC and zh_TW.EUC
// so "euc" may or may not be Japanese EUC.
- if (tqstricmp(p, "euc") == 0 && ja) {
+ if (qstricmp(p, "euc") == 0 && ja) {
return score + 4;
}
}