aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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