Skip to main content

Module expand

Module expand 

Source

Enums§

TabStops
Tab stop specification

Functions§

expand_bytes
Expand tabs to spaces using SIMD scanning. Uses memchr2 to find tabs and newlines, bulk-copying everything between them.
parse_tab_stops
Parse a tab specification string (e.g., “4”, “4,8,12”, “4 8 12”).
unexpand_bytes
Unexpand spaces to tabs. If all is true, convert all sequences of spaces; otherwise only leading spaces.