{"modulePath":"github.com/cockroachdb/cockroachdb-parser","version":"v0.25.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package stringencoding\n\n## Variables\n\n```go\nvar (\n\t// DontEscape is a sentinel value for characters that don't need to be escaped.\n\tDontEscape = byte(255)\n\t// EncodeMap specifies how to escape binary data with '\\'.\n\tEncodeMap [256]byte\n\t// HexMap is a mapping from each byte to the `\\x%%` hex form as a []byte.\n\tHexMap [256][]byte\n\t// RawHexMap is a mapping from each byte to the `%%` hex form as a []byte.\n\tRawHexMap [256][]byte\n)\n```\n\n## Functions\n\n```go\nfunc EncodeEscapedChar(\n\tbuf *bytes.Buffer,\n\tentireString string,\n\tcurrentRune rune,\n\tcurrentByte byte,\n\tcurrentIdx int,\n\tquoteChar byte,\n)\n```\nEncodeEscapedChar is used internally to write out a character from a larger string that needs to be escaped to a buffer.\n\n```go\nfunc NeedEscape(ch byte) bool\n```\nNeedEscape returns whether the given byte needs to be escaped.\n\n","path":"github.com/cockroachdb/cockroachdb-parser/pkg/util/stringencoding","name":"stringencoding","synopsis":"","isRedistributable":true}
