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

Class StyledText

scintilla/src/Document.h:96–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94extern RegexSearchBase *CreateRegexSearch(CharClassify *charClassTable);
95
96struct StyledText {
97 size_t length;
98 const char *text;
99 bool multipleStyles;
100 size_t style;
101 const unsigned char *styles;
102 StyledText(size_t length_, const char *text_, bool multipleStyles_, int style_, const unsigned char *styles_) :
103 length(length_), text(text_), multipleStyles(multipleStyles_), style(style_), styles(styles_) {
104 }
105 // Return number of bytes from start to before '\n' or end of text.
106 // Return 1 when start is outside text
107 size_t LineLength(size_t start) const {
108 size_t cur = start;
109 while ((cur < length) && (text[cur] != '\n'))
110 cur++;
111 return cur-start;
112 }
113 size_t StyleAt(size_t i) const {
114 return multipleStyles ? styles[i] : style;
115 }
116};
117
118class HighlightDelimiter {
119public:

Callers 2

MarginStyledTextMethod · 0.85
AnnotationStyledTextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected