Read an ice string token from the raw string until a space is encountered Or the end of the string, we imply that ice string are UTF-8 encoded.
(raw string, start int)
| 967 | // Read an ice string token from the raw string until a space is encountered |
| 968 | // Or the end of the string, we imply that ice string are UTF-8 encoded. |
| 969 | func readCandidateStringToken(raw string, start int) (string, int) { |
| 970 | for i, char := range raw[start:] { |
| 971 | if char == 0x20 { // SP |
| 972 | return raw[start : start+i], start + i + 1 |
| 973 | } |
| 974 | } |
| 975 | |
| 976 | return raw[start:], len(raw) |
| 977 | } |
| 978 | |
| 979 | // Read a digit token from the raw string |
| 980 | // stop reading when a space is encountered or the end of the string. |
no outgoing calls
no test coverage detected
searching dependent graphs…