MCPcopy Index your code
hub / github.com/RustPython/RustPython / wide_str

Function wide_str

crates/vm/src/stdlib/_wmi.rs:275–277  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

273 }
274
275 fn wide_str(s: &str) -> Vec<u16> {
276 s.encode_utf16().chain(core::iter::once(0)).collect()
277 }
278
279 unsafe fn wcslen(s: *const u16) -> usize {
280 unsafe {

Callers 2

query_thread_implFunction · 0.85
exec_queryFunction · 0.85

Calls 3

onceFunction · 0.85
collectMethod · 0.80
chainMethod · 0.80

Tested by

no test coverage detected