[utils] string_[rl]strip => string_[rl]trim, removing warning about allocation

This commit is contained in:
Al
2015-04-06 02:19:12 -04:00
parent 53844067b1
commit 4729dfe178
2 changed files with 6 additions and 15 deletions

View File

@@ -30,9 +30,9 @@ char *utf8_reversed_string(const char *s); // returns a copy, caller frees
ssize_t utf8proc_iterate_reversed(const uint8_t *str, const uint8_t *start, int32_t *dst);
bool utf8_is_letter(int32_t ch);
size_t string_lstrip(char *str);
size_t string_rstrip(char *str);
size_t string_strip(char *str);
size_t string_ltrim(char *str);
size_t string_rtrim(char *str);
size_t string_trim(char *str);
/* Caller has to free the original string,
also keep in mind that after operating on a char array,