[gnome-commander/gcmd-1-3] advrename profiles: added convert_case() and trim_blanks() methods



commit 43c72da72d9882b93589a17e1039f2032c3786a7
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Apr 30 21:50:45 2009 +0200

    advrename profiles: added convert_case() and trim_blanks() methods
---
 ChangeLog                          |    6 ++++++
 src/gnome-cmd-profile-component.cc |   12 ++++++++++++
 src/gnome-cmd-profile-component.h  |    3 +++
 3 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 71949c9..9a8b9be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-04-30  Piotr Eljasiak  <epiotr use pl>
+
+	* src/gnome-cmd-profile-component.cc:
+	* src/gnome-cmd-profile-component.h:
+	advrename profiles: added convert_case() and trim_blanks() methods
+
 2009-04-28  Piotr Eljasiak  <epiotr use pl>
 
 	* src/tags/gnome-cmd-profile-component.cc:
diff --git a/src/gnome-cmd-profile-component.cc b/src/gnome-cmd-profile-component.cc
index f26e3df..a598bd4 100644
--- a/src/gnome-cmd-profile-component.cc
+++ b/src/gnome-cmd-profile-component.cc
@@ -1177,3 +1177,15 @@ void GnomeCmdProfileComponent::copy(GnomeCmdData::AdvrenameConfig::Profile &p)
     p.case_conversion = profile.case_conversion;
     p.trim_blanks = profile.trim_blanks;
 }
+
+
+gchar *GnomeCmdProfileComponent::convert_case(gchar *string)
+{
+    return priv->convert_case(string);
+}
+
+
+gchar *GnomeCmdProfileComponent::trim_blanks(gchar *string)
+{
+    return priv->trim_blanks(string);
+}
diff --git a/src/gnome-cmd-profile-component.h b/src/gnome-cmd-profile-component.h
index 81716a7..cbacc7f 100644
--- a/src/gnome-cmd-profile-component.h
+++ b/src/gnome-cmd-profile-component.h
@@ -54,6 +54,9 @@ struct GnomeCmdProfileComponent
     void copy();                                                    //  copies component to associated profile
     void copy(GnomeCmdData::AdvrenameConfig::Profile &profile);     //  copies component to specified profile
 
+    gchar *convert_case(gchar *string);
+    gchar *trim_blanks(gchar *string);
+
     const gchar *get_template_entry() const;
     void set_template_history(GList *history);
     GtkTreeModel *get_regex_model() const;



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