Skip to main content

unit_to_byte

Function unit_to_byte 

Source
fn unit_to_byte(s: &str, n: usize) -> usize
Expand description

UTF-16 の位置 n に対応するバイト位置(範囲外は末尾)。