senjuhashirama / pugixml

Automatically exported from code.google.com/p/pugixml
0 stars 0 forks source link

Ability for as_uint to take a number base parameter #204

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to have a parameter for as_uint to be able to specify the base of 
the number that it should parse. 

I work with hardware design teams that specify documentation in XML format, I 
am writing a parser to generate different output formats (C headers, 
spreadsheets, etc) and the hardware designers use hex numbers for addresses and 
so forth, so having the ability to pass in a base along with the default value 
is very helpful.

I have attached a patch which adds this support.

Original issue reported on code.google.com by slide.o....@gmail.com on 20 Mar 2013 at 2:10

Attachments:

GoogleCodeExporter commented 9 years ago
Closing as duplicate.

Original comment by arseny.k...@gmail.com on 20 Dec 2013 at 5:39