Lines Matching refs:std
35 std::ifstream inFile(filepath); in Read()
41 std::string line; in Read()
42 while (std::getline(inFile, line)) { in Read()
59 std::ofstream outFile(filepath); in Write()
67 outFile << pair.first << "=" << pair.second << std::endl; in Write()
72 bool IniFile::HasKey(const std::string &key) const { in HasKey()
73 return data.find(key) != std::end(data); in HasKey()
76 std::optional<std::string> IniFile::Get(const std::string &key) const { in Get()
78 return (citer == std::end(data)) ? std::nullopt in Get()
79 : std::optional(citer->second); in Get()
82 void IniFile::Set(const std::string &key, std::string_view value) { in Set()
83 data[key] = std::string(value); in Set()