Lines Matching refs:filePath
36 bool RustLoadStringFromFile(const rust::String& filePath, rust::String& content) in RustLoadStringFromFile() argument
38 std::string tmpPath(filePath); in RustLoadStringFromFile()
57 bool RustLoadBufferFromFile(const rust::String& filePath, rust::vec<char>& content) in RustLoadBufferFromFile() argument
59 std::string tmpPath(filePath); in RustLoadBufferFromFile()
68 bool RustSaveBufferToFile(const rust::String& filePath, const rust::vec<char>& content, bool trunca… in RustSaveBufferToFile() argument
70 std::string tmpPath(filePath); in RustSaveBufferToFile()
75 bool RustSaveStringToFile(const rust::String& filePath, const rust::String& content, bool truncated) in RustSaveStringToFile() argument
77 std::string tmpPath(filePath); in RustSaveStringToFile()
110 bool LoadStringFromFile(const string& filePath, string& content) in LoadStringFromFile() argument
112 ifstream file(filePath.c_str()); in LoadStringFromFile()
114 UTILS_LOGD("open file failed! filePath:%{public}s", filePath.c_str()); in LoadStringFromFile()
203 bool SaveStringToFile(const std::string& filePath, const std::string& content, bool truncated /*= t… in SaveStringToFile() argument
212 file.open(filePath.c_str(), ios::out | ios::trunc); in SaveStringToFile()
214 file.open(filePath.c_str(), ios::out | ios::app); in SaveStringToFile()
218 UTILS_LOGD("open file failed! filePath:%{private}s", filePath.c_str()); in SaveStringToFile()
225 filePath.c_str(), content.c_str()); in SaveStringToFile()
258 bool LoadBufferFromNodeFile(const string& filePath, vector<char>& content) in LoadBufferFromNodeFile() argument
261 if (!PathToRealPath(filePath, realPath)) { in LoadBufferFromNodeFile()
262 UTILS_LOGD("filePath to realPath failed! filePath:%{private}s", filePath.c_str()); in LoadBufferFromNodeFile()
294 bool LoadBufferFromFile(const string& filePath, vector<char>& content) in LoadBufferFromFile() argument
297 file.open(filePath.c_str(), ios::in | ios::binary); in LoadBufferFromFile()
299 UTILS_LOGD("open file failed! filePath:%{private}s", filePath.c_str()); in LoadBufferFromFile()
312 return LoadBufferFromNodeFile(filePath, content); in LoadBufferFromFile()
322 UTILS_LOGE("seekg file to begin failed!filePath:%{private}s", filePath.c_str()); in LoadBufferFromFile()
331 bool SaveBufferToFile(const string& filePath, const vector<char>& content, bool truncated /*= true*… in SaveBufferToFile() argument
341 file.open(filePath.c_str(), mode); in SaveBufferToFile()
343 … UTILS_LOGD("open file failed! filePath:%{private}s, mode:%{private}d", filePath.c_str(), mode); in SaveBufferToFile()