add ecoli_editline and enhance yaml parser
[protos/libecoli.git] / libecoli / ecoli_string.h
index add73a0..a523b88 100644 (file)
@@ -6,6 +6,7 @@
 #define ECOLI_STRING_
 
 #include <stddef.h>
+#include <stdbool.h>
 
 /* count the number of identical chars at the beginning of 2 strings */
 size_t ec_strcmp_count(const char *s1, const char *s2);
@@ -19,4 +20,7 @@ int ec_asprintf(char **buf, const char *fmt, ...);
 /* like vasprintf, but use libecoli allocator */
 int ec_vasprintf(char **buf, const char *fmt, va_list ap);
 
+/* return true if string is only composed of spaces (' ', '\n', ...) */
+bool ec_str_is_space(const char *s);
+
 #endif