| 141 | } |
| 142 | |
| 143 | bool CanOpenFileUtf8(const std::string& path) { |
| 144 | FILE* fp = OpenFileUtf8(path, "rb"); |
| 145 | if (fp == nullptr) { |
| 146 | return false; |
| 147 | } |
| 148 | fclose(fp); |
| 149 | return true; |
| 150 | } |
| 151 | |
| 152 | std::string ReadFileUtf8(const std::string& path) { |
| 153 | FILE* fp = OpenFileUtf8(path, "rb"); |
no test coverage detected