Rust
Rust
StringBuilder GetBetween
Demonstrates the GetBetween method.Chilkat Rust Downloads
let sb = chilkat::StringBuilder::new();
let _ = sb.append("<company><name>Chilkat Software</name></company>");
// For example, to get the company name in the string above...
let company_name = sb.get_between("<name>", "</name>").unwrap_or_default();
println!("Company Name = {}", company_name);