| 74 | |
| 75 | namespace { |
| 76 | string StripQuote(const string& s) { |
| 77 | int start = s.find_first_not_of("\"\'"); |
| 78 | int end = s.find_last_not_of("\"\'"); |
| 79 | if (start == s.npos || end == s.npos) return ""; |
| 80 | |
| 81 | return s.substr(start, end - start + 1); |
| 82 | } |
| 83 | |
| 84 | tensorflow::Status ReturnError(const std::vector<string>& pieces, int idx) { |
| 85 | string val; |