MCPcopy Create free account
hub / github.com/buggins/coolreader / resize

Method resize

crengine/src/lvstring.cpp:704–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704void lString16::resize(size_type n, lChar16 e)
705{
706 lock( n );
707 if (n>=pchunk->size)
708 {
709 pchunk->buf16 = (lChar16*) ::realloc( pchunk->buf16, sizeof(lChar16)*(n+1) );
710 pchunk->size = n;
711 }
712 // fill with data if expanded
713 for (size_type i=pchunk->len; i<n; i++)
714 pchunk->buf16[i] = e;
715 pchunk->buf16[pchunk->len] = 0;
716}
717
718lString16 & lString16::append(const lChar16 * str)
719{

Callers 2

deserializeMapsMethod · 0.45
restoreWindowPositionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected