pub fn code_point_at(subject: &str, position: usize) -> Vec<u16>Expand description
Get the Unicode code point value of the character at position.
NOTE: Unicode escape must not be a surrogate
§Arguments
subject- The string to extract from.position- The position to get the code point number.
§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]