aboutsummaryrefslogtreecommitdiffstats
path: root/support.h
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-27 20:54:30 +0000
committerKalle Wallin <kaw@linux.se>2004-03-27 20:54:30 +0000
commitc8caa261efdd583a18dad6729d9aa1ec1029e525 (patch)
treed4bd4b1b599503e6b58e7efce484fdacf5021ae0 /support.h
parent5b9768b3abd015ef0b11d587e4588cc3a99195ca (diff)
downloadmpd-c8caa261efdd583a18dad6729d9aa1ec1029e525.tar.gz
mpd-c8caa261efdd583a18dad6729d9aa1ec1029e525.tar.xz
mpd-c8caa261efdd583a18dad6729d9aa1ec1029e525.zip
Moved IS_WHITESPACE macor to support.h
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@516 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'support.h')
-rw-r--r--support.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/support.h b/support.h
index fc0e20559..b82751dd1 100644
--- a/support.h
+++ b/support.h
@@ -19,6 +19,9 @@ char *basename(char *path);
char *strcasestr(const char *haystack, const char *needle);
#endif
+#define IS_WHITESPACE(c) (c==' ' || c=='\t' || c=='\r' || c=='\n')
+
+char *trim(char *str);
char *remove_trailing_slash(char *path);
char *lowerstr(char *str);
@@ -26,5 +29,6 @@ char *lowerstr(char *str);
int charset_init(void);
int charset_close(void);
char *utf8_to_locale(char *str);
+char *locale_to_utf8(char *str);