Re: GLib String support
- From: adrian.dmc <adrian dmc gmail com>
- To: "Mathias Hasselmann" <mathias hasselmann gmx de>
- Cc: gtk-devel-list gnome org
- Subject: Re: GLib String support
- Date: Mon, 11 Aug 2008 14:26:46 +0100
(Duo to a mistake I'm re-sending this message...)
> struct _GString
>
{
>
gchar *str;
>
gsize len;
>
gsize allocated_len;
>
gboolean tainted : 1;
>
};
>
> Let's add the important g_utf8_ functions to g_string, and let them
> operate without validation when tainted is false.
g_utf8_...:
* dup
* cat
* len
* cpy (~== dup)
* strchr
* strstr
I think this are the most important (not in order). Although the is
Something functions could also make part of it.
The following functions I don't know if they are as much important but I'll list them just in case:
* strip
- stripl (leading)
- stript (trailing)
* str_has_prefix
* str_has_suffix
* fill
* rev (reverse)
* split
For some of this functions there are some variations:
* limited buffer
* limited number of characters
Some function must have slip me...
Best regards...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]