MCPcopy Create free account
hub / github.com/cxasm/notepad-- / text

Method text

src/qscint/src/qsciscintilla.cpp:2387–2398  ·  view source on GitHub ↗

Return the current text.

Source from the content-addressed store, hash-verified

2385
2386// Return the current text.
2387QString QsciScintilla::text() const
2388{
2389 int buflen = length() + 1;
2390 char *buf = new char[buflen];
2391
2392 SendScintilla(SCI_GETTEXT, buflen, buf);
2393
2394 QString qs = bytesAsText(buf,buflen-1);
2395 delete[] buf;
2396
2397 return qs;
2398}
2399
2400
2401// Return the text of a line.

Callers 4

QsciScintillaMethod · 0.45
setMarginTextMethod · 0.45
annotateMethod · 0.45
styleTextMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected