MCPcopy Create free account
hub / github.com/dop251/goja / stringValueFromRaw

Function stringValueFromRaw

string.go:141–146  ·  view source on GitHub ↗
(raw unistring.String)

Source from the content-addressed store, hash-verified

139}
140
141func stringValueFromRaw(raw unistring.String) String {
142 if b := raw.AsUtf16(); b != nil {
143 return unicodeString(b)
144 }
145 return asciiString(raw)
146}
147
148func (s *stringObject) init() {
149 s.baseObject.init()

Callers 15

emitGetterMethod · 0.85
compileStringLiteralMethod · 0.85
definePropertyStrMethod · 0.85
hasStrMethod · 0.85
getStrMethod · 0.85
setStrMethod · 0.85
deleteStrMethod · 0.85
initMethod · 0.85
nextMethod · 0.85
stringKeysMethod · 0.85
execMethod · 0.85

Calls 3

unicodeStringTypeAlias · 0.85
asciiStringTypeAlias · 0.85
AsUtf16Method · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…