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

Method writeASCII

string_unicode.go:247–253  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

245}
246
247func (b *StringBuilder) writeASCII(s string) {
248 if b.ascii() {
249 b.asciiBuilder.WriteString(s)
250 } else {
251 b.unicodeBuilder.writeASCIIString(s)
252 }
253}
254
255func (b *StringBuilder) WriteRune(r rune) {
256 if r < utf8.RuneSelf {

Callers 2

formatStackMethod · 0.95
WriteToValueBuilderMethod · 0.80

Calls 3

asciiMethod · 0.95
WriteStringMethod · 0.80
writeASCIIStringMethod · 0.80

Tested by

no test coverage detected