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

Method utf16Reader

string_imported.go:240–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238}
239
240func (i *importedString) utf16Reader() utf16Reader {
241 if i.scanned {
242 if i.u != nil {
243 return i.u.utf16Reader()
244 }
245 return asciiString(i.s).utf16Reader()
246 }
247 return &stringUtf16Reader{
248 s: i.s,
249 }
250}
251
252func (i *importedString) utf16RuneReader() io.RuneReader {
253 if i.scanned {

Callers

nothing calls this directly

Calls 2

asciiStringTypeAlias · 0.85
utf16ReaderMethod · 0.65

Tested by

no test coverage detected