[][src]Function voca_rs::chop::code_point_at

pub fn code_point_at(subject: &str, position: usize) -> Vec<u16>

Get the Unicode code point value of the character at position. NOTE: Unicode escape must not be a surrogate

Arguments

Example

use voca_rs::*;
chop::code_point_at("rain", 1);
// => [97]
chop::code_point_at("cafe\u{0301}", 4);
// => [101, 769]
use voca_rs::Voca;
"rain"._code_point_at(1);
// => [97]