Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
30
Src/omBrowser/stringBuilder.h
Normal file
30
Src/omBrowser/stringBuilder.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
#ifndef NULLSOFT_WINAMP_STRING_BUILDER_HEADER
|
||||
#define NULLSOFT_WINAMP_STRING_BUILDER_HEADER
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include <wtypes.h>
|
||||
|
||||
class StringBuilder
|
||||
{
|
||||
public:
|
||||
StringBuilder();
|
||||
~StringBuilder();
|
||||
|
||||
public:
|
||||
HRESULT Allocate(size_t newSize);
|
||||
void Clear(void);
|
||||
LPCWSTR Get(void);
|
||||
HRESULT Set(size_t index, WCHAR value);
|
||||
HRESULT Append(LPCWSTR pszString);
|
||||
|
||||
protected:
|
||||
LPWSTR buffer;
|
||||
LPWSTR cursor;
|
||||
size_t allocated;
|
||||
size_t remaining;
|
||||
};
|
||||
|
||||
#endif //NULLSOFT_WINAMP_STRING_BUILDER_HEADER
|
Loading…
Add table
Add a link
Reference in a new issue