[FFmpeg-devel] [PATCH] Get rid of p
Måns Rullgård
mans
Sun Jun 8 23:09:47 CEST 2008
Michael Niedermayer <michaelni at gmx.at> writes:
> On Sun, Jun 08, 2008 at 09:42:54PM +0100, Ramiro Polla wrote:
> [...]
>> >> I found this specially painful when reading mpeg code for the mimic
>> >> encoder. Long functions with lots of s around...
>> >
>> > would it really have helped if these where lots of ctx instead? If so
>> > iam curious how?
>>
>> Ctrl+F ctx F3 F3 F3...
>> Or / ctx n n n... if you prefer
>>
>> [^a-z]s[^a-z] expects the search function of whatever editor to support
>> regexp. Maybe it's just because I grew out of Windows, but regexps are
>> much less intuitive for me, even if they are more powerful, specially
>> for simple searches.
>
> \Ws\W works as well
>
> grep -C9999 --color '\Ws\W' mpeg12.c
> will nicely highlight them all
Some regex variants also allow '\<s\>'. This has the advantage that
it matches at the start or end of a line as well.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list