MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / contains

Method contains

Libraries/Process/Process.cpp:286–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286//-------------------------------------------------------------------------------------------------------
287// ProcessEnvironment
288//-------------------------------------------------------------------------------------------------------
289
290bool SC::ProcessEnvironment::contains(StringSpan variableName, size_t* index) const
291{
292 for (size_t idx = 0; idx < numberOfEnvironment; ++idx)
293 {
294 StringSpan name, value;
295 SC_TRY(get(idx, name, value));
296 if (name == variableName)
297 {
298 if (index != nullptr)
299 {
300 *index = idx;
301 }
302 return true;
303 }
304 }
305 return false;

Callers 5

simpleMethod · 0.45
VectorMapTestMethod · 0.45
vectorMapSnippetMethod · 0.45
testBasicTypeMethod · 0.45
virtualMemoryDumpMethod · 0.45

Calls 1

getFunction · 0.85

Tested by 5

simpleMethod · 0.36
VectorMapTestMethod · 0.36
vectorMapSnippetMethod · 0.36
testBasicTypeMethod · 0.36
virtualMemoryDumpMethod · 0.36