MCPcopy Create free account
hub / github.com/digama0/lean-sys / lean_string_utf8_at_end

Function lean_string_utf8_at_end

src/string.rs:58–60  ·  view source on GitHub ↗
(s: b_lean_obj_arg, i: b_lean_obj_arg)

Source from the content-addressed store, hash-verified

56
57#[inline]
58pub unsafe fn lean_string_utf8_at_end(s: b_lean_obj_arg, i: b_lean_obj_arg) -> u8 {
59 (!lean_is_scalar(i) || lean_unbox(i) >= lean_string_size(s) - 1) as u8
60}
61
62#[inline(always)]
63pub unsafe fn lean_string_utf8_byte_size(s: b_lean_obj_arg) -> lean_obj_res {

Callers

nothing calls this directly

Calls 3

lean_is_scalarFunction · 0.85
lean_unboxFunction · 0.85
lean_string_sizeFunction · 0.85

Tested by

no test coverage detected