utils.h
Go to the documentation of this file.
1 
28 #ifndef LOG_VIEW_UTILS_H_
29 #define LOG_VIEW_UTILS_H_
30 
31 #include <algorithm>
32 #include <cctype>
33 #include <string>
34 #include <vector>
35 
36 namespace log_view {
37 
39 
40 std::string toString(double val, int precision);
41 
42 int ctrl(char key);
43 
44 std::vector<std::string> split(const std::string &text, char sep);
45 
46 bool contains(const std::string& text, const std::string& substr, bool case_insensitive);
47 
48 std::vector<size_t> find(const std::string& text, const std::string& substr, bool case_insensitive);
49 
50 void toClipboard(const std::string& text);
51 
52 } // namespace log_view
53 
54 #endif // LOG_VIEW_UTILS_H_
std::vector< size_t > find(const std::string &text, const std::string &substr, bool case_insensitive)
Definition: utils.cpp:85
std::vector< std::string > split(const std::string &text, char sep)
Definition: utils.cpp:44
std::string toString(double val, int precision)
Definition: utils.cpp:37
bool contains(const std::string &text, const std::string &substr, bool case_insensitive)
Definition: utils.cpp:67
void toClipboard(const std::string &text)
Definition: utils.cpp:125
Color
Definition: utils.h:38
int ctrl(char key)
Definition: utils.cpp:121


log_view
Author(s): Marc Alban
autogenerated on Thu Mar 4 2021 03:21:52