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

Function MatchExport

Source/cmInstallCommand.cxx:2042–2052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2040
2041#ifndef CMAKE_BOOTSTRAP
2042cm::optional<cm::string_view> MatchExport(cm::string_view directive,
2043 std::string const& exportName)
2044{
2045 std::string::size_type const l = exportName.size();
2046 if (directive.substr(0, l) == exportName) {
2047 if (directive.size() > l && directive[l] == ':') {
2048 return directive.substr(l + 1);
2049 }
2050 }
2051 return cm::nullopt;
2052}
2053
2054void AssignValue(std::string& dest, std::string const& value)
2055{

Callers 1

HandleExportModeFunction · 0.85

Calls 2

sizeMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…