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:
authorCampbell Barton <ideasman42@gmail.com>2021-09-01 08:23:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-09-01 08:23:58 +0300
commitf1cdd49a4e7fb2883d574691eab16b2ffc1f52a3 (patch)
tree1d3af334b7ef5f70c1fdfb051cc28ece7eb1bdd0 /source/blender/blenlib/BLI_string.h
parent90dac47717b12f33d5dd738da12a337cfe4f2f14 (diff)
BLI_string: add BLI_str_quoted_substr_range
This is a similar funciton to BLI_str_quoted_substrN that extracts the range of the quoted string instead of allocating a new string un-escaped string.
Diffstat (limited to 'source/blender/blenlib/BLI_string.h')
-rw-r--r--source/blender/blenlib/BLI_string.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_string.h b/source/blender/blenlib/BLI_string.h
index 0c51d38e813..c20376c42b9 100644
--- a/source/blender/blenlib/BLI_string.h
+++ b/source/blender/blenlib/BLI_string.h
@@ -57,6 +57,11 @@ size_t BLI_strncpy_rlen(char *__restrict dst,
size_t BLI_strcpy_rlen(char *__restrict dst, const char *__restrict src) ATTR_WARN_UNUSED_RESULT
ATTR_NONNULL();
+bool BLI_str_quoted_substr_range(const char *__restrict str,
+ const char *__restrict prefix,
+ int *__restrict r_start,
+ int *__restrict r_end) ATTR_WARN_UNUSED_RESULT
+ ATTR_NONNULL(1, 2, 3, 4);
char *BLI_str_quoted_substrN(const char *__restrict str,
const char *__restrict prefix) ATTR_WARN_UNUSED_RESULT
ATTR_NONNULL() ATTR_MALLOC;