diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-07-04 16:14:06 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-07-04 16:14:06 +0400 |
commit | e3c8cf0a9ea00ef6c7a63b5fc8351f5f9be1ac8f (patch) | |
tree | ada2dce46e6e94aebb24cab35aed7c5e2a30fc98 /source/blender/blenfont | |
parent | 85c4feab027238bb9dbf7fa727cb608052ec79d5 (diff) |
Add (r)partition funcs to BLI_string, to get left-most/right-most first occurence of delimiters.
Inspired by Python (r)partition str functions. Also added some Gtest cases for those new funcs.
Reviewed by Campbell Barton, many thanks!
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r-- | source/blender/blenfont/intern/blf_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf_util.c b/source/blender/blenfont/intern/blf_util.c index cb9b652b8ef..06309a944e9 100644 --- a/source/blender/blenfont/intern/blf_util.c +++ b/source/blender/blenfont/intern/blf_util.c @@ -37,6 +37,7 @@ #include "blf_internal.h" +#include "BLI_utildefines.h" #include "BLI_string_utf8.h" unsigned int blf_next_p2(unsigned int x) |