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

Function cmHasLiteralPrefix

Source/cmStringAlgorithms.h:326–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324/** Returns true if string @a str starts with string @a prefix. */
325template <size_t N>
326inline bool cmHasLiteralPrefix(cm::string_view str, char const (&prefix)[N])
327{
328 return cmHasPrefix(str, cm::string_view(prefix, N - 1));
329}
330
331/** Returns true if string @a str ends with the character @a suffix. */
332inline bool cmHasSuffix(cm::string_view str, char suffix)

Callers 15

testStringAlgorithmsFunction · 0.85
doWriteFunction · 0.85
ProcessModuleMethod · 0.85
HandleLevel2Method · 0.85
IsLinkLookupScopeMethod · 0.85
cmLinkItemValidForDeviceFunction · 0.85
CreateBuildSettingsMethod · 0.85
CreateXCodeObjectsMethod · 0.85
AppendDefinesMethod · 0.85

Calls 1

cmHasPrefixFunction · 0.85

Tested by 10

testStringAlgorithmsFunction · 0.68
RunMethod · 0.68
ProcessHandlerMethod · 0.68
LogFailedTestsMethod · 0.68
DoHeaderLineMethod · 0.68
HandleCDashUploadFileMethod · 0.68
IsLaunchedErrorFileMethod · 0.68
IsLaunchedWarningFileMethod · 0.68
HandleGCovCoverageMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…