diff options
author | Mike Buland <eichlan@xagasoft.com> | 2019-11-12 06:02:12 -0800 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2019-11-12 06:02:12 -0800 |
commit | fd830279725081d95e3f08f768ed6879c92fe838 (patch) | |
tree | 3da9be0025e703d7a0afcb48458034b203efd8f3 /src/unstable/textbuilder.cpp | |
parent | 96759377ae8a4394d325747f597fe5b60afabf6e (diff) | |
download | libbu++-fd830279725081d95e3f08f768ed6879c92fe838.tar.gz libbu++-fd830279725081d95e3f08f768ed6879c92fe838.tar.bz2 libbu++-fd830279725081d95e3f08f768ed6879c92fe838.tar.xz libbu++-fd830279725081d95e3f08f768ed6879c92fe838.zip |
32bit
Diffstat (limited to '')
-rw-r--r-- | src/unstable/textbuilder.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/unstable/textbuilder.cpp b/src/unstable/textbuilder.cpp index af4dbac..5209e7b 100644 --- a/src/unstable/textbuilder.cpp +++ b/src/unstable/textbuilder.cpp | |||
@@ -191,7 +191,12 @@ void Bu::TextBuilderCore::set( const CodePoint *pSrc, int32_t iLength ) | |||
191 | 191 | ||
192 | void Bu::TextBuilderCore::copyTo( void *pDestRaw, int32_t iLength ) | 192 | void Bu::TextBuilderCore::copyTo( void *pDestRaw, int32_t iLength ) |
193 | { | 193 | { |
194 | 194 | CodePoint *pDest = reinterpret_cast<CodePoint *>( pDestRaw ); | |
195 | |||
196 | Chunk *pCur = pFirst; | ||
197 | while( pCur && iLength ) | ||
198 | { | ||
199 | } | ||
195 | } | 200 | } |
196 | 201 | ||
197 | Bu::CodePoint Bu::TextBuilderCore::getAt( int32_t iIndex ) const | 202 | Bu::CodePoint Bu::TextBuilderCore::getAt( int32_t iIndex ) const |
@@ -270,6 +275,11 @@ Bu::Text Bu::TextBuilder::getText() const | |||
270 | return Text( *this ); | 275 | return Text( *this ); |
271 | } | 276 | } |
272 | 277 | ||
278 | void Bu::TextBuilder::copyTo( void *pDestRaw, int32_t iDestSize ) const | ||
279 | { | ||
280 | core->copyTo( pDestRaw, iDestSize ); | ||
281 | } | ||
282 | |||
273 | Bu::CodePoint Bu::TextBuilder::operator[]( int32_t iIndex ) const | 283 | Bu::CodePoint Bu::TextBuilder::operator[]( int32_t iIndex ) const |
274 | { | 284 | { |
275 | return core->getAt( iIndex ); | 285 | return core->getAt( iIndex ); |