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