diff options
Diffstat (limited to 'src/codecs/tqjiscodec.cpp')
| -rw-r--r-- | src/codecs/tqjiscodec.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/codecs/tqjiscodec.cpp b/src/codecs/tqjiscodec.cpp index beb5863c3..b3be343f2 100644 --- a/src/codecs/tqjiscodec.cpp +++ b/src/codecs/tqjiscodec.cpp @@ -393,13 +393,13 @@ int TQJisCodec::heuristicNameMatch(const char* hint) const return 10; int score = 0; - bool ja = FALSE; + bool ja = false; if (tqstrnicmp(hint, "ja_JP", 5) == 0 || tqstrnicmp(hint, "japan", 5) == 0) { score += 3; - ja = TRUE; + ja = true; } else if (tqstrnicmp(hint, "ja", 2) == 0) { score += 2; - ja = TRUE; + ja = true; } const char *p; if (ja) { @@ -558,7 +558,7 @@ class TQJisDecoder : public TQTextDecoder { bool esc; const TQJpUnicodeConv * const conv; public: - TQJisDecoder(const TQJpUnicodeConv *c) : nbuf(0), state(Ascii), prev(Ascii), esc(FALSE), conv(c) + TQJisDecoder(const TQJpUnicodeConv *c) : nbuf(0), state(Ascii), prev(Ascii), esc(false), conv(c) { } @@ -576,7 +576,7 @@ public: buf[nbuf++] = ch; } else { nbuf = 0; - esc = FALSE; + esc = false; } break; case 1: @@ -593,7 +593,7 @@ public: break; } nbuf = 0; - esc = FALSE; + esc = false; } } else { if (buf[0] == '(') { @@ -610,7 +610,7 @@ public: } } nbuf = 0; - esc = FALSE; + esc = false; } break; case 2: @@ -622,14 +622,14 @@ public: } } nbuf = 0; - esc = FALSE; + esc = false; break; } } else { if (ch == Esc) { // Escape sequence nbuf = 0; - esc = TRUE; + esc = true; } else if (ch == So) { // Shift out prev = state; |
