MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / parseEnums

Function parseEnums

extlibs/catch/include/catch/catch.hpp:10213–10222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10211 namespace Detail {
10212
10213 std::vector<std::string> parseEnums( StringRef enums ) {
10214 auto enumValues = splitStringRef( enums, ',' );
10215 std::vector<std::string> parsed;
10216 parsed.reserve( enumValues.size() );
10217 for( auto const& enumValue : enumValues ) {
10218 auto identifiers = splitStringRef( enumValue, ':' );
10219 parsed.push_back( Catch::trim( identifiers.back() ) );
10220 }
10221 return parsed;
10222 }
10223
10224 EnumInfo::~EnumInfo() {}
10225

Callers 1

makeEnumInfoFunction · 0.85

Calls 5

splitStringRefFunction · 0.85
trimFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected