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

Method SetFoldDisplayText

src/qscint/scintilla/src/ContractionState.cpp:285–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283
284template <typename LINE>
285bool ContractionState<LINE>::SetFoldDisplayText(Sci::Line lineDoc, const char *text) {
286 EnsureData();
287 const char *foldText = foldDisplayTexts->ValueAt(lineDoc).get();
288 if (!foldText || !text || 0 != strcmp(text, foldText)) {
289 UniqueString uns = UniqueStringCopy(text);
290 foldDisplayTexts->SetValueAt(lineDoc, std::move(uns));
291 Check();
292 return true;
293 } else {
294 Check();
295 return false;
296 }
297}
298
299template <typename LINE>
300bool ContractionState<LINE>::GetExpanded(Sci::Line lineDoc) const {

Callers 1

WndProcMethod · 0.80

Calls 4

UniqueStringCopyFunction · 0.85
getMethod · 0.45
ValueAtMethod · 0.45
SetValueAtMethod · 0.45

Tested by

no test coverage detected