Check if the character is ASCII.
(b []byte, i int)
| 78 | |
| 79 | // Check if the character is ASCII. |
| 80 | func is_ascii(b []byte, i int) bool { |
| 81 | return b[i] <= 0x7F |
| 82 | } |
| 83 | |
| 84 | // Check if the character at the start of the buffer can be printed unescaped. |
| 85 | func is_printable(b []byte, i int) bool { |
no outgoing calls
no test coverage detected