My Project
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ParaEngine::CUniBuffer Class Reference

Null implementation. More...

#include <GUIUniBuffer.h>

Public Member Functions

int GetTextSize () const
 
const char16_t * GetBuffer () const
 
char16_t & operator[] (int n)
 
int GetBufferA (std::string &out) const
 
bool InsertChar (int nIndex, char16_t wchar)
 
bool RemoveChar (int nIndex)
 
bool InsertString (int nIndex, const char16_t *pStr, int nCount=-1)
 
bool InsertStringA (int nIndex, const char *pStr, int nCount=-1)
 
bool SetTextA (LPCSTR szText)
 
bool SetText (const char16_t *wszText)
 
void Clear ()
 
HRESULT CPtoXY (int nCP, BOOL bTrail, int *pX, int *pY)
 
HRESULT XYtoCP (int nX, int nY, int *pCP, int *pnTrail)
 
void GetPriorItemPos (int nCP, int *pPrior)
 
void GetNextItemPos (int nCP, int *pPrior)
 
bool GetMultiline () const
 
void SetMultiline (bool multiline)
 
const std::string & GetUtf8Text () const
 
const std::u16string & GetUtf16Text () const
 
bool IsEmpty ()
 

Static Public Member Functions

static void Initialize ()
 
static void Uninitialize ()
 

Protected Attributes

std::string m_utf8Text
 
std::u16string m_utf16Text
 

Detailed Description

Null implementation.

Member Function Documentation

§ GetBufferA()

int ParaEngine::CUniBuffer::GetBufferA ( std::string &  out) const
Parameters
nLength[in] Specifies the size, in bytes, of the buffer pointed to by the lpMultiByteStr parameter. If this value is zero, the function returns the number of bytes required for the buffer. (In this case, the lpMultiByteStr buffer is not used.)
Returns
: If the function succeeds, and nLength is nonzero, the return value is the number of bytes written to the buffer pointed to by szText. The number includes the byte for the null terminator. If the function succeeds, and nLength is zero, the return value is the required size, in bytes, for a buffer that can receive the translated string.

The documentation for this class was generated from the following files: