Tools.h++ Manual
21-138 104011 Tandem Computers Incorporated
21
virtual RWBoolean stringToMoney(const RWCString&,
double*, RWLocale::CurrSymbol=LOCAL)
const = 0
;
Interprets the 
RWCString 
argument as a monetary value. The currency 
symbol, if any, is ignored. Negative values may be specified by the negation 
symbol or by enclosing parentheses. Digit group separators are optional; if 
present they are checked. Returns 
TRUE 
for a valid monetary value, 
FALSE 
for 
an error. If it returns 
FALSE
, the 
double* 
argument is untouched; otherwise it 
is set to the integral number of monetary units entered (e.g. cents, in a U.S. 
locale).
const RWLocale* imbue(ios& stream) const
;
Installs self in the stream argument, for later use by the operators << and >> 
(e.g. in 
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.
Static 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 
RWLocaleDefault
.
static const RWLocale& global()
;
Returns a reference to the present global “default” locale.










