string_util: add function strchug_fast()

Replace g_strchug() calls with a cheaper implementation.
This commit is contained in:
Max Kellermann
2010-12-23 16:16:01 +01:00
parent 0958ed5844
commit 5462f34ed0
7 changed files with 64 additions and 10 deletions
+2 -1
View File
@@ -24,6 +24,7 @@
#include "uri.h"
#include "song.h"
#include "tag.h"
#include "string_util.h"
#include <glib.h>
@@ -89,7 +90,7 @@ extm3u_parse_tag(const char *line)
/* 0 means unknown duration */
duration = 0;
name = g_strchug(endptr + 1);
name = strchug_fast_c(endptr + 1);
if (*name == 0 && duration == 0)
/* no information available; don't allocate a tag
object */