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

Method insert

crates/wtf8/src/lib.rs:510–512  ·  view source on GitHub ↗
(&mut self, idx: usize, c: CodePoint)

Source from the content-addressed store, hash-verified

508 /// Inserts a codepoint into this `Wtf8Buf` at a byte position.
509 #[inline]
510 pub fn insert(&mut self, idx: usize, c: CodePoint) {
511 self.insert_wtf8(idx, c.encode_wtf8(&mut [0; MAX_LEN_UTF8]))
512 }
513
514 /// Inserts a WTF-8 slice into this `Wtf8Buf` at a byte position.
515 #[inline]

Callers 15

kv_putFunction · 0.45
mainFunction · 0.45
__call__Method · 0.45
jsontests.pyFile · 0.45
builtin_list.pyFile · 0.45
setup_dynamic_stdlibFunction · 0.45
cmd_patches.pyFile · 0.45
cmd_auto_mark.pyFile · 0.45
cmd_quick.pyFile · 0.45
__main__.pyFile · 0.45

Calls 2

insert_wtf8Method · 0.80
encode_wtf8Method · 0.80

Tested by 4

__call__Method · 0.36
process_instructionMethod · 0.36