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

Method trim_ascii_char

datafusion/functions/src/string/common.rs:77–80  ·  view source on GitHub ↗
(input: &str, byte: u8)

Source from the content-addressed store, hash-verified

75
76 #[inline]
77 fn trim_ascii_char(input: &str, byte: u8) -> (&str, u32) {
78 let start = leading_bytes(input.as_bytes(), byte);
79 (&input[start..], start as u32)
80 }
81}
82
83/// Right trim - removes trailing characters

Callers

nothing calls this directly

Calls 3

leading_bytesFunction · 0.85
trailing_bytesFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected