Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6II18n::wcstod ( const P6WCHAR pSrc,
P6WCHAR **  pEndPtr,
P6FLOAT pToDouble 
)
pure virtual

Convert a wide-character string to a double-precision number.

This function converts the initial portion of the character string pointed to by pSrc to a double percision number. First it decomposes the input character string into three parts: an initial, possibly empty, sequence of white-space characters (as specified by iswspace()); a subject sequence interpreted as a floating-point constant; and a final character string of one or more unrecognised characters, including the terminating null character. Then it attempts to convert the subject sequence to a floating-point number, and returns the result in pToDouble. A pointer to the final character string is stored in the pointer pEndptr provided that pEndptr is not NULL.

Parameters
pSrc[ in ] Pointer to the wide character string to convert.
pEndPtr[ out ] If not NULL, points to the final character string (see above).
pToDouble[ out ] The resulting double value.
Returns
SuccessP6R::eOk 
FailureP6R::eFailUnable to perform the conversion.
P6R::eNotInitializedA successful call to initialize was not made before this call.