| 408 | } |
| 409 | |
| 410 | bool CellBuffer::SetStyleAt(int position, char styleValue, char mask) { |
| 411 | styleValue &= mask; |
| 412 | char curVal = style.ValueAt(position); |
| 413 | if ((curVal & mask) != styleValue) { |
| 414 | style.SetValueAt(position, static_cast<char>((curVal & ~mask) | styleValue)); |
| 415 | return true; |
| 416 | } else { |
| 417 | return false; |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | bool CellBuffer::SetStyleFor(int position, int lengthStyle, char styleValue, char mask) { |
| 422 | bool changed = false; |
no test coverage detected