Expand description
The Simple Switch Cases Configuration PreProcessor
Introduction is in the Readme.
Typical usage of the library is as follow:
use ssccpp::Parser;
let content =
b"1\n\
>>> thisone\n\
2\n\
>>> other\n\
XXX\n\
>>>\n\
3";
let parser = Parser::new("thisone",">>>").unwrap();
let mut res : Vec<u8> = Vec::new();
parser.process(&content[..], &mut res).unwrap();
let expected_result = b"1\n2\n3\n";
assert_eq!(expected_result, res.as_slice());
Structsยง
- Parser
- The struct implementing the actual logic.