Re: Escaping strings into GConf keys
Dave Malcolm <[email protected]> Mon, 14 Apr 2003 18:36:56 +0100
| Newsgroups | gmane.comp.gnome.lib.devel |
|---|---|
| Message-ID | <03041418365600.06499@linux> |
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