diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-10 02:16:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-10 02:16:50 +0400 |
commit | df107939c9eeaa77dffe57ba6b246e1184efe67b (patch) | |
tree | ecb21349ec3f0180ccce209c4c86a6f2334edd4a /source/blender/blenlib/intern | |
parent | 3c0579afc54c285f96ad2442e974428c040f3731 (diff) |
rename BLI_getQuotedStr --> BLI_str_quoted_substrN to make it more clear its doing an allocation.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/string.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c index d86d151b1ef..7a750a74a33 100644 --- a/source/blender/blenlib/intern/string.c +++ b/source/blender/blenlib/intern/string.c @@ -168,8 +168,10 @@ escape_finish: * * Assume that the strings returned must be freed afterwards, and that the inputs will contain * data we want... + * + * TODO, return the offset and a length so as to avoid doing an allocation. */ -char *BLI_getQuotedStr(const char *str, const char *prefix) +char *BLI_str_quoted_substrN(const char *str, const char *prefix) { size_t prefixLen = strlen(prefix); char *startMatch, *endMatch; |