Lines Matching refs:filePath
40 bool LoadStringFromFile(const string& filePath, string& content) in LoadStringFromFile() argument
42 ifstream file(filePath.c_str()); in LoadStringFromFile()
59 bool LoadBufferFromNodeFile(const string& filePath, vector<char>& content) in LoadBufferFromNodeFile() argument
62 if (!PathToRealPath(filePath, realPath)) { in LoadBufferFromNodeFile()
91 bool LoadBufferFromFile(const std::string& filePath, std::vector<char>& content) in LoadBufferFromFile() argument
94 file.open(filePath.c_str(), ios::in | ios::binary); in LoadBufferFromFile()
107 return LoadBufferFromNodeFile(filePath, content); in LoadBufferFromFile()
125 bool SaveStringToFile(const std::string& filePath, const std::string& content, bool truncated) in SaveStringToFile() argument
133 file.open(filePath.c_str(), ios::out | ios::trunc); in SaveStringToFile()
135 file.open(filePath.c_str(), ios::out | ios::app); in SaveStringToFile()
150 bool SaveBufferToFile(const string& filePath, const vector<char>& content, bool truncated) in SaveBufferToFile() argument
156 file.open(filePath.c_str(), mode); in SaveBufferToFile()