diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 2000-01-04 06:40:54 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-01-04 06:40:54 +0800 |
commit | c1d59fcb62563f31b5f753fa90b5c7bd2baa5fed (patch) | |
tree | 57a35f02b38b600eab3a706152d294072e170451 /camel/string-utils.h | |
parent | 01c8e48720676af9576b5eee0c3081432d61b133 (diff) | |
download | gsoc2013-evolution-c1d59fcb62563f31b5f753fa90b5c7bd2baa5fed.tar gsoc2013-evolution-c1d59fcb62563f31b5f753fa90b5c7bd2baa5fed.tar.gz gsoc2013-evolution-c1d59fcb62563f31b5f753fa90b5c7bd2baa5fed.tar.bz2 gsoc2013-evolution-c1d59fcb62563f31b5f753fa90b5c7bd2baa5fed.tar.lz gsoc2013-evolution-c1d59fcb62563f31b5f753fa90b5c7bd2baa5fed.tar.xz gsoc2013-evolution-c1d59fcb62563f31b5f753fa90b5c7bd2baa5fed.tar.zst gsoc2013-evolution-c1d59fcb62563f31b5f753fa90b5c7bd2baa5fed.zip |
detects netscape ".sdb" folders as well as simple non-suffixed folders (as
2000-01-03 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/providers/mbox/camel-mbox-folder.c (_list_subfolders):
detects netscape ".sdb" folders as well as simple
non-suffixed folders (as the ones used in pine).
* camel/string-utils.c (string_prefix):
finished implementation.
(string_prefix): added a boolean flag to indicate if the
suffix has been found. When the suffix does not match,
return NULL.
svn path=/trunk/; revision=1531
Diffstat (limited to 'camel/string-utils.h')
-rw-r--r-- | camel/string-utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/camel/string-utils.h b/camel/string-utils.h index f67d3434d4..fcc3a6c2d1 100644 --- a/camel/string-utils.h +++ b/camel/string-utils.h @@ -37,6 +37,8 @@ extern "C" { #include <glib.h> + + typedef enum { STRING_DICHOTOMY_NONE = 0, STRING_DICHOTOMY_RIGHT_DIR = 1, @@ -45,12 +47,15 @@ typedef enum { } StringDichotomyOption; + typedef enum { STRING_TRIM_NONE = 0, STRING_TRIM_STRIP_TRAILING = 1, STRING_TRIM_STRIP_LEADING = 2 } StringTrimOption; + + gboolean string_equal_for_glist (gconstpointer v, gconstpointer v2); gchar string_dichotomy (const gchar *string, gchar sep, @@ -63,6 +68,9 @@ GList *string_split (const gchar *string, char sep, void string_trim (gchar *string, const gchar *chars, StringTrimOption options); +gchar *string_prefix (const gchar *s, const gchar *suffix, gboolean *suffix_found); + + #ifdef __cplusplus } #endif /* __cplusplus */ |