MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / GetStyleRange

Method GetStyleRange

scintilla/src/CellBuffer.cxx:369–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void CellBuffer::GetStyleRange(unsigned char *buffer, int position, int lengthRetrieve) const {
370 if (lengthRetrieve < 0)
371 return;
372 if (position < 0)
373 return;
374 if ((position + lengthRetrieve) > style.Length()) {
375 Platform::DebugPrintf("Bad GetStyleRange %d for %d of %d\n", position,
376 lengthRetrieve, style.Length());
377 return;
378 }
379 style.GetRange(reinterpret_cast<char *>(buffer), position, lengthRetrieve);
380}
381
382const char *CellBuffer::BufferPointer() {
383 return substance.BufferPointer();

Callers 1

LayoutLineMethod · 0.45

Calls 2

GetRangeMethod · 0.80
LengthMethod · 0.45

Tested by

no test coverage detected