5 #ifndef P6STRINGBUF_H__
6 #define P6STRINGBUF_H__ 1
132 #define IF_p6IStringBuf {0x8BCF8C01,0xC750,0x4E0C,{0x8C,0x86,0x63,0x8F,0x71,0x27,0xA0,0x2D}}
135 #define COMP_p6StringBuf {0x23E0E1E7,0xFCD5,0x41B2,{0xA2,0xA9,0x12,0xC0,0x8D,0x05,0x36,0x13}}
262 #define IF_p6IWStringBuf {0x6E3FB49E,0xFB69,0x4930,{0xB9,0xB7,0x13,0x47,0x77,0x83,0x7B,0x1F}}
265 #define COMP_p6WStringBuf {0x0EC58863,0xB4F6,0x49EF,{0x98,0xB3,0x3F,0xBE,0x27,0xA3,0x0C,0x3F}}
const P6STRBUFFLAGS P6SBF_NOFLAGS
virtual P6R::P6ERR appendSubStr(const P6R::P6CHAR *pData, P6R::P6SIZE nOffset, P6R::P6SIZE nChars)=0
Appends to sepified substring to the string buffer.
virtual P6R::P6ERR getBufPtr(const P6R::P6WCHAR **ppData, P6R::P6SIZE *pcData)=0
Retrieves a pointer to the string buffers undelying storage and the number of valid bytes available...
virtual P6R::P6ERR prepend(const P6R::P6WCHAR *pData)=0
Prepends the specified string to the beginning of the string buffer.
virtual P6R::P6ERR appendBCSTR(const P6R::P6BCSTR *pData)=0
Appends the specified P6BCSTR to the string buffer.
virtual P6R::P6ERR prependSubStr(const P6R::P6CHAR *pData, P6R::P6SIZE nOffset, P6R::P6SIZE nChars)=0
Prepends to sepified substring to the string buffer.
Wide Const binary string.
virtual P6R::P6ERR appendSubStr(const P6R::P6WCHAR *pData, P6R::P6SIZE nOffset, P6R::P6SIZE nChars)=0
Appends to sepified substring to the string buffer.
virtual P6R::P6ERR clear()=0
Resets the string buffer to empty.
virtual P6R::P6ERR prependBCSTR(const P6R::P6BCSTR *pData)=0
Prepends the specfified P6BWCSTR to the string buffer.
virtual P6R::P6ERR prependSubStr(const P6R::P6WCHAR *pData, P6R::P6SIZE nOffset, P6R::P6SIZE nChars)=0
Prepends to sepified substring to the string buffer.
wchar_t P6WCHAR
Wide character type see p6i18n.h.
The base interface all [p6]COM components must derive from and implement.
virtual P6R::P6ERR initialize(P6R::P6SIZE cInitialSize, const P6R::P6WCHAR *pInitialData, P6STRBUFFLAGS fFlags)=0
Initializes the component for use and must be called successfully before any other method...
virtual P6R::P6ERR size(P6R::P6SIZE *pcData)=0
Returns the size in characters (without a NULL terminator) of the data in the buffer.
virtual P6R::P6ERR append(const P6R::P6CHAR *pData)=0
Appends the specified NULL terminated ASCII string.
P6COM runtime interfaces definitions.
virtual P6R::P6ERR initialize(P6R::P6SIZE cInitialSize, const P6R::P6CHAR *pInitialData, P6STRBUFFLAGS fFlags)=0
Initializes the component for use and must be called successfully before any other method...
virtual P6R::P6ERR append(const P6R::P6WCHAR *pData)=0
Appends the NULL terminated string provided in pData to the string buffer.
virtual P6R::P6ERR clear()=0
Resets the string buffer to empty.
virtual P6R::P6ERR getBufPtr(const P6R::P6CHAR **ppData, P6R::P6SIZE *pcData)=0
Retrieves a pointer to the string buffers undelying storage and the number of valid bytes available...
Make appending data as fast as possible.
virtual P6R::P6ERR appendBWCSTR(const P6R::P6BWCSTR *pData)=0
Appends the specified P6BWCSTR to the string buffer.
virtual P6R::P6ERR size(P6R::P6SIZE *pcData)=0
Returns the size in characters (without a NULL terminator) of the data in the buffer.
virtual P6R::P6ERR prependBWCSTR(const P6R::P6BWCSTR *pData)=0
Prepends the specfified P6BWCSTR to the string buffer.
virtual P6R::P6ERR trim(P6R::P6SIZE cChars)=0
Trims the up to the specified number of character from the end of the string.
virtual P6R::P6ERR prepend(const P6R::P6CHAR *pData)=0
Prepends the specified string to the beginning of the string buffer.
char P6CHAR
Narrow character type.