Return number of bytes from start to before '\n' or end of text. Return 1 when start is outside text
| 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 | } |
no outgoing calls
no test coverage detected