mirror of
https://github.com/catchorg/Catch2.git
synced 2025-12-15 06:32:12 +01:00
Changed splitString to splitStringRef
Now takes and returns StringRefs
This commit is contained in:
@@ -19,11 +19,11 @@ namespace Catch {
|
||||
namespace Detail {
|
||||
|
||||
std::vector<std::string> parseEnums( StringRef enums ) {
|
||||
auto enumValues = splitString( enums, ',' );
|
||||
auto enumValues = splitStringRef( enums, ',' );
|
||||
std::vector<std::string> parsed;
|
||||
parsed.reserve( enumValues.size() );
|
||||
for( auto const& enumValue : enumValues ) {
|
||||
auto identifiers = splitString( enumValue, ':' );
|
||||
auto identifiers = splitStringRef( enumValue, ':' );
|
||||
parsed.push_back( Catch::trim( identifiers.back() ) );
|
||||
}
|
||||
return parsed;
|
||||
|
||||
Reference in New Issue
Block a user