pub unsafe extern "C" fn rb_str_offset(
str_: VALUE,
pos: c_long,
) -> c_longExpand description
“Inverse” of rb_str_sublen. This function scans the contents to find the
byte index that matches the character index. Generally speaking this is an
O(n) operation. Could be slow.
§@param[in] str The string to scan. @param[in] pos Offset, in characters. @return Offset, in bytes.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3