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

Function cmHasSuffix

Source/cmStringAlgorithms.h:332–335  ·  view source on GitHub ↗

Returns true if string @a str ends with the character @a suffix. */

Source from the content-addressed store, hash-verified

330
331/** Returns true if string @a str ends with the character @a suffix. */
332inline bool cmHasSuffix(cm::string_view str, char suffix)
333{
334 return !str.empty() && (str.back() == suffix);
335}
336
337/** Returns true if string @a str ends with string @a suffix. */
338inline bool cmHasSuffix(cm::string_view str, cm::string_view suffix)

Callers 15

testStringAlgorithmsFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
AddLinkEntryMethod · 0.85
AddLinkEntriesMethod · 0.85
ParseLinkFeatureFunction · 0.85
RunProcessMethod · 0.85
WriteTargetBuildRulesMethod · 0.85
WriteObjectRuleFilesMethod · 0.85
WriteObjectsVariableMethod · 0.85
WriteObjectsStringsMethod · 0.85

Calls 4

emptyMethod · 0.45
backMethod · 0.45
sizeMethod · 0.45
compareMethod · 0.45

Tested by 1

testStringAlgorithmsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…