aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-12-02 19:31:05 (GMT)
committerfluxgen <fluxgen>2002-12-02 19:31:05 (GMT)
commit3d18945fb5b660cef4ff32668c15f2b565f4e230 (patch)
tree01014e81db1a440af224fd08f5af38951e6d0519 /src/FbTk
parent0bab849b7e4db17c106c173684b145083dc7f53d (diff)
downloadfluxbox-3d18945fb5b660cef4ff32668c15f2b565f4e230.zip
fluxbox-3d18945fb5b660cef4ff32668c15f2b565f4e230.tar.bz2
minor comment fixes
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/XmbFontImp.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/FbTk/XmbFontImp.cc b/src/FbTk/XmbFontImp.cc
index 215bc53..9367c46 100644
--- a/src/FbTk/XmbFontImp.cc
+++ b/src/FbTk/XmbFontImp.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: XmbFontImp.cc,v 1.3 2002/12/01 13:42:15 rathnor Exp $ 22// $Id: XmbFontImp.cc,v 1.4 2002/12/02 19:31:05 fluxgen Exp $
23 23
24#include "XmbFontImp.hh" 24#include "XmbFontImp.hh"
25 25
@@ -40,6 +40,8 @@
40#include <cstdio> 40#include <cstdio>
41#include <cstdarg> 41#include <cstdarg>
42#include <iostream> 42#include <iostream>
43#include <cstring>
44
43using namespace std; 45using namespace std;
44 46
45namespace { 47namespace {
@@ -53,8 +55,10 @@ const char *strcasestr(const char *str, const char *ptn) {
53 const char *s2, *p2; 55 const char *s2, *p2;
54 for( ; *str; str++) { 56 for( ; *str; str++) {
55 for(s2=str, p2=ptn; ; s2++,p2++) { 57 for(s2=str, p2=ptn; ; s2++,p2++) {
56 if (!*p2) return str; // check if we reached the end of ptn, if so, return str 58 // check if we reached the end of ptn, if so, return str
57 if (toupper(*s2) != toupper(*p2)) break; // check if the chars match(ignoring case) 59 if (!*p2) return str;
60 // check if the chars match(ignoring case)
61 if (toupper(*s2) != toupper(*p2)) break;
58 } 62 }
59 } 63 }
60 return 0; 64 return 0;