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

Method ReadLines

crengine/src/lvxml.cpp:1291–1305  ·  view source on GitHub ↗

read lines and place to tail of queue

Source from the content-addressed store, hash-verified

1289 }
1290 // read lines and place to tail of queue
1291 bool ReadLines( int lineCount )
1292 {
1293 for ( int i=0; i<lineCount; i++ ) {
1294 if ( file->Eof() ) {
1295 if ( i==0 )
1296 return false;
1297 break;
1298 }
1299 LVTextFileLine * line = new LVTextFileLine( file, maxLineSize );
1300 if ( min_left>=0 )
1301 line->align = getFormat( line );
1302 add( line );
1303 }
1304 return true;
1305 }
1306 inline static int absCompare( int v1, int v2 )
1307 {
1308 if ( v1<0 )

Callers 1

ParseMethod · 0.80

Calls 1

EofMethod · 0.45

Tested by

no test coverage detected