diff options
author | Max Kellermann <max@musicpd.org> | 2018-08-20 16:30:46 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-08-20 16:30:46 +0200 |
commit | 2156fc64f436c7e185906a217246576d4191cb82 (patch) | |
tree | 0c120f997002f904a80f06633ff709f7534e1209 /src/util | |
parent | 441440101d67b28532e2198b59c827a3affc9c11 (diff) |
util/StringStrip: more API documentation
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/StringStrip.hxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/util/StringStrip.hxx b/src/util/StringStrip.hxx index b56e06eaf..20d0ed925 100644 --- a/src/util/StringStrip.hxx +++ b/src/util/StringStrip.hxx @@ -35,8 +35,10 @@ #include <stddef.h> /** - * Returns a pointer to the first non-whitespace character in the - * string, or to the end of the string. + * Skips whitespace at the beginning of the string, and returns the + * first non-whitespace character. If the string has no + * non-whitespace characters, then a pointer to the NULL terminator is + * returned. */ gcc_pure gcc_returns_nonnull gcc_nonnull_all const char * @@ -49,6 +51,10 @@ StripLeft(char *p) noexcept return const_cast<char *>(StripLeft((const char *)p)); } +/** + * Skips whitespace at the beginning of the string, and returns the + * first non-whitespace character or the end pointer. + */ gcc_pure gcc_returns_nonnull gcc_nonnull_all const char * StripLeft(const char *p, const char *end) noexcept; |