aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-03-07 22:13:06 +0000
committerMike Buland <eichlan@xagasoft.com>2007-03-07 22:13:06 +0000
commitc8cb038634ebea6c37e86a30886676197e2ce807 (patch)
tree11e555af6c078db5d81532e86f62d10722a534a4 /src
parent8cba0ee929112a125eb41228f667e8bdd0224f58 (diff)
downloadlibbu++-c8cb038634ebea6c37e86a30886676197e2ce807.tar.gz
libbu++-c8cb038634ebea6c37e86a30886676197e2ce807.tar.bz2
libbu++-c8cb038634ebea6c37e86a30886676197e2ce807.tar.xz
libbu++-c8cb038634ebea6c37e86a30886676197e2ce807.zip
Started the fstring class, could be good.
Diffstat (limited to 'src')
-rw-r--r--src/fstring.cpp2
-rw-r--r--src/fstring.h30
2 files changed, 32 insertions, 0 deletions
diff --git a/src/fstring.cpp b/src/fstring.cpp
new file mode 100644
index 0000000..8fe2941
--- /dev/null
+++ b/src/fstring.cpp
@@ -0,0 +1,2 @@
1#include "fstring.h"
2
diff --git a/src/fstring.h b/src/fstring.h
new file mode 100644
index 0000000..a6ec010
--- /dev/null
+++ b/src/fstring.h
@@ -0,0 +1,30 @@
1#ifndef F_STRING_H
2#define F_STRING_H
3
4#include <stdint.h>
5
6/**
7 *
8 */
9template< typename chr, typename chralloc = std::allocator<chr> >
10class FString
11{
12public:
13 FString() :
14 pData( NULL ),
15 pnRefs( NULL )
16 {
17 }
18
19 virtual ~FString()
20 {
21 }
22
23private:
24 long nLength;
25 chr *pData;
26 uint32_t *pnRefs;
27 chralloc aChars;
28};
29
30#endif