[beast: 2/16] BST: use Bse::string_casecmp / Bse::string_cmp



commit 52e81862cfc347750ada29b3413c6d7b194c5b9a
Author: Tim Janik <timj gnu org>
Date:   Wed Sep 6 03:11:56 2017 +0200

    BST: use Bse::string_casecmp / Bse::string_cmp
    
    Signed-off-by: Tim Janik <timj gnu org>

 beast-gtk/bstparam-proxy.cc |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/beast-gtk/bstparam-proxy.cc b/beast-gtk/bstparam-proxy.cc
index ac42133..7aebffc 100644
--- a/beast-gtk/bstparam-proxy.cc
+++ b/beast-gtk/bstparam-proxy.cc
@@ -171,13 +171,13 @@ bst_item_seq_list_match (GSList      *item_seq_slist,
        {
          const gchar *path = bse_item_get_uname_path (iseq->items[i]);
          guint j = path ? strlen (path) : 0;
-         if (j == l && strcmp (text, path) == 0)
+         if (j == l && Bse::string_cmp (text, path) == 0)
            return iseq->items[i];      /* found exact match */
-         else if (!cmatch && j == l && g_strcasecmp (text, path) == 0)
+         else if (!cmatch && j == l && Bse::string_casecmp (text, path) == 0)
            cmatch = iseq->items[i];    /* remember first case insensitive match */
-         else if (!tmatch && j > l && strcmp (text, path + j - l) == 0)
+         else if (!tmatch && j > l && Bse::string_cmp (text, path + j - l) == 0)
            tmatch = iseq->items[i];    /* remember first tail match */
-         else if (!tcmatch && j > l && g_strcasecmp (text, path + j - l) == 0)
+         else if (!tcmatch && j > l && Bse::string_casecmp (text, path + j - l) == 0)
            tcmatch = iseq->items[i];   /* remember first case insensitive tail match */
        }
     }


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