Searched refs:IniFile (Results 1 – 7 of 7) sorted by relevance
27 pub struct IniFile { struct34 impl IniFile { argument40 pub fn new(filepath: PathBuf) -> IniFile { in new() argument41 IniFile { data: HashMap::new(), filepath } in new()129 use super::IniFile;157 let mut inifile = IniFile::new(filepath.clone()); in test_read()184 let mut inifile = IniFile::new(filepath.clone()); in test_read_no_newline()198 let mut inifile = IniFile::new(filepath.clone()); in test_read_no_file()214 let mut inifile = IniFile::new(filepath.clone()); in test_read_multiple_lines()231 let mut inifile = IniFile::new(filepath); in test_insert_and_contains_key()[all …]
30 use super::ini_file::IniFile;97 let mut ini_file = IniFile::new(filepath); in get_server_address()
27 bool IniFile::Read() { in Read()53 bool IniFile::Write() { in Write()72 bool IniFile::HasKey(const std::string &key) const { in HasKey()76 std::optional<std::string> IniFile::Get(const std::string &key) const { in Get()82 void IniFile::Set(const std::string &key, std::string_view value) { in Set()
45 IniFile iniFile(tempFileName_); in TEST_P()61 IniFile iniFile(tempFileName); in TEST()85 IniFile iniFile(tempFileName); in TEST()
28 class IniFile {32 explicit IniFile(std::string filepath = "") : filepath(std::move(filepath)) {} in filepath()
93 IniFile iniFile(filepath); in GetServerAddress()
24 use netsim_common::util::ini_file::IniFile;149 let mut ini_file = IniFile::new(filepath); in write_ports_to_ini()