Save data "buf" into file "name" returning true if successful, false otherwise. If "binary" is false data is written using ifstream's text mode, otherwise data is written with no transcoding.
| 438 | // data is written using ifstream's text mode, otherwise |
| 439 | // data is written with no transcoding. |
| 440 | inline bool SaveFile(const char *name, const std::string &buf, bool binary) { |
| 441 | return SaveFile(name, buf.c_str(), buf.size(), binary); |
| 442 | } |
| 443 | |
| 444 | // Functionality for minimalistic portable path handling. |
| 445 |
no test coverage detected