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

Function utf8_acc_cont_byte

crates/wtf8/src/core_str.rs:15–17  ·  view source on GitHub ↗
(ch: u32, byte: u8)

Source from the content-addressed store, hash-verified

13/// Returns the value of `ch` updated with continuation byte `byte`.
14#[inline]
15const fn utf8_acc_cont_byte(ch: u32, byte: u8) -> u32 {
16 (ch << 6) | (byte & CONT_MASK) as u32
17}
18
19/// Checks whether the byte is a UTF-8 continuation byte (i.e., starts with the
20/// bits `10`).

Callers 2

next_code_pointFunction · 0.70
next_code_point_reverseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected