MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / utf16_count

Function utf16_count

src/blade/preprocessor.rs:433–435  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

431}
432
433fn utf16_count(s: &str) -> usize {
434 s.encode_utf16().count()
435}
436
437#[cfg(test)]
438mod tests {

Callers 2

preprocessFunction · 0.85
flush_bufferFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected