2001-10-06 14:13:28 +00:00
|
|
|
#ifndef CSTRING_H
|
|
|
|
#define CSTRING_H
|
|
|
|
|
2002-06-01 19:26:11 +00:00
|
|
|
#include "stdpre.h"
|
2001-10-06 14:13:28 +00:00
|
|
|
#include <string>
|
2002-06-01 19:26:11 +00:00
|
|
|
#include "stdpost.h"
|
|
|
|
|
2001-10-06 14:13:28 +00:00
|
|
|
// use to get appropriate type for string constants. it depends on
|
|
|
|
// the internal representation type of CString.
|
|
|
|
#define _CS(_x) _x
|
|
|
|
|
2002-06-10 22:06:45 +00:00
|
|
|
typedef std::string CString;
|
2001-10-06 14:13:28 +00:00
|
|
|
|
2002-06-03 16:34:22 +00:00
|
|
|
class CStringUtil {
|
|
|
|
public:
|
|
|
|
class CaselessCmp {
|
|
|
|
public:
|
|
|
|
bool operator()(const CString&, const CString&) const;
|
|
|
|
static bool less(const CString&, const CString&);
|
|
|
|
static bool equal(const CString&, const CString&);
|
|
|
|
static bool cmpLess(const CString::value_type&,
|
2002-06-10 22:06:45 +00:00
|
|
|
const CString::value_type&);
|
2002-06-03 16:34:22 +00:00
|
|
|
static bool cmpEqual(const CString::value_type&,
|
2002-06-10 22:06:45 +00:00
|
|
|
const CString::value_type&);
|
2002-06-03 16:34:22 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2001-10-06 14:13:28 +00:00
|
|
|
#endif
|
|
|
|
|