diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:06:29 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:06:29 -0600 |
commit | 2dd6d32bd821b303aa7b25edda76d1ef7c14b2bf (patch) | |
tree | 9cf20f45e85e8192ae89b22807cf1e82e5012cd9 /src/kvilib/irc | |
parent | f91149819be7e7f45e68f22876f3c0062a11d4b9 (diff) | |
download | kvirc-2dd6d32bd821b303aa7b25edda76d1ef7c14b2bf.tar.gz kvirc-2dd6d32bd821b303aa7b25edda76d1ef7c14b2bf.zip |
Rename obsolete tq methods to standard names
Diffstat (limited to 'src/kvilib/irc')
-rw-r--r-- | src/kvilib/irc/kvi_ircmask.cpp | 58 | ||||
-rw-r--r-- | src/kvilib/irc/kvi_ircuserdb.cpp | 4 | ||||
-rw-r--r-- | src/kvilib/irc/kvi_mirccntrl.cpp | 16 |
3 files changed, 39 insertions, 39 deletions
diff --git a/src/kvilib/irc/kvi_ircmask.cpp b/src/kvilib/irc/kvi_ircmask.cpp index 4552cc93..acc2de83 100644 --- a/src/kvilib/irc/kvi_ircmask.cpp +++ b/src/kvilib/irc/kvi_ircmask.cpp @@ -232,8 +232,8 @@ KviIrcMask::KviIrcMask(const TQString &szMask) if(b) { const TQChar * p = b; - while(p->tqunicode() && (p->tqunicode() != '!'))p++; - if(p->tqunicode()) + while(p->unicode() && (p->unicode() != '!'))p++; + if(p->unicode()) { if(p != b) { @@ -250,8 +250,8 @@ KviIrcMask::KviIrcMask(const TQString &szMask) } p++; b = p; - while(p->tqunicode() && (p->tqunicode() != '@'))p++; - if(p->tqunicode()) + while(p->unicode() && (p->unicode() != '@'))p++; + if(p->unicode()) { if(p != b) { @@ -267,7 +267,7 @@ KviIrcMask::KviIrcMask(const TQString &szMask) } p++; b=p; - while(p->tqunicode())p++; + while(p->unicode())p++; if(p != b) { m_szHost.setUnicode(b,p-b); @@ -291,7 +291,7 @@ bool KviIrcMask::hasNumericHost() const int nPoints = 0; int nDoublePoints = 0; unsigned short uc; - while((uc = p->tqunicode())) + while((uc = p->unicode())) { if(uc == '.')nPoints++; // ipv6 masks can contain dots too! else { @@ -300,9 +300,9 @@ bool KviIrcMask::hasNumericHost() const if((uc < '0') || (uc > '9')) { #ifdef COMPILE_USE_QT4 - uc = p->toUpper().tqunicode(); + uc = p->toUpper().unicode(); #else - uc = p->upper().tqunicode(); + uc = p->upper().unicode(); #endif if((uc < 'A') || (uc > 'F'))return false; } @@ -408,13 +408,13 @@ void KviIrcMask::mask(TQString &szMask,MaskType eMaskType) const break; default: if (m_szUser.length() > 0) { - if(m_szUser[0].tqunicode() != '*') + if(m_szUser[0].unicode() != '*') szMask.append(m_szWild); - if ((m_szUser[0].tqunicode() == '~') || - (m_szUser[0].tqunicode() == '^') || - (m_szUser[0].tqunicode() == '+') || - (m_szUser[0].tqunicode() == '-') || - (m_szUser[0].tqunicode() == '='))szMask.append(m_szUser.right(m_szUser.length() - 1)); + if ((m_szUser[0].unicode() == '~') || + (m_szUser[0].unicode() == '^') || + (m_szUser[0].unicode() == '+') || + (m_szUser[0].unicode() == '-') || + (m_szUser[0].unicode() == '='))szMask.append(m_szUser.right(m_szUser.length() - 1)); else szMask.append(m_szUser); } @@ -614,13 +614,13 @@ bool KviIrcMask::matchesFixed(const TQString &nick,const TQString &user,const TQ int KviIrcMask::getIpDomainMaskLen() const { int len = m_szHost.length(); - const TQChar *p = m_szHost.tqunicode(); + const TQChar *p = m_szHost.unicode(); const TQChar *b = p; p += len; if(b < p) { p--; - while((b < p) && (p->tqunicode() != '.') && (p->tqunicode() != ':'))p--; + while((b < p) && (p->unicode() != '.') && (p->unicode() != ':'))p--; } // 000.000.000.000 // p @@ -632,17 +632,17 @@ int KviIrcMask::getIpDomainMaskLen() const int KviIrcMask::getLargeIpDomainMaskLen() const { int len = m_szHost.length(); - const TQChar *p = m_szHost.tqunicode(); + const TQChar *p = m_szHost.unicode(); const TQChar *b = p; p += len; if(b < p) { p--; - while((b < p) && (p->tqunicode() != '.') && (p->tqunicode() != ':'))p--; + while((b < p) && (p->unicode() != '.') && (p->unicode() != ':'))p--; if(b < p) { p--; - while((b < p) && (p->tqunicode() != '.') && (p->tqunicode() != ':'))p--; + while((b < p) && (p->unicode() != '.') && (p->unicode() != ':'))p--; } } // 000.000.000.000 @@ -657,7 +657,7 @@ TQString KviIrcMask::getHostDomainMask() const const TQChar *p=KviTQString::nullTerminatedArray(m_szHost); if(!p)return TQString(); const TQChar *b = p; - while(p->tqunicode() && p->tqunicode() != '.')p++; + while(p->unicode() && p->unicode() != '.')p++; TQString ret(p,len - (p - b)); return ret; } @@ -666,18 +666,18 @@ TQString KviIrcMask::getHostDomainMask() const TQString KviIrcMask::getLargeHostDomainMask() const { int len = m_szHost.length(); - const TQChar *p = m_szHost.tqunicode(); + const TQChar *p = m_szHost.unicode(); const TQChar *b = p; p += len; if(b < p) { p--; - while((b < p) && (p->tqunicode() != '.'))p--; + while((b < p) && (p->unicode() != '.'))p--; if(b < p) { p--; - while((b < p) && (p->tqunicode() != '.'))p--; + while((b < p) && (p->unicode() != '.'))p--; } } @@ -692,14 +692,14 @@ TQString KviIrcMask::getLargeHostDomainMask() const bool KviIrcMask::hasMaskedIp() const { int len = m_szHost.length(); - const TQChar *p = m_szHost.tqunicode(); + const TQChar *p = m_szHost.unicode(); const TQChar *b = p; if(len == 0)return false; //run to the end p += len; const TQChar *e = p; p--; - while((b < p) && (p->tqunicode() != '.'))p--; + while((b < p) && (p->unicode() != '.'))p--; return ((e - p) > 4); // at the moment 4 should be enough : the largest top part is "name" } @@ -721,7 +721,7 @@ bool KviIrcMask::hasWildNick() const TQChar * aux = KviTQString::nullTerminatedArray(m_szNick); if(!aux)return false; unsigned short uc; - while((uc = aux->tqunicode())) + while((uc = aux->unicode())) { if((uc == '*') || (uc == '?'))return true; aux++; @@ -736,14 +736,14 @@ int KviIrcMask::nonWildChars() if(!aux)return 0; unsigned short uc; - while((uc = aux->tqunicode())) + while((uc = aux->unicode())) { if((uc != '*') && (uc != '?'))iCnt++; aux++; } aux = KviTQString::nullTerminatedArray(m_szUser); - while((uc = aux->tqunicode())) + while((uc = aux->unicode())) { if((uc != '*') && (uc != '?'))iCnt++; aux++; @@ -751,7 +751,7 @@ int KviIrcMask::nonWildChars() aux = KviTQString::nullTerminatedArray(m_szHost); - while((uc = aux->tqunicode())) + while((uc = aux->unicode())) { if((uc != '*') && (uc != '?'))iCnt++; aux++; diff --git a/src/kvilib/irc/kvi_ircuserdb.cpp b/src/kvilib/irc/kvi_ircuserdb.cpp index 7fda2d12..3394b047 100644 --- a/src/kvilib/irc/kvi_ircuserdb.cpp +++ b/src/kvilib/irc/kvi_ircuserdb.cpp @@ -54,9 +54,9 @@ void KviIrcUserEntry::setRealName(const TQString &rn) m_szRealName = KviTQString::trimmed(m_szRealName); if(m_szRealName.length()>=3) { - if( (m_szRealName[0].tqunicode()==KVI_TEXT_COLOR) && (m_szRealName[2].tqunicode()==KVI_TEXT_RESET) ) + if( (m_szRealName[0].unicode()==KVI_TEXT_COLOR) && (m_szRealName[2].unicode()==KVI_TEXT_RESET) ) { - switch(m_szRealName[1].tqunicode()) + switch(m_szRealName[1].unicode()) { case '1': // hum.. encoded as hidden color code eh ? publish is somewhere, so others might implement this... setGender(Male); diff --git a/src/kvilib/irc/kvi_mirccntrl.cpp b/src/kvilib/irc/kvi_mirccntrl.cpp index 21b5258a..e42f3165 100644 --- a/src/kvilib/irc/kvi_mirccntrl.cpp +++ b/src/kvilib/irc/kvi_mirccntrl.cpp @@ -169,7 +169,7 @@ KVILIB_API unsigned int getUnicodeColorBytes(const TQString &szData,unsigned int return charIdx; } - unsigned short c = szData[(int)charIdx].tqunicode(); + unsigned short c = szData[(int)charIdx].unicode(); //First we can have a digit or a coma if(((c < '0') || (c > '9'))) @@ -189,7 +189,7 @@ KVILIB_API unsigned int getUnicodeColorBytes(const TQString &szData,unsigned int return charIdx; } - c = szData[(int)charIdx].tqunicode(); + c = szData[(int)charIdx].unicode(); if(((c < '0') || (c > '9')) && (c != ',')) { @@ -207,7 +207,7 @@ KVILIB_API unsigned int getUnicodeColorBytes(const TQString &szData,unsigned int (*byte_2)=KVI_NOCHANGE; return charIdx; } - c = szData[(int)charIdx].tqunicode(); + c = szData[(int)charIdx].unicode(); } if(c == ',') @@ -218,7 +218,7 @@ KVILIB_API unsigned int getUnicodeColorBytes(const TQString &szData,unsigned int (*byte_2)=KVI_NOCHANGE; return charIdx; } - c = szData[(int)charIdx].tqunicode(); + c = szData[(int)charIdx].unicode(); } else { (*byte_2)=KVI_NOCHANGE; return charIdx; @@ -227,7 +227,7 @@ KVILIB_API unsigned int getUnicodeColorBytes(const TQString &szData,unsigned int if((c < '0') || (c > '9')) { (*byte_2)=KVI_NOCHANGE; - if(szData[(int)(charIdx-1)].tqunicode()==',') + if(szData[(int)(charIdx-1)].unicode()==',') return charIdx-1; else return charIdx; @@ -237,7 +237,7 @@ KVILIB_API unsigned int getUnicodeColorBytes(const TQString &szData,unsigned int (*byte_2)=c-'0'; charIdx++; if(charIdx >= szData.length())return charIdx; - c = szData[(int)charIdx].tqunicode(); + c = szData[(int)charIdx].unicode(); if((c >= '0') && (c <='9')) { @@ -262,7 +262,7 @@ namespace KviMircCntrl unsigned char b2; while(i < l) { - switch(szData[i].tqunicode()) + switch(szData[i].unicode()) { case KVI_TEXT_UNDERLINE: case KVI_TEXT_BOLD: @@ -288,7 +288,7 @@ namespace KviMircCntrl i++; while(i < l) { - if(szData[i].tqunicode() == ' ')break; + if(szData[i].unicode() == ' ')break; else i++; } begin = i; |