Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6II18n::wcstoll ( const P6WCHAR pSrc,
P6WCHAR **  pEndptr,
P6INT32  base,
P6INT64 pResult 
)
pure virtual

Convert a wide-character string to a 64 bit signed integer value.

This function converts the initial portion of the character string pointed to by pSrc to a long integer (also see description of wcstod()).

In conjunction with the base parameter of 0, a decimal constant begins with a non-zero digit, and consists of a sequence of decimal digits. An octal constant consists of the prefix 0 optionally followed by a sequence of the digits 0 to 7 only. A hexadecimal constant consists of the prefix 0x or 0X followed by a sequence of the decimal digits and letters a (or A) to f (or F) with values 10 to 15 respectively.

In conjunction with the base parameter is between 2 and 36, the letters from a (or A) to z (or Z) inclusive are ascribed the values 10 to 35; only letters whose ascribed values are less than that of base are permitted. If the value of base is 16, the character representations of 0x or 0X may optionally precede the sequence of letters and digits, following the sign if present.

Parameters
pSrc[ in ] Pointer to the wide character string to convert.
pEndptr[ out ] If not NULL, points to the final character string (see above).
base[ in ] If base is 0, then the expected form of the subject sequence is that of a decimal constant, octal constant or hexadecimal constant, any of which may be preceded by a + or - sign. If the value of base is between 2 and 36, the expected form of the subject sequence is a sequence of letters and digits representing an integer with the radix specified by base, optionally preceded by a + or - sign, but not including an integer suffix.
pResult[ out ] The resulting 64 bit signed integer value.
Returns
SuccessP6R::eOk 
FailureP6R::eFailUnable to perform the conversion.
P6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eNotFoundpSrc did not contain a number to convert.