aboutsummaryrefslogtreecommitdiff
path: root/Src/omBrowser/stringBuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'Src/omBrowser/stringBuilder.h')
-rw-r--r--Src/omBrowser/stringBuilder.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Src/omBrowser/stringBuilder.h b/Src/omBrowser/stringBuilder.h
new file mode 100644
index 00000000..76d22182
--- /dev/null
+++ b/Src/omBrowser/stringBuilder.h
@@ -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 \ No newline at end of file