lisette-stdlib 0.1.13

Little language inspired by Rust that compiles to Go
Documentation
// Generated by Lisette bindgen
// Source: unicode/utf16 (Go stdlib)
// Go: 1.25.5
// Lisette: 0.1.12

/// AppendRune appends the UTF-16 encoding of the Unicode code point r
/// to the end of p and returns the extended buffer. If the rune is not
/// a valid Unicode code point, it appends the encoding of U+FFFD.
pub fn AppendRune(mut a: Slice<uint16>, r: int32) -> Slice<uint16>

/// Decode returns the Unicode code point sequence represented
/// by the UTF-16 encoding s.
pub fn Decode(s: Slice<uint16>) -> Slice<int32>

/// DecodeRune returns the UTF-16 decoding of a surrogate pair.
/// If the pair is not a valid UTF-16 surrogate pair, DecodeRune returns
/// the Unicode replacement code point U+FFFD.
pub fn DecodeRune(r1: int32, r2: int32) -> int32

/// Encode returns the UTF-16 encoding of the Unicode code point sequence s.
pub fn Encode(s: Slice<int32>) -> Slice<uint16>

/// EncodeRune returns the UTF-16 surrogate pair r1, r2 for the given rune.
/// If the rune is not a valid Unicode code point or does not need encoding,
/// EncodeRune returns U+FFFD, U+FFFD.
pub fn EncodeRune(r: int32) -> (int32, int32)

/// IsSurrogate reports whether the specified Unicode code point
/// can appear in a surrogate pair.
pub fn IsSurrogate(r: int32) -> bool

/// RuneLen returns the number of 16-bit words in the UTF-16 encoding of the rune.
/// It returns -1 if the rune is not a valid value to encode in UTF-16.
pub fn RuneLen(r: int32) -> int