2011-10-30 21:02:10 +00:00
|
|
|
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|
|
2014-07-05 16:12:02 +00:00
|
|
|
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
|