2
0
Ficheiros
rocm-systems/projects/hip/hipify-clang/src/StringUtils.h
T
Evgeny Mankov 883f902eaf [HIPIFY][fix] Fix typo and functions' string arguments
+ Fix typo with missing comma in counterNames array
+ Change std::string argument to const std::string& argument in all functions


[ROCm/hip commit: eff5d3fc1b]
2018-11-01 16:57:57 +03:00

15 linhas
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);