MCPcopy Create free account
hub / github.com/cogentcore/core / AddQuotes

Function AddQuotes

shell/token.go:231–233  ·  view source on GitHub ↗

AddQuotes surrounds given string with quotes, also escaping any contained quotes

(str string)

Source from the content-addressed store, hash-verified

229// AddQuotes surrounds given string with quotes,
230// also escaping any contained quotes
231func AddQuotes(str string) string {
232 return `"` + EscapeQuotes(str) + `"`
233}
234
235// IsBracket returns true if the given token is a bracket delimiter:
236// paren, brace, bracket

Callers 1

TranspileExecMethod · 0.85

Calls 1

EscapeQuotesFunction · 0.85

Tested by

no test coverage detected