48abb4a36b
+ Fix typo with missing comma in counterNames array + Change std::string argument to const std::string& argument in all functions
15 lines
340 B
C++
15 lines
340 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include "llvm/ADT/StringRef.h"
|
|
|
|
/**
|
|
* Remove double-quotes from the start/end of a string, if present.
|
|
*/
|
|
llvm::StringRef unquoteStr(llvm::StringRef s);
|
|
|
|
/**
|
|
* If `s` starts with `prefix`, remove it. Otherwise, does nothing.
|
|
*/
|
|
void removePrefixIfPresent(std::string &s, const std::string& prefix);
|