Files
rocm-systems/hipamd/hipify-clang/src/StringUtils.h
T

15 líneas
329 B
C++
Original Vista normal Histórico

#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.
*/
2018-03-12 11:29:03 +05:30
void removePrefixIfPresent(std::string& s, std::string prefix);