Lines Matching refs:string
28 bool parseBytesString(std::string in, std::vector<uint8_t>& out) { in parseBytesString()
29 vector<string> values = Split(in, ":"); in parseBytesString()
31 for (string value : values) { in parseBytesString()
34 string hexified = "0x"; in parseBytesString()
46 std::string ConfigValue::getString() const { in getString()
61 bool ConfigValue::parseFromString(std::string in) { in parseFromString()
85 void ConfigFile::parseFromFile(const std::string& file_name) { in parseFromFile()
86 string config; in parseFromFile()
93 void ConfigFile::parseFromString(const std::string& config) { in parseFromString()
95 string line; in parseFromString()
103 CHECK(search != string::npos); in parseFromString()
105 string key(Trim(line.substr(0, search))); in parseFromString()
106 string value_string(Trim(line.substr(search + 1, string::npos))); in parseFromString()
118 bool ConfigFile::hasKey(const std::string& key) { in hasKey()
122 ConfigValue& ConfigFile::getValue(const std::string& key) { in getValue()
128 std::string ConfigFile::getString(const std::string& key) { in getString()
132 unsigned ConfigFile::getUnsigned(const std::string& key) { in getUnsigned()
136 std::vector<uint8_t> ConfigFile::getBytes(const std::string& key) { in getBytes()