MCPcopy Create free account
hub / github.com/Samsung/UTopia / isHeaderFile

Function isHeaderFile

lib/utils/StringUtil.cpp:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bool isHeaderFile(std::string path) {
68
69 try {
70 std::regex path_regex("\\.h$");
71 std::sregex_iterator it(path.begin(), path.end(), path_regex);
72 std::sregex_iterator end;
73 if (it != end) {
74 return true;
75 }
76 return false;
77 } catch (std::regex_error &E) {
78 return false;
79 }
80}
81
82// TOBE : handle anonymous namespace
83std::string getClassNameWithNamespace(std::string FullMethodName) {

Callers 2

checkMethod · 0.85
TESTFunction · 0.85

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by 1

TESTFunction · 0.68