Re: [LAD] [ANN] XSL stylesheets for converting specimen banks to petri-foo banks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: James Morris <james@...>
Cc: <linux-audio-dev@...>
Date: Monday, February 3, 2014 - 7:07 pm

On Mon, 2014-02-03 at 15:40 +0000, James Morris wrote:

You're welcome. I'd assume that most XML APIs would have the stuff you
need (or you can just change the locale temporarily, but this is
sketchy), which would be best, but if not, I've done a straight C
implementation of both directions you can steal if you like.

serd_strtod in http://svn.drobilla.net/serd/trunk/src/string.c
and serd_node_new_decimal in
http://svn.drobilla.net/serd/trunk/src/node.c

The former is just a portable strtod, the latter would need a bit of
tinkering to not return the result as a SerdNode. The latter is
designed to hack off useless strings of trailing zeros (i.e. be pretty
and terse), but can't do the scientific notation format.

--
dr

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] [ANN] XSL stylesheets for converting specimen bank..., David Robillard, (Mon Feb 3, 7:07 pm)