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

Method is_operator

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

Source from the content-addressed store, hash-verified

216 /// Check if a byte is an operator character.
217 #[inline]
218 fn is_operator(b: u8) -> bool {
219 matches!(
220 b,
221 b'+' | b'-'
222 | b'*'
223 | b'/'
224 | b'%'
225 | b'='
226 | b'!'
227 | b'<'
228 | b'>'
229 | b'&'
230 | b'|'
231 | b'^'
232 | b'~'
233 | b'?'
234 | b':'
235 )
236 }
237
238 /// Check if a byte is punctuation.
239 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected