20 #ifndef MPD_STRING_UTIL_HXX
21 #define MPD_STRING_UTIL_HXX
37 CopyString(
char *dest,
const char *src,
size_t size);
51 return const_cast<char *
>(
StripLeft((
const char *)p));
56 StripLeft(
const char *p,
const char *end);
72 return const_cast<char *
>(
StripRight((
const char *)p,
gcc_pure const char * StripRight(const char *p, const char *end)
Determine the string's end as if it was stripped on the right side.
gcc_pure bool StringArrayContainsCase(const char *const *haystack, const char *needle)
Checks whether a string array contains the specified string.
void ToUpperASCII(char *dest, const char *src, size_t size)
Convert the specified ASCII string (0x00..0x7f) to upper case.
char * Strip(char *p)
Skip whitespace at the beginning and terminate the string after the last non-whitespace character...
gcc_pure const char * StripLeft(const char *p)
Returns a pointer to the first non-whitespace character in the string, or to the end of the string...
gcc_nonnull_all char * CopyString(char *dest, const char *src, size_t size)
Copy a string.