MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / isSpaceInParseArray

Function isSpaceInParseArray

pkg/sql/sem/tree/parse_array.go:31–36  ·  view source on GitHub ↗

isSpaceInParseArray returns true if the rune is a space. To match Postgres, 0x85 and 0xA0 are not treated as whitespace.

(r rune)

Source from the content-addressed store, hash-verified

29// isSpaceInParseArray returns true if the rune is a space. To match Postgres,
30// 0x85 and 0xA0 are not treated as whitespace.
31func isSpaceInParseArray(r rune) bool {
32 if r != 0x85 && r != 0xA0 && unicode.IsSpace(r) {
33 return true
34 }
35 return false
36}
37
38var asciiSpace = [256]uint8{'\t': 1, '\n': 1, '\v': 1, '\f': 1, '\r': 1, ' ': 1}
39

Callers 1

eatWhitespaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…