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

Unified Diff: third_party/WebKit/Source/platform/text/DateTimeFormat.cpp

Issue 2017053003: Remove StringBuilder::appendLiteral. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 years, 7 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
Index: third_party/WebKit/Source/platform/text/DateTimeFormat.cpp
diff --git a/third_party/WebKit/Source/platform/text/DateTimeFormat.cpp b/third_party/WebKit/Source/platform/text/DateTimeFormat.cpp
index 261458051383f7a2c5d494ddc103fff41ad77f72..8c1a6832312f272b16f57dafbd6f67595a12f46c 100644
--- a/third_party/WebKit/Source/platform/text/DateTimeFormat.cpp
+++ b/third_party/WebKit/Source/platform/text/DateTimeFormat.cpp
@@ -244,7 +244,7 @@ static bool isASCIIAlphabetOrQuote(UChar ch)
return isASCIIAlpha(ch) || ch == '\'';
}
-void DateTimeFormat::quoteAndAppendLiteral(const String& literal, StringBuilder& buffer)
+void DateTimeFormat::quoteAndappend(const String& literal, StringBuilder& buffer)
{
if (literal.length() <= 0)
return;
@@ -263,7 +263,7 @@ void DateTimeFormat::quoteAndAppendLiteral(const String& literal, StringBuilder&
for (unsigned i = 0; i < literal.length(); ++i) {
if (literal[i] == '\'') {
- buffer.appendLiteral("''");
+ buffer.append("''");
} else {
String escaped = literal.substring(i);
escaped.replace("'", "''");
« no previous file with comments | « third_party/WebKit/Source/platform/text/DateTimeFormat.h ('k') | third_party/WebKit/Source/platform/text/LocaleICUTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698