barrier/base/CString.h

30 lines
682 B
C
Raw Normal View History

2001-10-06 14:13:28 +00:00
#ifndef CSTRING_H
#define CSTRING_H
#include "stdpre.h"
2001-10-06 14:13:28 +00:00
#include <string>
#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
typedef std::string CString;
2001-10-06 14:13:28 +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&,
const CString::value_type&);
static bool cmpEqual(const CString::value_type&,
const CString::value_type&);
};
};
2001-10-06 14:13:28 +00:00
#endif