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

Unified Diff: Source/core/platform/text/LocaleICU.cpp

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 years, 4 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 | « Source/core/platform/text/DateTimeFormat.cpp ('k') | Source/core/platform/text/TextBreakIteratorICU.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/text/LocaleICU.cpp
diff --git a/Source/core/platform/text/LocaleICU.cpp b/Source/core/platform/text/LocaleICU.cpp
index e94fed94b72368a82d642622a03d34160dc46b0e..7b5efcd142cf0a5f035eb917d46ca7a003996682 100644
--- a/Source/core/platform/text/LocaleICU.cpp
+++ b/Source/core/platform/text/LocaleICU.cpp
@@ -311,14 +311,14 @@ String LocaleICU::dateFormat()
if (!m_dateFormat.isNull())
return m_dateFormat;
if (!initializeShortDateFormat())
- return ASCIILiteral("yyyy-MM-dd");
+ return "yyyy-MM-dd";
m_dateFormat = getDateFormatPattern(m_shortDateFormat);
return m_dateFormat;
}
static String getFormatForSkeleton(const char* locale, const String& skeleton)
{
- String format = ASCIILiteral("yyyy-MM");
+ String format = "yyyy-MM";
UErrorCode status = U_ZERO_ERROR;
UDateTimePatternGenerator* patternGenerator = udatpg_open(locale, &status);
if (!patternGenerator)
@@ -344,7 +344,7 @@ String LocaleICU::monthFormat()
return m_monthFormat;
// Gets a format for "MMMM" because Windows API always provides formats for
// "MMMM" in some locales.
- m_monthFormat = getFormatForSkeleton(m_locale.data(), ASCIILiteral("yyyyMMMM"));
+ m_monthFormat = getFormatForSkeleton(m_locale.data(), "yyyyMMMM");
return m_monthFormat;
}
@@ -352,7 +352,7 @@ String LocaleICU::shortMonthFormat()
{
if (!m_shortMonthFormat.isNull())
return m_shortMonthFormat;
- m_shortMonthFormat = getFormatForSkeleton(m_locale.data(), ASCIILiteral("yyyyMMM"));
+ m_shortMonthFormat = getFormatForSkeleton(m_locale.data(), "yyyyMMM");
return m_shortMonthFormat;
}
« no previous file with comments | « Source/core/platform/text/DateTimeFormat.cpp ('k') | Source/core/platform/text/TextBreakIteratorICU.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698