You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1021 B
50 lines
1021 B
|
|
#ifndef ___LG_MULTI_BYTE_STRING___
|
|
#define ___LG_MULTI_BYTE_STRING___
|
|
|
|
class CLgString
|
|
{
|
|
public:
|
|
CLgString();
|
|
CLgString( const CLgString& s );
|
|
CLgString( LPCTSTR pString );
|
|
virtual ~CLgString();
|
|
|
|
public:
|
|
int Length() const;
|
|
CLgString& UpperCase();
|
|
LPCTSTR c_str() const;
|
|
|
|
public:
|
|
CLgString& operator = ( TCHAR ch );
|
|
CLgString& operator = ( LPCTSTR pString );
|
|
CLgString& operator = ( const CLgString& s );
|
|
CLgString& operator += ( LPCTSTR pString );
|
|
CLgString& operator += ( const CLgString& s );
|
|
CLgString& operator += ( const TCHAR ch );
|
|
|
|
public:
|
|
friend bool operator == ( const CLgString& s, LPCTSTR pString );
|
|
friend bool operator != ( const CLgString& s1, const CLgString& s2 );
|
|
|
|
public:
|
|
friend CLgString operator + ( const CLgString& s1, const CLgString& s2 );
|
|
|
|
public:
|
|
friend bool TryLgStringToInt( const CLgString& s, int& value );
|
|
friend CLgString IntToLgString( const int value );
|
|
|
|
private:
|
|
LPTSTR m_pString;
|
|
};
|
|
|
|
|
|
class ClgMbString{
|
|
|
|
public:
|
|
ClgMbString();
|
|
~ClgMbString();
|
|
};
|
|
|
|
#endif
|
|
|