Function voca_rs::manipulate::expand_spaces
source · Expand description
Returns a copy of subject
expands spaces using the tab characters.
Arguments
subject
- The string to expand.tabsize
- The tab size.
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"