| 552 | |
| 553 | namespace { |
| 554 | auto isGrepHeaderLine(const QString &rawLine, const QString &trimmedLine) |
| 555 | -> bool { |
| 556 | // ANSI-colored header starts with the blue escape; plain-text fallback: |
| 557 | // a non-indented line ending with ':' (pass grep format without color) |
| 558 | return rawLine.startsWith(QStringLiteral("\x1B[94m")) || |
| 559 | (!rawLine.startsWith(' ') && !rawLine.startsWith('\t') && |
| 560 | trimmedLine.endsWith(':')); |
| 561 | } |
| 562 | } // namespace |
| 563 | |
| 564 | /** |