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

Unified Diff: base/i18n/time_formatting.h

Issue 7812009: Base: Switch base_i18n to be a separate dll (component build) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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/i18n/rtl.h ('k') | ui/ui_unittests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/time_formatting.h
===================================================================
--- base/i18n/time_formatting.h (revision 97736)
+++ base/i18n/time_formatting.h (working copy)
@@ -9,6 +9,7 @@
#define BASE_I18N_TIME_FORMATTING_H_
#pragma once
+#include "base/i18n/base_i18n_export.h"
#include "base/string16.h"
namespace base {
@@ -28,37 +29,38 @@
};
// Returns the time of day, e.g., "3:07 PM".
-string16 TimeFormatTimeOfDay(const Time& time);
+BASE_I18N_EXPORT string16 TimeFormatTimeOfDay(const Time& time);
// Returns the time of day in the specified hour clock type. e.g.
// "3:07 PM" (type == k12HourClock, ampm == kKeepAmPm).
// "3:07" (type == k12HourClock, ampm == kDropAmPm).
// "15:07" (type == k24HourClock).
-string16 TimeFormatTimeOfDayWithHourClockType(const Time& time,
- HourClockType type,
- AmPmClockType ampm);
+BASE_I18N_EXPORT string16 TimeFormatTimeOfDayWithHourClockType(
+ const Time& time,
+ HourClockType type,
+ AmPmClockType ampm);
// Returns a shortened date, e.g. "Nov 7, 2007"
-string16 TimeFormatShortDate(const Time& time);
+BASE_I18N_EXPORT string16 TimeFormatShortDate(const Time& time);
// Returns a numeric date such as 12/13/52.
-string16 TimeFormatShortDateNumeric(const Time& time);
+BASE_I18N_EXPORT string16 TimeFormatShortDateNumeric(const Time& time);
// Returns a numeric date and time such as "12/13/52 2:44:30 PM".
-string16 TimeFormatShortDateAndTime(const Time& time);
+BASE_I18N_EXPORT string16 TimeFormatShortDateAndTime(const Time& time);
// Formats a time in a friendly sentence format, e.g.
// "Monday, March 6, 2008 2:44:30 PM".
-string16 TimeFormatFriendlyDateAndTime(const Time& time);
+BASE_I18N_EXPORT string16 TimeFormatFriendlyDateAndTime(const Time& time);
// Formats a time in a friendly sentence format, e.g.
// "Monday, March 6, 2008".
-string16 TimeFormatFriendlyDate(const Time& time);
+BASE_I18N_EXPORT string16 TimeFormatFriendlyDate(const Time& time);
// Gets the hour clock type of the current locale. e.g.
// k12HourClock (en-US).
// k24HourClock (en-GB).
-HourClockType GetHourClockType();
+BASE_I18N_EXPORT HourClockType GetHourClockType();
} // namespace base
« no previous file with comments | « base/i18n/rtl.h ('k') | ui/ui_unittests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698