Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

CStringUtil.h

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2002 Chris Schoeneman
00004  * 
00005  * This package is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * found in the file COPYING that should have accompanied this file.
00008  * 
00009  * This package is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  */
00014 
00015 #ifndef CSTRINGUTIL_H
00016 #define CSTRINGUTIL_H
00017 
00018 #include "CString.h"
00019 #include <stdarg.h>
00020 
00022 
00025 class CStringUtil {
00026 public:
00028 
00037     static CString      format(const char* fmt, ...);
00038 
00040 
00043     static CString      vformat(const char* fmt, va_list);
00044 
00046 
00049     static CString      print(const char* fmt, ...);
00050 
00052 
00055     class CaselessCmp {
00056       public:
00058         bool            operator()(const CString& a, const CString& b) const;
00059 
00061         static bool     less(const CString& a, const CString& b);
00062 
00064         static bool     equal(const CString& a, const CString& b);
00065 
00067         static bool     cmpLess(const CString::value_type& a,
00068                             const CString::value_type& b);
00069 
00071         static bool     cmpEqual(const CString::value_type& a,
00072                             const CString::value_type& b);
00073     };
00074 };
00075 
00076 #endif
00077 

Generated on Fri Nov 6 00:21:14 2009 for synergy-plus by  doxygen 1.3.9.1