simplestring.h

来自「hl2 source code. Do not use it illegal.」· C头文件 代码 · 共 51 行

H
51
字号
/*----------------------------------------------------------------------
Copyright (c) 1998,1999 Gipsysoft. All Rights Reserved.
Please see the file "licence.txt" for licencing details.
File:	SimpleString.h
Owner:	russf@gipsysoft.com
Purpose:	<Description of module>.
----------------------------------------------------------------------*/
#ifndef SIMPLESTRING_H
#define SIMPLESTRING_H

#ifndef TEXTABC_H
	#include "TextABC.h"
#endif	//	TEXTABC_H

#ifndef QHTM_TYPES_H
	#include "QHTM_Types.h"
#endif	//	QHTM_TYPES_H

class CSimpleString : public CTextABC
{
public:
	CSimpleString();
	CSimpleString( LPCTSTR pcszText );
	CSimpleString( LPCTSTR pcszText, UINT uLength );
	CSimpleString( const CSimpleString &rhs );
	CSimpleString &operator = ( const CSimpleString &rhs );

	void Add( LPCTSTR pcszText, UINT uLength );
	void Set( LPCTSTR pcszText, UINT uLength );
	CSimpleString &operator += ( const CSimpleString &rhs );
	CSimpleString &operator += ( LPCTSTR pcszText );
	operator LPCTSTR () const { return GetData(); }

	virtual ~CSimpleString();

	void Delete( UINT uIndex, UINT uCount );

	void Empty();

	int Compare( const CTextABC & ) const;

	virtual UINT GetLength() const;
	virtual LPCTSTR GetData() const;

private:
	ArrayOfChar m_arrText;

private:
};

#endif //SIMPLESTRING_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?