[][src]Function voca_rs::chop::substr

pub fn substr(subject: &str, start: usize, length: usize) -> String

Extracts from subject a string from start position a number of length characters.

Arguments

Example

use voca_rs::*;
chop::substr("beach", 1, 0);
// => "each"
chop::substr("błąd", 1, 2);
// => "łą"
use voca_rs::Voca;
"beach"._substr(1, 0);
// => "each"