SYS-REQ-115
(_ Config, data []byte)
| 239 | |
| 240 | // SYS-REQ-115 |
| 241 | func nextTokenConfig(_ Config, data []byte) int { |
| 242 | for i, c := range data { |
| 243 | // reqproof:invariant 0 <= i |
| 244 | // reqproof:invariant i <= len(data) |
| 245 | if c == ' ' || c == '\n' || c == '\r' || c == '\t' { |
| 246 | continue |
| 247 | } |
| 248 | return i |
| 249 | } |
| 250 | |
| 251 | return -1 |
| 252 | } |
| 253 | |
| 254 | // SYS-REQ-001 |
| 255 | // Find position of last character which is not whitespace |
no outgoing calls
no test coverage detected