Re: [gnome-db] Gda_Value_Stringify of a double
- From: "Vivien Malerba" <vmalerba gmail com>
- To: "Murray Cumming" <murrayc murrayc com>
- Cc: gnome-db-list gnome org
- Subject: Re: [gnome-db] Gda_Value_Stringify of a double
- Date: Tue, 24 Oct 2006 15:41:07 +0200
On 10/24/06, Murray Cumming <murrayc murrayc com> wrote:
On Tue, 2006-10-24 at 15:14 +0200, Vivien Malerba wrote:
> > It says that string is meant to be human-readable, but it ignores
> the
> > current locale, and it makes assumptions about the numeric
> formatting
> > wanted. So it's no use for actually showing to a human. I suggest
> that
> > it be marked as "useful only for debugging, and not for showing
> values
> > in your user interface."
> >
>
> It is also very usefull when you want to save a value in an (XML for
> example) file and you need to be able to read it back even if the
> locale has changed.
OK. I think we can call that "serialization", in a canonical
locale-independent human-readable format.
Both uses should be mentioned in the documentation. And the
documentation should clearly state that it's not for showing in your
application's UI.
I'll make that clear in the doc.
> If you want to take into account the locale, then you should use the
> GdaDataHandler which both takes into account the locale and any syntax
> specific to a DBMS. GdaDataHandler objects are created and managed by
> each provider and you can use them just after having obtained a
> pointer to one using gda_server_provider_get_data_handler_gtype() or
> gda_server_provider_get_data_handler_dbms().
Is there documentation, or an example, of this somewhere?
There is only the gtk-doc generated documentation, section "Data
conversions"; the GdaDataHandler object is fairly easy to use.
Cheers,
Vivien
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]