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

Unified Diff: base/string_util_icu.cc

Issue 171012: Use 'icu::' namespace explicitly (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « base/file_util_posix.cc ('k') | base/time_format.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_util_icu.cc
===================================================================
--- base/string_util_icu.cc (revision 23559)
+++ base/string_util_icu.cc (working copy)
@@ -631,10 +631,10 @@
namespace {
struct NumberFormatSingletonTraits
- : public DefaultSingletonTraits<NumberFormat> {
- static NumberFormat* New() {
+ : public DefaultSingletonTraits<icu::NumberFormat> {
+ static icu::NumberFormat* New() {
UErrorCode status = U_ZERO_ERROR;
- NumberFormat* formatter = NumberFormat::createInstance(status);
+ icu::NumberFormat* formatter = icu::NumberFormat::createInstance(status);
DCHECK(U_SUCCESS(status));
return formatter;
}
@@ -647,14 +647,14 @@
} // namespace
std::wstring FormatNumber(int64 number) {
- NumberFormat* number_format =
- Singleton<NumberFormat, NumberFormatSingletonTraits>::get();
+ icu::NumberFormat* number_format =
+ Singleton<icu::NumberFormat, NumberFormatSingletonTraits>::get();
if (!number_format) {
// As a fallback, just return the raw number in a string.
return StringPrintf(L"%lld", number);
}
- UnicodeString ustr;
+ icu::UnicodeString ustr;
number_format->format(number, ustr);
#if defined(WCHAR_T_IS_UTF16)
« no previous file with comments | « base/file_util_posix.cc ('k') | base/time_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698