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

Function cmHasLiteralSuffix

Source/cmStringAlgorithms.h:357–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355/** Returns true if string @a str ends with string @a suffix. */
356template <size_t N>
357inline bool cmHasLiteralSuffix(cm::string_view str, char const (&suffix)[N])
358{
359 return cmHasSuffix(str, cm::string_view(suffix, N - 1));
360}
361
362/** Removes an existing suffix character of from the string @a str. */
363inline void cmStripSuffixIfExists(std::string& str, char suffix)

Callers 15

testStringAlgorithmsFunction · 0.85
ComputeLinkLibrariesMethod · 0.85
InitFromInfoMethod · 0.85
GenDefFileMethod · 0.85
GetLocationMethod · 0.85
EnableLanguageMethod · 0.85
GenerateBuildCommandMethod · 0.85
CanonicalToolsetNameMethod · 0.85

Calls 1

cmHasSuffixFunction · 0.85

Tested by 6

testStringAlgorithmsFunction · 0.68
IsLaunchedErrorFileMethod · 0.68
IsLaunchedWarningFileMethod · 0.68
RunMakeCommandMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…