From 41bb408dde90e755b07cd2ab8a9bdec7548c84b0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 28 Feb 2012 22:31:39 -0600 Subject: Automated conversion from qt3 --- src/codecs/qjiscodec.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/codecs/qjiscodec.cpp') diff --git a/src/codecs/qjiscodec.cpp b/src/codecs/qjiscodec.cpp index 5f5afbb9b..9f125a33d 100644 --- a/src/codecs/qjiscodec.cpp +++ b/src/codecs/qjiscodec.cpp @@ -387,17 +387,17 @@ const char* TQJisCodec::mimeName() const /*! \internal */ int TQJisCodec::heuristicNameMatch(const char* hint) const { - if ( qstrnicmp( hint, "ISO-2022-JP", 11 ) == 0 ) + if ( tqstrnicmp( hint, "ISO-2022-JP", 11 ) == 0 ) return 10000; if ( simpleHeuristicNameMatch( "ISO-2022-JP-2", hint ) > 0 ) return 10; int score = 0; bool ja = FALSE; - if (qstrnicmp(hint, "ja_JP", 5) == 0 || qstrnicmp(hint, "japan", 5) == 0) { + if (tqstrnicmp(hint, "ja_JP", 5) == 0 || tqstrnicmp(hint, "japan", 5) == 0) { score += 3; ja = TRUE; - } else if (qstrnicmp(hint, "ja", 2) == 0) { + } else if (tqstrnicmp(hint, "ja", 2) == 0) { score += 2; ja = TRUE; } @@ -412,8 +412,8 @@ int TQJisCodec::heuristicNameMatch(const char* hint) const p = hint; } if (p) { - if ((qstricmp(p, "JIS") == 0) || - (qstricmp(p, "JIS7") == 0) || + if ((tqstricmp(p, "JIS") == 0) || + (tqstricmp(p, "JIS7") == 0) || (simpleHeuristicNameMatch("ISO-2022-JP", p) > 0)) { return score + 4; } -- cgit v1.2.1