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

Method RetrieveLineLayout

scintilla/src/Editor.cxx:2230–2239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2228}
2229
2230LineLayout *Editor::RetrieveLineLayout ( int lineNumber )
2231{
2232 int posLineStart = pdoc->LineStart ( lineNumber );
2233 int posLineEnd = pdoc->LineStart ( lineNumber + 1 );
2234 PLATFORM_ASSERT ( posLineEnd >= posLineStart );
2235 int lineCaret = pdoc->LineFromPosition ( sel.MainCaret() );
2236 return llc.Retrieve ( lineNumber, lineCaret,
2237 posLineEnd - posLineStart, pdoc->GetStyleClock(),
2238 LinesOnScreen() + 1, pdoc->LinesTotal() );
2239}
2240
2241bool BadUTF ( const char *s, int len, int &trailBytes )
2242{

Callers

nothing calls this directly

Calls 6

MainCaretMethod · 0.80
RetrieveMethod · 0.80
GetStyleClockMethod · 0.80
LinesTotalMethod · 0.80
LineStartMethod · 0.45
LineFromPositionMethod · 0.45

Tested by

no test coverage detected