aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/textbuilder.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2019-11-12 06:02:12 -0800
committerMike Buland <eichlan@xagasoft.com>2019-11-12 06:02:12 -0800
commitfd830279725081d95e3f08f768ed6879c92fe838 (patch)
tree3da9be0025e703d7a0afcb48458034b203efd8f3 /src/unstable/textbuilder.cpp
parent96759377ae8a4394d325747f597fe5b60afabf6e (diff)
downloadlibbu++-fd830279725081d95e3f08f768ed6879c92fe838.tar.gz
libbu++-fd830279725081d95e3f08f768ed6879c92fe838.tar.bz2
libbu++-fd830279725081d95e3f08f768ed6879c92fe838.tar.xz
libbu++-fd830279725081d95e3f08f768ed6879c92fe838.zip
32bit
Diffstat (limited to 'src/unstable/textbuilder.cpp')
-rw-r--r--src/unstable/textbuilder.cpp12
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
192void Bu::TextBuilderCore::copyTo( void *pDestRaw, int32_t iLength ) 192void 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
197Bu::CodePoint Bu::TextBuilderCore::getAt( int32_t iIndex ) const 202Bu::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
278void Bu::TextBuilder::copyTo( void *pDestRaw, int32_t iDestSize ) const
279{
280 core->copyTo( pDestRaw, iDestSize );
281}
282
273Bu::CodePoint Bu::TextBuilder::operator[]( int32_t iIndex ) const 283Bu::CodePoint Bu::TextBuilder::operator[]( int32_t iIndex ) const
274{ 284{
275 return core->getAt( iIndex ); 285 return core->getAt( iIndex );