Expand description
Context extraction for span surroundings.
Provides line-based context extraction using ropey for efficient UTF-8 aware line/column calculations.
Functionsยง
- extract_
context - Extract context lines for a byte span.
- extract_
context_ asymmetric - Extract context lines for a byte span with asymmetric before/after counts.
- extract_
context_ with_ before_ after - Extract context lines for a byte span with separate before/after context.
- resolve_
context_ counts - Resolve context counts from -A/-B/-C flags following grep convention.