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

Method string

Source/cmPkgConfigResolver.cxx:72–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70} // namespace
71
72std::string cmPkgConfigVersionReq::string() const
73{
74 switch (Operation) {
75 case ANY:
76 return "";
77 case LT:
78 return cmStrCat('<', Version);
79 case LT_EQ:
80 return cmStrCat("<=", Version);
81 case EQ:
82 return cmStrCat('=', Version);
83 case NEQ:
84 return cmStrCat("!=", Version);
85 case GT_EQ:
86 return cmStrCat(">=", Version);
87 case GT:
88 return cmStrCat('>', Version);
89 }
90 return "";
91}
92
93std::string cmPkgConfigResult::StrOrDefault(std::string const& key,
94 cm::string_view def)

Callers 15

testConstructorsFunction · 0.45
testConcatenationFunction · 0.45
testModifiersFunction · 0.45
testObserversFunction · 0.45
testGenerationFunction · 0.45
testNonMemberFunctionsFunction · 0.45
cmCMakePathClass · 0.45
StringMethod · 0.45
cmCMakePath.cxxFile · 0.45
GetWideExtensionMethod · 0.45
GetNarrowStemMethod · 0.45
GetNativePathMethod · 0.45

Calls 1

cmStrCatFunction · 0.70

Tested by 6

testConstructorsFunction · 0.36
testConcatenationFunction · 0.36
testModifiersFunction · 0.36
testObserversFunction · 0.36
testGenerationFunction · 0.36
testNonMemberFunctionsFunction · 0.36