diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-05 09:16:19 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-05 09:16:19 +0900 |
| commit | d9f24c630d3a86190017de303bc5750e532cdb61 (patch) | |
| tree | 50ef1ae6ea0187fbbe258f0d73388fc93508eeec /src/codecs/tqhebrewcodec.cpp | |
| parent | 4d495175043c399fdca6e1bb4c74ef176fc76fb4 (diff) | |
| download | tqt-d9f24c630d3a86190017de303bc5750e532cdb61.tar.gz tqt-d9f24c630d3a86190017de303bc5750e532cdb61.zip | |
Replace TRUE/FALSE with boolean values true/false - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/codecs/tqhebrewcodec.cpp')
| -rw-r--r-- | src/codecs/tqhebrewcodec.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/codecs/tqhebrewcodec.cpp b/src/codecs/tqhebrewcodec.cpp index 0140117b0..928dc0035 100644 --- a/src/codecs/tqhebrewcodec.cpp +++ b/src/codecs/tqhebrewcodec.cpp @@ -82,51 +82,51 @@ static const uchar unicode_to_heb_05[32] = { static bool to8bit(const TQChar ch, TQCString *rstr) { - bool converted = FALSE; + bool converted = false; - if( ch.isMark() ) return TRUE; // ignore marks for conversion + if( ch.isMark() ) return true; // ignore marks for conversion if ( ch.row() ) { if ( ch.row() == 0x05 ) { if ( ch.cell() > 0x91 ) - converted = TRUE; + converted = true; // 0x0591 - 0x05cf: Hebrew punctuation... dropped if ( ch.cell() >= 0xD0 ) *rstr += (char)unicode_to_heb_05[ch.cell()- 0xD0]; } else if ( ch.row() == 0x20 ) { if ( ch.cell() == 0x3E ) { *rstr += (char)0xAF; - converted = TRUE; + converted = true; } else if ( ch.cell() == 0x17 ) { *rstr += (char)0xCF; - converted = TRUE; + converted = true; } } else { - converted = FALSE; + converted = false; } } else { if ( ch.cell() < 0x80 ) { *rstr += (char)ch.cell(); - converted = TRUE; + converted = true; } else if( ch.cell() < 0xA0 ) { *rstr += (char)unicode_to_heb_00[ch.cell() - 0x80]; - converted = TRUE; + converted = true; } } - if(converted) return TRUE; + if(converted) return true; // couldn't convert the char... lets try its decomposition TQString d = ch.decomposition(); if(d.isNull()) - return FALSE; + return false; int l = d.length(); for (int i=0; i<l; i++) { const TQChar ch = d[i]; if(to8bit(ch, rstr)) - converted = TRUE; + converted = true; } return converted; |
