diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-08-19 11:35:24 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-08-19 11:35:24 -0700 |
commit | b59904632dd30a5101d459afca56fa3c48f48f12 (patch) | |
tree | 917af0d2dff5492b209bb024de7dc69d90619e5d /src/parse_util.h | |
parent | c1b9b27f860235e604cc4eed85a87fdc01b0b4f1 (diff) |
Rewrite parse_util_unescape_wildcards
Make it simpler, and use wcstring instead of wcsdup
Diffstat (limited to 'src/parse_util.h')
-rw-r--r-- | src/parse_util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse_util.h b/src/parse_util.h index 7c65fc71..9bafd8e0 100644 --- a/src/parse_util.h +++ b/src/parse_util.h @@ -138,10 +138,10 @@ size_t parse_util_get_offset_from_line(const wcstring &str, int line); size_t parse_util_get_offset(const wcstring &str, int line, long line_offset); /** - Make a duplicate of the specified string, unescape wildcard - characters but not performing any other character transformation. + Return the given string, unescaping wildcard characters but not performing + any other character transformation. */ -wchar_t *parse_util_unescape_wildcards(const wchar_t *in); +wcstring parse_util_unescape_wildcards(const wcstring &in); /** Checks if the specified string is a help option. |