Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Unified Diff: src/IceTranslator.cpp

Issue 1838753002: Subzero: Remove IceString. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceTranslator.h ('k') | src/IceTypes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTranslator.cpp
diff --git a/src/IceTranslator.cpp b/src/IceTranslator.cpp
index ce54c218405d6c7466715f73b76ed27096728b75..04e2ffd9aee677c91a34bf5cf1617e58a4945e7a 100644
--- a/src/IceTranslator.cpp
+++ b/src/IceTranslator.cpp
@@ -28,7 +28,8 @@ Translator::Translator(GlobalContext *Ctx)
: Ctx(Ctx), NextSequenceNumber(GlobalContext::getFirstSequenceNumber()),
ErrorStatus() {}
-IceString Translator::createUnnamedName(const IceString &Prefix, SizeT Index) {
+std::string Translator::createUnnamedName(const std::string &Prefix,
+ SizeT Index) {
if (Index == 0)
return Prefix;
std::string Buffer;
@@ -37,8 +38,9 @@ IceString Translator::createUnnamedName(const IceString &Prefix, SizeT Index) {
return StrBuf.str();
}
-bool Translator::checkIfUnnamedNameSafe(const IceString &Name, const char *Kind,
- const IceString &Prefix) {
+bool Translator::checkIfUnnamedNameSafe(const std::string &Name,
+ const char *Kind,
+ const std::string &Prefix) {
if (Name.find(Prefix) == 0) {
for (size_t i = Prefix.size(); i < Name.size(); ++i) {
if (!isdigit(Name[i])) {
« no previous file with comments | « src/IceTranslator.h ('k') | src/IceTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698