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

Method tokenize_line

atomic-core/src/record/workflow/crdt/tokenize/mod.rs:152–154  ·  view source on GitHub ↗

Tokenizes a single line of content. This is useful for tokenizing individual lines without creating an iterator over the entire content.

(line_content: &[u8], options: &TokenizeOptions)

Source from the content-addressed store, hash-verified

150 /// This is useful for tokenizing individual lines without creating
151 /// an iterator over the entire content.
152 pub fn tokenize_line(line_content: &[u8], options: &TokenizeOptions) -> TokenizedLine {
153 Self::tokenize_line_internal(line_content, 0, options)
154 }
155
156 /// Internal method to tokenize a line with a specific line number.
157 pub(crate) fn tokenize_line_internal(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected