string_is_digit() is not used, so drop it. `string_is_digit()` is
not defined or used, so drop it as well.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
}
}
-bool string_is_digit(std::string s) {
- size_t i = 0;
- while (std::isdigit(s[i]) && i < s.size()) {
- i++;
- }
- return i >= s.size();
-}
-
std::string read_file_to_string(std::string path) {
std::ifstream is(path);
std::stringstream buffer;
std::chrono::time_point<std::chrono::high_resolution_clock> t1, t2;
};
-bool string_is_digit(std::string s);
std::string read_file_to_string(std::string path);
-std::string get_hostname(std::string path);
void promethize(std::string &name);