SYS-REQ-001 Find position of next character which is not whitespace
(data []byte)
| 137 | // SYS-REQ-001 |
| 138 | // Find position of next character which is not whitespace |
| 139 | func nextToken(data []byte) int { |
| 140 | for i, c := range data { |
| 141 | switch c { |
| 142 | case ' ', '\n', '\r', '\t': |
| 143 | continue |
| 144 | default: |
| 145 | return i |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | return -1 |
| 150 | } |
| 151 | |
| 152 | // SYS-REQ-001 |
| 153 | // Find position of last character which is not whitespace |
no outgoing calls
searching dependent graphs…