Allow string escaping via "".

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16610 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-09-27 08:52:40 +00:00
parent 9f24b5c71f
commit a949fa9b66
1 changed files with 9 additions and 0 deletions

View File

@ -262,6 +262,15 @@ static char const * parse_str( char const * str, strarg_t * const valp )
match = &str[len]; match = &str[len];
} }
else else
if (str[0] == '"') {
str = &str[1];
match = strchr(str, '"');
if (!match)
return NULL;
valp->len = match - str;
valp->str = str;
return &match[1];
}
if ( !match ) if ( !match )
match = &str[strlen(str)]; match = &str[strlen(str)];