aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gstring-util.c
diff options
context:
space:
mode:
authorBertrand Guiheneuf <bertrand@src.gnome.org>2000-01-03 18:08:55 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-01-03 18:08:55 +0800
commit01c8e48720676af9576b5eee0c3081432d61b133 (patch)
tree1e52a92515340aca8c3b8231bc2d95240329ade8 /camel/gstring-util.c
parent01f62452292ef0806edd03eced94e2637c146651 (diff)
downloadgsoc2013-evolution-01c8e48720676af9576b5eee0c3081432d61b133.tar
gsoc2013-evolution-01c8e48720676af9576b5eee0c3081432d61b133.tar.gz
gsoc2013-evolution-01c8e48720676af9576b5eee0c3081432d61b133.tar.bz2
gsoc2013-evolution-01c8e48720676af9576b5eee0c3081432d61b133.tar.lz
gsoc2013-evolution-01c8e48720676af9576b5eee0c3081432d61b133.tar.xz
gsoc2013-evolution-01c8e48720676af9576b5eee0c3081432d61b133.tar.zst
gsoc2013-evolution-01c8e48720676af9576b5eee0c3081432d61b133.zip
sync. Does not compile
svn path=/trunk/; revision=1530
Diffstat (limited to 'camel/gstring-util.c')
-rw-r--r--camel/gstring-util.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/camel/gstring-util.c b/camel/gstring-util.c
index 36d5eaba3d..ad97bc2851 100644
--- a/camel/gstring-util.c
+++ b/camel/gstring-util.c
@@ -42,9 +42,9 @@
gboolean
g_string_equals (GString *string1, GString *string2)
{
- g_assert(string1);
- g_assert(string2);
- return !strcmp(string1->str, string2->str);
+ g_assert (string1);
+ g_assert (string2);
+ return !strcmp (string1->str, string2->str);
}
@@ -58,9 +58,9 @@ g_string_equals (GString *string1, GString *string2)
* @Return Value : the clone ...
**/
GString *
-g_string_clone(GString *string)
+g_string_clone (GString *string)
{
- return g_string_new( g_strdup(string->str) );
+ return g_string_new (g_strdup (string->str) );
}
@@ -98,8 +98,8 @@ g_string_dichotomy (GString *string, gchar sep, GString **prefix, GString **suff
CAMEL_LOG_FULL_DEBUG (\
"Entering string_dichotomy: \n\tseparator=%c \n\tprefix=%p \n\tsuffix=%p \n\toptions=%ld\n",\
sep, prefix, suffix, options);
- g_assert( tmp=string->str );
- len = strlen(tmp);
+ g_assert (tmp=string->str);
+ len = strlen (tmp);
if (!len) {
if (prefix)
*prefix=NULL;
@@ -110,7 +110,7 @@ g_string_dichotomy (GString *string, gchar sep, GString **prefix, GString **suff
}
first = 0;
- if ( (options & GSTRING_DICHOTOMY_STRIP_LEADING ) && (tmp[first] == sep) )
+ if ((options & GSTRING_DICHOTOMY_STRIP_LEADING ) && (tmp[first] == sep) )
do {first++;} while ( (first<len) && (tmp[first] == sep) );
if (options & GSTRING_DICHOTOMY_STRIP_TRAILING )