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

Function count_line_units

atomic-cli/src/commands/git/parallel.rs:397–403  ·  view source on GitHub ↗
(content: &[u8])

Source from the content-addressed store, hash-verified

395}
396
397fn count_line_units(content: &[u8]) -> usize {
398 if content.is_empty() {
399 0
400 } else {
401 content.split_inclusive(|&b| b == b'\n').count()
402 }
403}
404
405#[derive(Clone, Debug)]
406struct ImportLine {

Callers 1

Calls 2

is_emptyMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected