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

Unified Diff: third_party/WebKit/Source/platform/text/LocaleWin.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/LocaleWin.cpp
diff --git a/third_party/WebKit/Source/platform/text/LocaleWin.cpp b/third_party/WebKit/Source/platform/text/LocaleWin.cpp
index 01b93a23eeb0016f512a5382e3a7f7a0d2cb841d..35a6ec7e8a8115e8ff44a18bc4c2d5e4bbd05ae8 100644
--- a/third_party/WebKit/Source/platform/text/LocaleWin.cpp
+++ b/third_party/WebKit/Source/platform/text/LocaleWin.cpp
@@ -169,7 +169,7 @@ static void commitLiteralToken(StringBuilder& literalBuffer, StringBuilder& conv
{
if (literalBuffer.length() <= 0)
return;
- DateTimeFormat::quoteAndAppendLiteral(literalBuffer.toString(), converted);
+ DateTimeFormat::quoteAndappend(literalBuffer.toString(), converted);
literalBuffer.clear();
}
@@ -233,9 +233,9 @@ static String convertWindowsDateTimeFormat(const String& format)
if (count <= 2)
converted.append(format, symbolStart, count);
else if (count == 3)
- converted.appendLiteral("EEE");
+ converted.append("EEE");
else
- converted.appendLiteral("EEEE");
+ converted.append("EEEE");
} else if (ch == 'g') {
if (count == 1) {
converted.append('G');
@@ -381,7 +381,7 @@ String LocaleWin::shortTimeFormat()
format = getLocaleInfoString(LOCALE_STIMEFORMAT);
StringBuilder builder;
builder.append(getLocaleInfoString(LOCALE_STIME));
- builder.appendLiteral("ss");
+ builder.append("ss");
size_t pos = format.reverseFind(builder.toString());
if (pos != kNotFound)
format.remove(pos, builder.length());
« no previous file with comments | « third_party/WebKit/Source/platform/text/LocaleICUTest.cpp ('k') | third_party/WebKit/Source/platform/text/PlatformLocale.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698