Changed splitString to splitStringRef
Now takes and returns StringRefs
This commit is contained in:
1 parent
02f13cf95a
commit
9d5d719868
5 files changed
+13
-10
No files matched your search
@@ -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