diff options
Diffstat (limited to '')
-rw-r--r-- | src/unstable/text.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/unstable/text.cpp b/src/unstable/text.cpp index 73271f8..9e5670d 100644 --- a/src/unstable/text.cpp +++ b/src/unstable/text.cpp | |||
@@ -5,4 +5,29 @@ | |||
5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include "bu/text.h" | ||
9 | #include <string.h> | ||
10 | |||
11 | Bu::Text::Text() : | ||
12 | pData( NULL ), | ||
13 | iSize( 0 ), | ||
14 | iCodePoints( 0 ) | ||
15 | { | ||
16 | } | ||
17 | |||
18 | Bu::Text::Text( const Text &rSrc ) : | ||
19 | pData( NULL ), | ||
20 | iSize( rSrc.iSize ), | ||
21 | iCodePoints( rSrc.iCodePoints ) | ||
22 | { | ||
23 | pData = new uint16_t[iSize]; | ||
24 | memcpy( pData, rSrc.pData, sizeof(uint16_t)*iSize ); | ||
25 | } | ||
26 | |||
27 | Bu::Text::~Text() | ||
28 | { | ||
29 | delete[] pData; | ||
30 | pData = NULL; | ||
31 | } | ||
32 | |||
8 | 33 | ||