15bool c_in_s(
char c,
const std::string& s);
25 return find(vec.begin(), vec.end(), elem) != vec.end();
32char s_to_c(
const std::string& s);
52void replace(std::string& str,
const std::string& from,
const std::string& to);
Definition utilities.cpp:7
bool elem_in_vec(T elem, const std::vector< T > &vec)
Definition utilities.h:24
char s_to_c(const string &s)
Definition utilities.cpp:11
void replace(string &str, const string &from, const string &to)
Заменяет кусочек строки другим, модифицируя саму строку
Definition utilities.cpp:36
bool c_in_s(char c, const string &s)
Definition utilities.cpp:9
double absolute(double x)
Абсолютное значения числа
Definition utilities.cpp:34
bool is_double(const std::string &str)
Definition utilities.cpp:18
string spaces_deleted(const string &s)
Definition utilities.cpp:27