MCPcopy Create free account
hub / github.com/Kitware/CMake / GetWideExtension

Method GetWideExtension

Source/cmCMakePath.cxx:43–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43cmCMakePath cmCMakePath::GetWideExtension() const
44{
45 auto file = this->Path.filename().string();
46 if (file.empty() || file == "." || file == "..") {
47 return cmCMakePath{};
48 }
49
50 auto pos = file.find('.', file[0] == '.' ? 1 : 0);
51 if (pos != std::string::npos) {
52 return cm::string_view(file.data() + pos, file.length() - pos);
53 }
54
55 return cmCMakePath{};
56}
57
58cmCMakePath cmCMakePath::GetNarrowStem() const
59{

Callers 2

EvaluateMethod · 0.80
HandleGetCommandFunction · 0.80

Calls 5

lengthMethod · 0.80
stringMethod · 0.45
emptyMethod · 0.45
findMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected