• Main Page
  • Classes
  • Files
  • File List

CStringUtil.h

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2012 Bolton Software Ltd.
00004  * Copyright (C) 2002 Chris Schoeneman
00005  * 
00006  * This package is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * found in the file COPYING that should have accompanied this file.
00009  * 
00010  * This package is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017  */
00018 
00019 #ifndef CSTRINGUTIL_H
00020 #define CSTRINGUTIL_H
00021 
00022 #include "CString.h"
00023 #include <stdarg.h>
00024 
00026 
00029 class CStringUtil {
00030 public:
00032 
00041     static CString      format(const char* fmt, ...);
00042 
00044 
00047     static CString      vformat(const char* fmt, va_list);
00048 
00050 
00053     static CString      print(const char* fmt, ...);
00054 
00056 
00059     class CaselessCmp {
00060       public:
00062         bool            operator()(const CString& a, const CString& b) const;
00063 
00065         static bool     less(const CString& a, const CString& b);
00066 
00068         static bool     equal(const CString& a, const CString& b);
00069 
00071         static bool     cmpLess(const CString::value_type& a,
00072                             const CString::value_type& b);
00073 
00075         static bool     cmpEqual(const CString::value_type& a,
00076                             const CString::value_type& b);
00077     };
00078 };
00079 
00080 #endif
00081 

Generated on Thu May 23 2013 00:00:04 for Synergy by  doxygen 1.7.1