| 94 | extern RegexSearchBase *CreateRegexSearch(CharClassify *charClassTable); |
| 95 | |
| 96 | struct 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 | |
| 118 | class HighlightDelimiter { |
| 119 | public: |
no outgoing calls
no test coverage detected