aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Elvio Basello2008-10-02 14:59:22 +0000
committerGravatar Elvio Basello2008-10-02 14:59:22 +0000
commit485bba3ae90b4d3c653a9289ee090c910b689616 (patch)
tree60a1aadb5c8feb22667c09cf947ba150ba3be87f /src
parentfix compilation on win. (diff)
downloadKVIrc-485bba3ae90b4d3c653a9289ee090c910b689616.tar.gz
KVIrc-485bba3ae90b4d3c653a9289ee090c910b689616.tar.bz2
KVIrc-485bba3ae90b4d3c653a9289ee090c910b689616.zip
fixed licenses, added doxygen
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2618 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
-rw-r--r--src/kvilib/core/kvi_hstrEqualCIN.cpp17
-rw-r--r--src/kvilib/core/kvi_hstrEqualCIN.h22
-rw-r--r--src/kvirc/ui/kvi_ircview_events.cpp6
-rw-r--r--src/kvirc/ui/kvi_ircview_gettextline.cpp6
-rw-r--r--src/kvirc/ui/kvi_ircview_loghandling.cpp6
5 files changed, 48 insertions, 9 deletions
diff --git a/src/kvilib/core/kvi_hstrEqualCIN.cpp b/src/kvilib/core/kvi_hstrEqualCIN.cpp
index 2fe58c9ca..d5ff69aec 100644
--- a/src/kvilib/core/kvi_hstrEqualCIN.cpp
+++ b/src/kvilib/core/kvi_hstrEqualCIN.cpp
@@ -4,7 +4,7 @@
// Creation date : Wed Oct 1 2008 17:18:20 by Fabio Bas
//
// This file is part of the KVirc irc client distribution
-// Copyright (C) 1999-2008 Szymon Stefanek (pragma at kvirc dot net)
+// Copyright (C) 2008 Fabio Bas (ctrlaltca at gmail dot com)
//
// This program is FREE software. You can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -21,6 +21,10 @@
// Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
//===========================================================================
+//
+// This file was originally part of kvi_ircview.cpp
+//
+//===========================================================================
#include "kvi_hstrEqualCIN.h"
@@ -590,8 +594,13 @@ kvi_wchar_t kvi_wtolower(kvi_wchar_t c)
return l ? l : c;
}
-bool kvi_hstrEqualCIN(const kvi_wchar_t *str1,const char *str2,int len)
+bool kvi_hstrEqualCIN(const kvi_wchar_t * pcStr1, const char * pcStr2, int iLen)
{
- while(len-- && *str1)if(kvi_wtolower(*str1++) != (kvi_wchar_t)tolower(*str2++))return false;
- return (len < 0);
+ while(iLen-- && *pcStr1)
+ {
+ if(kvi_wtolower(*pcStr1++) != (kvi_wchar_t)tolower(*pcStr2++))
+ return false;
+ }
+
+ return (iLen < 0);
}
diff --git a/src/kvilib/core/kvi_hstrEqualCIN.h b/src/kvilib/core/kvi_hstrEqualCIN.h
index 57fbee0f3..5baf88712 100644
--- a/src/kvilib/core/kvi_hstrEqualCIN.h
+++ b/src/kvilib/core/kvi_hstrEqualCIN.h
@@ -4,7 +4,7 @@
// Creation date : Wed Oct 1 2008 17:18:20 by Fabio Bas
//
// This file is part of the KVirc irc client distribution
-// Copyright (C) 1999-2008 Szymon Stefanek (pragma at kvirc dot net)
+// Copyright (C) 2008 Fabio Bas (ctrlaltca at gmail dot com)
//
// This program is FREE software. You can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -21,6 +21,24 @@
// Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
//===========================================================================
+//
+// This file was originally part of kvi_ircview.h
+//
+//===========================================================================
+
+/**
+* \file kvi_hstrEqualCIN.h
+* \author Fabio Bas
+* \brief Comparison function kvi_hstrEqualCIN
+*/
#include "kvi_string.h"
-__KVI_EXTERN KVILIB_API bool kvi_hstrEqualCIN(const kvi_wchar_t *str1,const char *str2,int len);
+
+/**
+* \brief Returns true if the string are equals casa insensitive
+* \param pcStr1 The source string
+* \param pcStr2 The target string
+* \param iLen The lenght of the string
+* \return bool
+*/
+__KVI_EXTERN KVILIB_API bool kvi_hstrEqualCIN(const kvi_wchar_t * pcStr1, const char * pcStr2, int iLen);
diff --git a/src/kvirc/ui/kvi_ircview_events.cpp b/src/kvirc/ui/kvi_ircview_events.cpp
index 366665a33..74338aee0 100644
--- a/src/kvirc/ui/kvi_ircview_events.cpp
+++ b/src/kvirc/ui/kvi_ircview_events.cpp
@@ -4,7 +4,7 @@
// Creation date : Wed Oct 1 2008 17:18:20 by Fabio Bas
//
// This file is part of the KVirc irc client distribution
-// Copyright (C) 1999-2008 Szymon Stefanek (pragma at kvirc dot net)
+// Copyright (C) 2008 Fabio Bas (ctrlaltca at gmail dot com)
//
// This program is FREE software. You can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -21,6 +21,10 @@
// Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
//===========================================================================
+//
+// This file was originally part of kvi_ircview.cpp
+//
+//===========================================================================
#include "kvi_channel.h"
#include "kvi_kvs_eventtriggers.h"
diff --git a/src/kvirc/ui/kvi_ircview_gettextline.cpp b/src/kvirc/ui/kvi_ircview_gettextline.cpp
index 2410a33bc..214602f62 100644
--- a/src/kvirc/ui/kvi_ircview_gettextline.cpp
+++ b/src/kvirc/ui/kvi_ircview_gettextline.cpp
@@ -4,7 +4,7 @@
// Creation date : Wed Oct 1 2008 17:18:20 by Fabio Bas
//
// This file is part of the KVirc irc client distribution
-// Copyright (C) 1999-2008 Szymon Stefanek (pragma at kvirc dot net)
+// Copyright (C) 2008 Fabio Bas (ctrlaltca at gmail dot com)
//
// This program is FREE software. You can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -21,6 +21,10 @@
// Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
//===========================================================================
+//
+// This file was originally part of kvi_ircview.cpp
+//
+//===========================================================================
#include "kvi_channel.h"
#include "kvi_ircview.h"
diff --git a/src/kvirc/ui/kvi_ircview_loghandling.cpp b/src/kvirc/ui/kvi_ircview_loghandling.cpp
index 7090185cc..9e3eecbe2 100644
--- a/src/kvirc/ui/kvi_ircview_loghandling.cpp
+++ b/src/kvirc/ui/kvi_ircview_loghandling.cpp
@@ -4,7 +4,7 @@
// Creation date : Wed Oct 1 2008 17:18:20 by Fabio Bas
//
// This file is part of the KVirc irc client distribution
-// Copyright (C) 1999-2008 Szymon Stefanek (pragma at kvirc dot net)
+// Copyright (C) 2008 Fabio Bas (ctrlaltca at gmail dot com)
//
// This program is FREE software. You can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -21,6 +21,10 @@
// Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
//===========================================================================
+//
+// This file was originally part of kvi_ircview.cpp
+//
+//===========================================================================
#include "kvi_ircview.h"
#include "kvi_ircviewprivate.h"