| 244 | } |
| 245 | |
| 246 | int RunStyles::Find(int value, int start) const { |
| 247 | if (start < Length()) { |
| 248 | int run = start ? RunFromPosition(start) : 0; |
| 249 | if (styles->ValueAt(run) == value) |
| 250 | return start; |
| 251 | run++; |
| 252 | while (run < starts->Partitions()) { |
| 253 | if (styles->ValueAt(run) == value) |
| 254 | return starts->PositionFromPartition(run); |
| 255 | run++; |
| 256 | } |
| 257 | } |
| 258 | return -1; |
| 259 | } |
| 260 | |
| 261 | void RunStyles::Check() { |
| 262 | if (Length() < 0) { |
nothing calls this directly
no test coverage detected