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

Function utf8_acc_cont_byte

crates/sre_engine/src/string.rs:321–323  ·  view source on GitHub ↗
(ch: u32, byte: u8)

Source from the content-addressed store, hash-verified

319/// Returns the value of `ch` updated with continuation byte `byte`.
320#[inline]
321const fn utf8_acc_cont_byte(ch: u32, byte: u8) -> u32 {
322 (ch << 6) | (byte & CONT_MASK) as u32
323}
324
325/// Checks whether the byte is a UTF-8 continuation byte (i.e., starts with the
326/// 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