[][src]Function voca_rs::manipulate::expand_spaces

pub fn expand_spaces(subject: &str, tabsize: usize) -> String

Returns a copy of subject expands spaces using the tab characters.

Arguments

Example

use voca_rs::*;
manipulate::expand_spaces("This  is  good", 2);
// => "This\tis\tgood"
manipulate::expand_spaces("Café del  Mar", 2);
// => "Café del\tMar"
use voca_rs::Voca;
"This  is  good"._expand_spaces(2);
// => "This\tis\tgood"