ArgParseCpp/include/utils.hpp

17 lines
582 B
C++
Raw Normal View History

#ifndef DEF_Utils
#define DEF_Utils
#include <string>
#include <vector>
#define PRINT_VAR(v); std::cout << #v << "\t = "; std::cout << (v) << "\n";
#define PRINT_VEC(v); std::cout << #v << "\t =\n"; for(unsigned int i_PRINT_VEC = 0 ; i_PRINT_VEC < (v).size() ; i_PRINT_VEC++) { std::cout << (v)[i_PRINT_VEC] << "\n"; }
2021-12-11 20:21:08 +01:00
/// Returns true if the string str contains the character c.
bool StringContains(const std::string & str, char c);
/// Returns true if the string str starts with beginning
bool StringStartsWith(const std::string & str, const std::string & beginning);
#endif