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

Method Styles

scintilla/src/PerLine.cxx:400–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400const unsigned char *LineAnnotation::Styles(int line) const {
401 if (annotations.Length() && (line >= 0) && (line < annotations.Length()) && annotations[line] && MultipleStyles(line))
402 return reinterpret_cast<unsigned char *>(annotations[line] + sizeof(AnnotationHeader) + Length(line));
403 else
404 return 0;
405}
406
407static char *AllocateAnnotation(int length, int style) {
408 size_t len = sizeof(AnnotationHeader) + length + ((style == IndividualStyles) ? length : 0);

Callers 2

MarginStyledTextMethod · 0.80
AnnotationStyledTextMethod · 0.80

Calls 1

LengthMethod · 0.45

Tested by

no test coverage detected