[folks] Add Folks.Utils to group helper methods
- From: Raul Gutierrez Segales <raulgs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Add Folks.Utils to group helper methods
- Date: Sat, 9 Apr 2011 00:43:45 +0000 (UTC)
commit f758d8e23f3a9e4f6c2c924e828c8eec83cc60d7
Author: Raul Gutierrez Segales <raul gutierrez segales collabora co uk>
Date: Fri Apr 8 20:51:32 2011 +0100
Add Folks.Utils to group helper methods
folks/Makefile.am | 1 +
folks/utils.vala | 28 ++++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/folks/Makefile.am b/folks/Makefile.am
index 95bb2ab..c01cdf2 100644
--- a/folks/Makefile.am
+++ b/folks/Makefile.am
@@ -39,6 +39,7 @@ libfolks_la_SOURCES = \
persona-store.vala \
types.vala \
debug.vala \
+ utils.vala \
$(NULL)
libfolks_la_VALAFLAGS = \
diff --git a/folks/utils.vala b/folks/utils.vala
new file mode 100644
index 0000000..a4b5a66
--- /dev/null
+++ b/folks/utils.vala
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2011 Collabora Ltd.
+ *
+ * This library is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors:
+ * Raul Gutierrez Segales <raul gutierrez segales collabora co uk>
+ */
+
+
+internal class Folks.Utils : Object
+{
+ internal static bool _str_equal_safe (string a, string b)
+ {
+ return (a != "" && b != "" && a.down () == b.down ());
+ }
+}
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]