struct CCL::ILocaleInfo
Overview
#include <ilocaleinfo.h> struct ILocaleInfo: public CCL::IUnknown { // enums enum PrintByteFlags; enum PrintDateFlags; enum PrintDurationFlags; enum ScanFlags; enum TimeUnit; // methods virtual StringRef CCL_API getTitle () const = 0; virtual int CCL_API getDayOfWeek (const Date& date) const = 0; virtual StringRef CCL_API getWeekdayName (int dayOfWeek) const = 0; virtual StringRef CCL_API getMonthName (int month) const = 0; virtual tresult CCL_API printDate ( String& result, const Date& date, int flags = 0 ) const = 0; virtual tresult CCL_API printTime ( String& result, const Time& time, int flags = 0 ) const = 0; virtual tresult CCL_API printTimeAgo ( String& result, const DateTime& localTime, int flags = 0 ) const = 0; virtual tresult CCL_API printTimeAhead ( String& result, const DateTime& localTime, int flags = 0 ) const = 0; virtual tresult CCL_API printDuration ( String& result, double seconds, int flags = 0 ) const = 0; virtual tresult CCL_API printCurrency ( String& result, double value, int flags = 0 ) const = 0; virtual tresult CCL_API printByteSize ( String& result, double byteSize, int flags = 0 ) const = 0; virtual tresult CCL_API scanDuration ( double& seconds, StringRef string, int defaultUnit = kSeconds, int flags = 0 ) const = 0; virtual tresult CCL_API printBytesPerSecond ( String& result, double bytesPerSecond, int flags = 0 ) const = 0; };
Inherited Members
public: // methods virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0; virtual unsigned int CCL_API retain () = 0; virtual unsigned int CCL_API release () = 0;
Detailed Documentation
Methods
virtual StringRef CCL_API getTitle () const = 0
Get name of locale.
virtual int CCL_API getDayOfWeek (const Date& date) const = 0
Determine day of week for given date (0 = Sunday, 1 = Monday, etc.).
virtual StringRef CCL_API getWeekdayName (int dayOfWeek) const = 0
Get name of weekday (0 = Sunday).
virtual StringRef CCL_API getMonthName (int month) const = 0
Get name of month (1 = January).