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

Class cmStrCmp

Source/cmStringAlgorithms.h:32–43  ·  view source on GitHub ↗

Callable string comparison struct. */

Source from the content-addressed store, hash-verified

30
31/** Callable string comparison struct. */
32struct cmStrCmp
33{
34 cmStrCmp(std::string str)
35 : Test_(std::move(str))
36 {
37 }
38
39 bool operator()(cm::string_view sv) const { return this->Test_ == sv; }
40
41private:
42 std::string const Test_;
43};
44
45/**
46 * Test if two strings are identical, ignoring case.

Callers 1

CompileFeatureKnownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…