rename BLI_getQuotedStr --> BLI_str_quoted_substrN to make it more clear its doing an allocation.

This commit is contained in:
2012-07-09 22:16:50 +00:00
parent 3c0579afc5
commit df107939c9
8 changed files with 16 additions and 14 deletions

View File

@@ -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;