Go stdlib package — unicode/utf16. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.AppendRune()NeutralAppendRune(a []uint16, r rune) []uint16
AppendRune appends the UTF-16 encoding of the Unicode code point r
.Decode()NeutralDecode(s []uint16) []rune
Decode returns the Unicode code point sequence represented
.DecodeRune()NeutralDecodeRune(r1 rune, r2 rune) rune
DecodeRune returns the UTF-16 decoding of a surrogate pair.
.Encode()NeutralEncode(s []rune) []uint16
Encode returns the UTF-16 encoding of the Unicode code point sequence s.
.EncodeRune()NeutralEncodeRune(r rune) (rune, rune)
EncodeRune returns the UTF-16 surrogate pair r1, r2 for the given rune.
.IsSurrogate()NeutralIsSurrogate(r rune) bool
IsSurrogate reports whether the specified Unicode code point
| FQN | Field | |
|---|---|---|
| unicode/utf16 | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # unicode/utf16