sdk/golang/Standard Library/GoUnicodeUtf16
Standard Library

GoUnicodeUtf16

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.

Other Methods

.AppendRune()Neutral
#
Signature
AppendRune(a []uint16, r rune) []uint16

AppendRune appends the UTF-16 encoding of the Unicode code point r

.Decode()Neutral
#
Signature
Decode(s []uint16) []rune

Decode returns the Unicode code point sequence represented

.DecodeRune()Neutral
#
Signature
DecodeRune(r1 rune, r2 rune) rune

DecodeRune returns the UTF-16 decoding of a surrogate pair.

.Encode()Neutral
#
Signature
Encode(s []rune) []uint16

Encode returns the UTF-16 encoding of the Unicode code point sequence s.

.EncodeRune()Neutral
#
Signature
EncodeRune(r rune) (rune, rune)

EncodeRune returns the UTF-16 surrogate pair r1, r2 for the given rune.

.IsSurrogate()Neutral
#
Signature
IsSurrogate(r rune) bool

IsSurrogate reports whether the specified Unicode code point

Fully-Qualified Names

FQNField
unicode/utf16fqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # unicode/utf16