Function voca_rs::chop::after[][src]

pub fn after(subject: &str, search: &str) -> String
Expand description

Returns everything after the given search.

Arguments

  • subject - The string to extract from.
  • search - The substring to look for.

Example

use voca_rs::*;
chop::after("This is my name", "This is");
// => " my name"
chop::after("S̃o̊m̋ȩ̈ gḷ̉y̌p̆ẖs a̋řẹ̆̇ hër̵ē̱", "gḷ̉y̌p̆ẖs");
// => " a̋řẹ̆̇ hër̵ē̱"
use voca_rs::Voca;
"This is my name"._after("This is");
// => " my name"