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

Method lines

atomic-core/src/diff/split.rs:197–201  ·  view source on GitHub ↗

Create a line splitter using the default newline separator. Convenience method equivalent to `LineSplit::new(content, &Separator::Newline)`.

(content: &'a [u8])

Source from the content-addressed store, hash-verified

195 ///
196 /// Convenience method equivalent to `LineSplit::new(content, &Separator::Newline)`.
197 pub fn lines(content: &'a [u8]) -> Self {
198 // We need a static reference for the default separator
199 static DEFAULT_SEP: Separator = Separator::Newline;
200 Self::new(content, &DEFAULT_SEP)
201 }
202
203 /// Get the current byte position in the original content.
204 pub fn position(&self) -> usize {

Callers 15

apply_stashMethod · 0.45
print_ignore_debugMethod · 0.45
format_outcomeMethod · 0.45
synthesize_messageMethod · 0.45
import_ignore_patternsFunction · 0.45
remove_atomic_sectionFunction · 0.45
parse_pr_numberFunction · 0.45

Calls

no outgoing calls