MCPcopy Create free account
hub / github.com/apache/datafusion / trailing_bytes

Function trailing_bytes

datafusion/functions/src/string/common.rs:58–60  ·  view source on GitHub ↗
(bytes: &[u8], byte: u8)

Source from the content-addressed store, hash-verified

56/// Returns the number of trailing bytes matching `byte`
57#[inline]
58fn trailing_bytes(bytes: &[u8], byte: u8) -> usize {
59 bytes.iter().rev().take_while(|&&b| b == byte).count()
60}
61
62/// Left trim - removes leading characters
63pub(crate) struct TrimLeft;

Callers 1

trim_ascii_charMethod · 0.85

Calls 2

countMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…