From 87bcf739ee6a3e8ac5b400b35b61b72b9d8bd802 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 7 Aug 2014 14:53:07 +0200 Subject: util/StringUtil: rename strchug_fast() to StripLeft() --- src/util/StringUtil.hxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/util/StringUtil.hxx') diff --git a/src/util/StringUtil.hxx b/src/util/StringUtil.hxx index e8e3b2b5d..6bccbeffe 100644 --- a/src/util/StringUtil.hxx +++ b/src/util/StringUtil.hxx @@ -27,19 +27,16 @@ /** * Returns a pointer to the first non-whitespace character in the * string, or to the end of the string. - * - * This is a faster version of g_strchug(), because it does not move - * data. */ gcc_pure const char * -strchug_fast(const char *p); +StripLeft(const char *p); gcc_pure static inline char * -strchug_fast(char *p) +StripLeft(char *p) { - return const_cast(strchug_fast((const char *)p)); + return const_cast(StripLeft((const char *)p)); } /** -- cgit v1.2.3