Re: Escaping strings into GConf keys



On Monday 14 April 2003 10:54, Alexander Larsson wrote:
> On Fri, 11 Apr 2003, Dave Malcolm wrote:
> > (Hopefully I picked an appropriate list for this)
> >
> > Is there a handy function somewhere to take arbitrary strings and convert
> > them into valid GConf keys?
> >

[snip]

>
> /* Escape/unescape a string to create a valid key */
> char*    gconf_escape_key         (const char *arbitrary_text,
>                                    int         len);
> char*    gconf_unescape_key       (const char *escaped_key,
>                                    int         len);

Oops... I feel very silly.  The GConf documentation was so good that I hadn't 
thought to look at the header files...  That's my excuse anyway :-)

Dave Malcolm



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]