string_parser
Rust string parsing crate
Doc :
Usage :
extern crate string_parser;
use string_parser;
string_parser.unwrap;
extern crate string_parser;
use string_parser::string_parser;
fn end_filter(c : char) -> bool{
if c == '\'' {
return true;
}
else {
return false;
}
}
fn callback(s : String){
assert_eq!(String::from("foo"), s);
}
string_parser("./text", "'", end_filter, callback).unwrap();