Lines Matching refs:content
42 bool FileOperator::Read(const std::string &path, std::string &content)
51 content.append(sLine);
56 bool FileOperator::Write(const std::string &path, const std::string &content, int32_t flags, mode_t mode)
58 IMSA_HILOGD("content: %{public}s.", content.c_str());
64 auto ret = write(fd, content.c_str(), content.size());
74 bool FileOperator::Read(const std::string &path, const std::string &key, std::string &content)
91 content = Read(realPath, key);
92 if (!content.empty()) {
97 return !content.empty();
102 std::string content;
103 bool ret = Read(path, content);
108 if (content.find(key) == std::string::npos) {
112 return content;