Skip to main content

nova_rt_str_len_chars

Function nova_rt_str_len_chars 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn nova_rt_str_len_chars( s: *const NovaStr, ) -> i64
Expand description

Number of Unicode scalar values in s.

Separate from nova_rt_str_chars so that asking a string’s length does not allocate an array of its characters.

§Safety

s must point to a valid NovaStr.