Function code_point_to_pair
pub const fn code_point_to_pair(code_point: u32) -> Option<(u32, u32)>Available on crate features
__ecma and __utils only.Expand description
Converts a Unicode code point to UTF-16 surrogate pair. Returns (high_surrogate, low_surrogate) both as u32.
For code point < 0x10000, which is not represented by a surrogate pair,
returns None