atom feed4 messages in org.gnome.gnome-listGscanner: can I get the text of scann...
FromSent OnAttachments
Laurent LemaitreMay 2, 2001 2:36 am 
Tim JanikMay 2, 2001 3:44 pm 
Laurent LemaitreMay 3, 2001 6:01 am 
Tim JanikMay 3, 2001 10:09 am 
Subject:Gscanner: can I get the text of scanned floating point numbers
From:Laurent Lemaitre (laur@mot.com)
Date:May 2, 2001 2:36:54 am
List:org.gnome.gnome-list

Tim,

I am currently using the Lexical Scanner from glib for my application (the appl converts files written in verilog to xml).

My problem: my scanner scans floating point numbers (for instance 1.22222e-24). It returns G_TOKEN_FLOAT when a floating point number is found. I would like to save the text that has been scanned (and that served to create the value of scanner->value.v_float). Is-there a way to have access to the scanned text?

Thanks,

Laurent

PS: with the automatic conversion str->float I can loose precision (that is bad for my application :-( ) More specifically here is what I am doing to get the text back: txt = g_strdup_printf ("%e",scanner->value.v_float);