Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-06-17 17:58:07 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-06-17 17:58:07 +0400
commitab5f4c4dfad3880f60c8555437aeb0c9ba85cd1e (patch)
tree4a2910e9e4a948a959e7661e2d792862d4ea4465 /source/blender/blenlib/BLI_string.h
parent8f30414c29bc62447bc6664d9395778cae027133 (diff)
BLI: Add two helpers to search a given string in an array of strings.
Diffstat (limited to 'source/blender/blenlib/BLI_string.h')
-rw-r--r--source/blender/blenlib/BLI_string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_string.h b/source/blender/blenlib/BLI_string.h
index 2cf904789a2..235147d1bac 100644
--- a/source/blender/blenlib/BLI_string.h
+++ b/source/blender/blenlib/BLI_string.h
@@ -76,6 +76,9 @@ void BLI_ascii_strtolower(char *str, const size_t len) ATTR_NONNULL();
void BLI_ascii_strtoupper(char *str, const size_t len) ATTR_NONNULL();
int BLI_str_rstrip_float_zero(char *str, const char pad) ATTR_NONNULL();
+int BLI_str_index_in_array_n(const char *__restrict str, const char **__restrict str_array, const int str_array_len) ATTR_NONNULL();
+int BLI_str_index_in_array(const char *__restrict str, const char **__restrict str_array) ATTR_NONNULL();
+
#ifdef __cplusplus
}
#endif