.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH VarParseNumFromStr 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBVarParseNumFromStr\fR (OLEAUT32.46) .SH SYNOPSIS HRESULT VarParseNumFromStr ( OLECHAR* \fIlpszStr\fR, LCID \fIlcid\fR, ULONG \fIdwFlags\fR, NUMPARSE* \fIpNumprs\fR, BYTE* \fIrgbDig\fR ) .SH DESCRIPTION .PP Parse a string containing a number into a \fBNUMPARSE\fR structure. .SH PARAMS \fIlpszStr\fR \fB[In]\fR String to parse number from. .PP \fIlcid\fR \fB[In]\fR Locale Id for the conversion. .PP \fIdwFlags\fR \fB[In]\fR \fB0\fR, or \fBLOCALE_NOUSEROVERRIDE\fR to use system default number chars. .PP \fIpNumprs\fR \fB[In/Out]\fR Destination for parsed number. .PP \fIrgbDig\fR \fB[Out]\fR Destination for digits read in. .PP .SH RETURNS .PP \fBSuccess:\fR \fBS_OK\fR. \fIpNumprs\fR and \fIrgbDig\fR contain the parsed representation of the number. .PP \fBFailure:\fR \fBE_INVALIDARG\fR, if any parameter is invalid. \fBDISP_E_TYPEMISMATCH\fR, if the string is not a number or is formatted incorrectly. \fBDISP_E_OVERFLOW\fR, if \fIrgbDig\fR is too small to hold the number. .SH NOTES .PP \fIpNumprs\fR must have the following fields set: .PP \fBcDig:\fR Set to the size of \fIrgbDig\fR. .PP \fBdwInFlags:\fR Set to the allowable syntax of the number using \fBNUMPRS_\fR flags from \fB"oleauto.h"\fR. .SH FIXME .PP \fB-\fR I am unsure if this function should parse non-Arabic (e.g. Thai) numerals, so this has not been implemented. .SH IMPLEMENTATION .PP Declared in \fB"oleauto.h"\fR. .PP Implemented in \fB"dlls/oleaut32/variant.c"\fR. .PP Debug channel \fB"variant"\fR.