You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
866 B

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|