Skip to main content

find_unescaped_pipes

Function find_unescaped_pipes 

Source
pub fn find_unescaped_pipes(line: &str) -> Vec<usize>
Expand description

Byte offsets of cell-separator pipes in line.

Ignores \| escapes and pipes inside inline code spans. All returned offsets are ASCII | bytes, so byte/char indices coincide.