is_step_space

Function is_step_space 

Source
pub fn is_step_space(b: u8) -> bool
Expand description

ASCII whitespace per ISO 10303-21: space, tab, LF, CR, form feed, vertical tab.

Spelled out rather than u8::is_ascii_whitespace, which follows the WhatWG Infra Standard’s definition and EXCLUDES vertical tab (0x0B) — its docs say as much. The STEP header scanner now uses this same function; reaching for a stdlib predicate once mismatched the TypeScript half’s isSpaceByte/isAsciiSpace on \x0B and, before that mismatch was found, TypeScript’s isSpaceByte itself omitted both \x0C and \x0B — issue #3733, a form feed silently dropping an entity that this scanner parsed. Keep this set and isSpaceByte in packages/parser/src/step-lexing.ts identical.