mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-07 11:13:41 +02:00
31886968d3
Convinient function to build paths. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
Testing av_get_token()
|
|
|''| -> || + ||
|
|
|| -> || + ||
|
|
|:| -> || + |:|
|
|
|\| -> |\| + ||
|
|
|'| -> || + ||
|
|
| '' :| -> || + |:|
|
|
| '' '' :| -> | | + |:|
|
|
|foo '' :| -> |foo | + |:|
|
|
|'foo'| -> |foo| + ||
|
|
|foo | -> |foo| + ||
|
|
| ' foo ' | -> | foo | + ||
|
|
|foo\| -> |foo\| + ||
|
|
|foo': blah:blah| -> |foo: blah:blah| + ||
|
|
|foo\: blah:blah| -> |foo: blah| + |:blah|
|
|
|foo'| -> |foo| + ||
|
|
|'foo : ' :blahblah| -> |foo : | + |:blahblah|
|
|
|\ :blah| -> | | + |:blah|
|
|
| foo| -> |foo| + ||
|
|
| foo | -> |foo| + ||
|
|
| foo \ | -> |foo | + ||
|
|
|foo ':blah| -> |foo :blah| + ||
|
|
| foo bar : blahblah| -> |foo bar| + |: blahblah|
|
|
|\f\o\o| -> |foo| + ||
|
|
|'foo : \ \ ' : blahblah| -> |foo : \ \ | + |: blahblah|
|
|
|'\fo\o:': blahblah| -> |\fo\o:| + |: blahblah|
|
|
|\'fo\o\:': foo ' :blahblah| -> |'foo:: foo | + |:blahblah|
|
|
Testing av_append_path_component()
|
|
(null) = (null)
|
|
path = path
|
|
comp = comp
|
|
path/comp = path/comp
|
|
path/comp = path/comp
|
|
path/comp = path/comp
|
|
path/comp = path/comp
|
|
path/path2/comp/comp2 = path/path2/comp/comp2
|