[FFmpeg-devel] [PATCH] lavu/avstring: support "'" escaping in sequence of chars enclosed by "'"

Nicolas George 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?

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120904/a6e6e194/attachment.asc>


More information about the ffmpeg-devel mailing list