Tools.h++ Class Reference

Table Of Contents
RWDate or RWTime). The pointer may be retrieved from the stream with the static
member RWLocale::of(). In this way a locale may be passed transparently through many
levels of control to be available where needed, without intruding elsewhere.
virtual int
weekdayIndex(const RWCString&) const = 0;
Interprets its argument as a full or abbreviated weekday name, returning values 1 through
7 to represent (respectively) Monday through Sunday, or 0 for an error.
Static Public Member Functions
static const RWLocale&
of(ios&);
Returns the locale installed in the stream argument by a previous call to
RWLocale::imbue() or, if no locale was installed, the result from RWLocale::global().
static const RWLocale*
global(const RWLocale* loc);
Sets the global "default" locale object to loc, returning the old object. This object is used
by RWDate and RWTime string conversion functions as a default locale. It is set initially
to refer to an instance of a class that provides the functionality of
RWLocaleSnapshot("C").
static const RWLocale&
global();
Returns a reference to the present global "default" locale.
const RWLocale*
defaultLocale();
Returns a pointer to a new instance of either RWLocaleSnapshot("C"); or another class
that provides the same behavior for compilers that don't fully support Standard C locales.