summaryrefslogtreecommitdiffstats
path: root/src/kvilib/irc/kvi_ircmask.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit9ca32ef31a2566af48c06f258722738df92366af (patch)
treec847db3bf1bb88b7863fed0cc60eef6bf641306a /src/kvilib/irc/kvi_ircmask.cpp
parent72aaee9802d447ee21340b011856b9b355a58f1a (diff)
downloadkvirc-9ca32ef31a2566af48c06f258722738df92366af.tar.gz
kvirc-9ca32ef31a2566af48c06f258722738df92366af.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kvilib/irc/kvi_ircmask.cpp')
-rw-r--r--src/kvilib/irc/kvi_ircmask.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/kvilib/irc/kvi_ircmask.cpp b/src/kvilib/irc/kvi_ircmask.cpp
index d18e398d..4552cc93 100644
--- a/src/kvilib/irc/kvi_ircmask.cpp
+++ b/src/kvilib/irc/kvi_ircmask.cpp
@@ -40,7 +40,7 @@
irc masks , nickname , username , hostname , wildcard
@body:
[big]Simple masks[/big][br]
- An irc tqmask is a string in a special format that identifies an user on irc.[br]
+ An irc mask is a string in a special format that identifies an user on irc.[br]
The standard basic format is:[br]
[b]<nick>!<username>@<host>[/b][br]
The <nick> part contains the nickname with that the user is widely known across the network.[br]
@@ -81,7 +81,7 @@
The wild masks are used to "match" an user within a set of them.[br]
'*' matches any sequence (eventually empty) of characters and '?' matches a single character.[br]
Wildcards are allowed only in the <nick> , <user> and <host> part: so the
- "wildest" tqmask possible is:[br]
+ "wildest" mask possible is:[br]
[b]*!*@*[/b][br]
that designates "any nickname, any username on any host".[br]
Here are some examples of wild masks:[br]
@@ -315,8 +315,8 @@ bool KviIrcMask::hasNumericHost() const
/**
-* Retuns in szMask the specified (if possible) tqmask of this user.<br>
-* If the host or username are not known , the tqmask may contain less information
+* Retuns in szMask the specified (if possible) mask of this user.<br>
+* If the host or username are not known , the mask may contain less information
* than requested.<br>
* Mask types:<br>
* 0 : [email protected] ([email protected]) (default)<br>
@@ -349,7 +349,7 @@ bool KviIrcMask::hasNumericHost() const
* 25: nick!*user@*.host.top (nick!*[email protected].*)
* 26: *!*user@*.host.top (*!user@*XXX.XXX.*)
* If some data is missing , these types may change:<br>
-* For example , if hostname is missing , the tqmask type 3 or 4 may be reduced to type 5
+* For example , if hostname is missing , the mask type 3 or 4 may be reduced to type 5
*/
/*
@@ -365,10 +365,10 @@ bool KviIrcMask::hasNumericHost() const
static unsigned char maskTable[27][3] = {
{ 0 , 0 , 0 }, //0 means normal block
- { 0 , 0 , 2 }, //2 in the third field means type *.abc.host.top (or XXX.XXX.XXX.*) host tqmask
+ { 0 , 0 , 2 }, //2 in the third field means type *.abc.host.top (or XXX.XXX.XXX.*) host mask
{ 0 , 0 , 1 }, //2 in the second field means *user (strip prefixes)
{ 0 , 1 , 0 }, //1 means *
- { 0 , 1 , 2 }, //3 in the third field means type *.host.top (or XXX.XXX.*) host tqmask
+ { 0 , 1 , 2 }, //3 in the third field means type *.host.top (or XXX.XXX.*) host mask
{ 0 , 1 , 1 }, //4 in the third field is like 3 but tries to detect masked ip addresses too
{ 1 , 0 , 0 },
{ 1 , 0 , 2 },
@@ -393,7 +393,7 @@ static unsigned char maskTable[27][3] = {
{ 1 , 2 , 4 }
};
-void KviIrcMask::tqmask(TQString &szMask,MaskType eMaskType) const
+void KviIrcMask::mask(TQString &szMask,MaskType eMaskType) const
{
if((((int)eMaskType) > 26)||(((int)eMaskType) < 0))eMaskType = NickUserHost;
szMask = maskTable[((int)eMaskType)][0] ? m_szWild : m_szNick;
@@ -556,25 +556,25 @@ bool KviIrcMask::matchedBy(const TQString &szMask) const
}
*/
-bool KviIrcMask::matches(const KviIrcMask &tqmask) const
+bool KviIrcMask::matches(const KviIrcMask &mask) const
{
- if(KviTQString::matchWildExpressionsCI(m_szNick,tqmask.m_szNick))
+ if(KviTQString::matchWildExpressionsCI(m_szNick,mask.m_szNick))
{
- if(KviTQString::matchWildExpressionsCI(m_szUser,tqmask.m_szUser))
+ if(KviTQString::matchWildExpressionsCI(m_szUser,mask.m_szUser))
{
- if(KviTQString::matchWildExpressionsCI(m_szHost,tqmask.m_szHost))return true;
+ if(KviTQString::matchWildExpressionsCI(m_szHost,mask.m_szHost))return true;
}
}
return false;
}
-bool KviIrcMask::matchesFixed(const KviIrcMask &tqmask) const
+bool KviIrcMask::matchesFixed(const KviIrcMask &mask) const
{
- if(KviTQString::matchStringCI(m_szNick,tqmask.m_szNick,0,1))
+ if(KviTQString::matchStringCI(m_szNick,mask.m_szNick,0,1))
{
- if(KviTQString::matchStringCI(m_szUser,tqmask.m_szUser,0,1))
+ if(KviTQString::matchStringCI(m_szUser,mask.m_szUser,0,1))
{
- if(KviTQString::matchStringCI(m_szHost,tqmask.m_szHost,0,1))return true;
+ if(KviTQString::matchStringCI(m_szHost,mask.m_szHost,0,1))return true;
}
}
return false;
@@ -609,7 +609,7 @@ bool KviIrcMask::matchesFixed(const TQString &nick,const TQString &user,const TQ
return true;
}
-//Internals for tqmask()
+//Internals for mask()
int KviIrcMask::getIpDomainMaskLen() const
{