MCPcopy Create free account
hub / github.com/Profactor/cv-plot / parseEnums

Function parseEnums

CvPlot/ext/catch2/inc/catch.hpp:10480–10488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10478 }
10479
10480 std::vector<StringRef> parseEnums( StringRef enums ) {
10481 auto enumValues = splitStringRef( enums, ',' );
10482 std::vector<StringRef> parsed;
10483 parsed.reserve( enumValues.size() );
10484 for( auto const& enumValue : enumValues ) {
10485 parsed.push_back(trim(extractInstanceName(enumValue)));
10486 }
10487 return parsed;
10488 }
10489
10490 EnumInfo::~EnumInfo() {}
10491

Callers 1

makeEnumInfoFunction · 0.85

Calls 4

splitStringRefFunction · 0.85
trimFunction · 0.85
extractInstanceNameFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected