diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fstring.cpp | 2 | ||||
| -rw-r--r-- | src/fstring.h | 30 |
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 | */ | ||
| 9 | template< typename chr, typename chralloc = std::allocator<chr> > | ||
| 10 | class FString | ||
| 11 | { | ||
| 12 | public: | ||
| 13 | FString() : | ||
| 14 | pData( NULL ), | ||
| 15 | pnRefs( NULL ) | ||
| 16 | { | ||
| 17 | } | ||
| 18 | |||
| 19 | virtual ~FString() | ||
| 20 | { | ||
| 21 | } | ||
| 22 | |||
| 23 | private: | ||
| 24 | long nLength; | ||
| 25 | chr *pData; | ||
| 26 | uint32_t *pnRefs; | ||
| 27 | chralloc aChars; | ||
| 28 | }; | ||
| 29 | |||
| 30 | #endif | ||
