VarParseNumFromStr(3w)

VarParseNumFromStr3w

Usage

HRESULT VarParseNumFromStr
(
OLECHAR* lpszStr,
LCID lcid,
ULONG dwFlags,
NUMPARSE* pNumprs,
BYTE* rgbDig
)

Overview

Parse a string containing a number into a NUMPARSE structure.

Params

lpszStr [In] String to parse number from.

lcid [In] Locale Id for the conversion.

dwFlags [In] 0, or LOCALE_NOUSEROVERRIDE to use system default number chars.

pNumprs [In/Out] Destination for parsed number.

rgbDig [Out] Destination for digits read in.

Returns

Success: S_OK. pNumprs and rgbDig contain the parsed representation of the number.

Failure: E_INVALIDARG, if any parameter is invalid. DISP_E_TYPEMISMATCH, if the string is not a number or is formatted incorrectly. DISP_E_OVERFLOW, if rgbDig is too small to hold the number.

Notes

pNumprs must have the following fields set:

cDig: Set to the size of rgbDig.

dwInFlags: Set to the allowable syntax of the number using NUMPRS_ flags from "oleauto.h".

Fixme

- I am unsure if this function should parse non-Arabic (e.g. Thai) numerals, so this has not been implemented.

Implementation

Declared in "oleauto.h".

Implemented in "dlls/oleaut32/variant.c".

Debug channel "variant".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.