[FFmpeg-devel] [PATCH] lavu/avstring: support "'" escaping in sequence of chars enclosed by "'"
nicolas.george at normalesup.org
Tue Sep 4 09:15:29 CEST 2012
Le nonidi 19 fructidor, an CCXX, Stefano Sabatini a écrit :
> Make av_get_token() support escaping of ' inside a sequence enclosed by
> quotes. This allows to specify strings of the kind:
> '\'this sentence is quoted\''
> which may be useful when quoting nested literal strings.
The standard Unix shell behaviour is that single-quotes disable _all_
special characters except the single quote itself. Singles quotes should be
escaped by temporarily ending the single quotes:
'That'\''s all folks!'
or, in the above example:
\''this sentence is quoted'\'
What is your use-case exactly?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel