MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_newline

Method is_newline

atomic-core/src/diff/token/tokenizer.rs:212–214  ·  view source on GitHub ↗
(b: u8)

Source from the content-addressed store, hash-verified

210 /// Check if a byte is a newline.
211 #[inline]
212 fn is_newline(b: u8) -> bool {
213 b == b'\n' || b == b'\r'
214 }
215
216 /// Check if a byte is an operator character.
217 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected