diff options
author | David Hunt <dhunt@iolanthe.attlocal.net> | 2015-08-19 13:43:20 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-19 13:45:20 -0300 |
commit | 5e602f18d5f619f7dba6d9fccefacdb991db391d (patch) | |
tree | d72cbc763c7dcd27022b223f1daf6dcb5ac8bcb6 /StringUtils.h | |
parent | f2c053a88497f3ad5ae786c16ecf1275212c13be (diff) |
Rename String to StringUtils.
Fixes building on case-insensitive filesystems where String.h gets confused with <string.h>.
From d734dacea0a10d0465dad4e95b3421511e7da112 Mon Sep 17 00:00:00 2001
From: David Hunt <dhunt@iolanthe.attlocal.net>
Date: Sat, 11 Jul 2015 20:56:31 -0500
Subject: [PATCH 1/8] Rename String to StringUtils
Diffstat (limited to 'StringUtils.h')
-rw-r--r-- | StringUtils.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/StringUtils.h b/StringUtils.h new file mode 100644 index 00000000..5f8cb927 --- /dev/null +++ b/StringUtils.h @@ -0,0 +1,27 @@ +/* Do not edit this file. It was automatically generated. */ + +#ifndef HEADER_StringUtils +#define HEADER_StringUtils +/* +htop - String.h +(C) 2004-2011 Hisham H. Muhammad +Released under the GNU GPL, see the COPYING file +in the source distribution for its full text. +*/ + +#define String_startsWith(s, match) (strstr((s), (match)) == (s)) +#define String_contains_i(s1, s2) (strcasestr(s1, s2) != NULL) + +char* String_cat(const char* s1, const char* s2); + +char* String_trim(const char* in); + +extern int String_eq(const char* s1, const char* s2); + +char** String_split(const char* s, char sep, int* n); + +void String_freeArray(char** s); + +char* String_getToken(const char* line, const unsigned short int numMatch); + +#endif |