2001-10-06 18:13:28 +04:00
|
|
|
#ifndef CSTRING_H
|
|
|
|
#define CSTRING_H
|
|
|
|
|
2002-06-01 23:26:11 +04:00
|
|
|
#include "stdpre.h"
|
2001-10-06 18:13:28 +04:00
|
|
|
#include <string>
|
2002-06-01 23:26:11 +04:00
|
|
|
#include "stdpost.h"
|
|
|
|
|
2001-10-06 18:13:28 +04:00
|
|
|
// use to get appropriate type for string constants. it depends on
|
|
|
|
// the internal representation type of CString.
|
|
|
|
#define _CS(_x) _x
|
|
|
|
|
2002-06-11 02:06:45 +04:00
|
|
|
typedef std::string CString;
|
2001-10-06 18:13:28 +04:00
|
|
|
|
2002-06-03 20:34:22 +04: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-11 02:06:45 +04:00
|
|
|
const CString::value_type&);
|
2002-06-03 20:34:22 +04:00
|
|
|
static bool cmpEqual(const CString::value_type&,
|
2002-06-11 02:06:45 +04:00
|
|
|
const CString::value_type&);
|
2002-06-03 20:34:22 +04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2001-10-06 18:13:28 +04:00
|
|
|
#endif
|
|
|
|
|