(searchPath string)
| 63 | } |
| 64 | |
| 65 | func firstSearchPathEntry(searchPath string) string { |
| 66 | searchPath = strings.TrimSpace(searchPath) |
| 67 | inQuotes := false |
| 68 | for i := 0; i < len(searchPath); i++ { |
| 69 | ch := searchPath[i] |
| 70 | if ch == '"' { |
| 71 | if inQuotes && i+1 < len(searchPath) && searchPath[i+1] == '"' { |
| 72 | i++ |
| 73 | continue |
| 74 | } |
| 75 | inQuotes = !inQuotes |
| 76 | continue |
| 77 | } |
| 78 | if ch == ',' && !inQuotes { |
| 79 | return strings.TrimSpace(searchPath[:i]) |
| 80 | } |
| 81 | } |
| 82 | return searchPath |
| 83 | } |
| 84 | |
| 85 | func parseIdentifierPart(s string) (string, bool) { |
| 86 | s = strings.TrimSpace(s) |
no outgoing calls
no test coverage detected