Function crowbook_text_processing::clean::remove_whitespaces
[−]
[src]
pub fn remove_whitespaces<'a, S: Into<Cow<'a, str>>>(input: S) -> Cow<'a, str>
Removes unnecessary whitespaces from a String.
Example
use crowbook_text_processing::clean::remove_whitespaces; let s = remove_whitespaces(" A string with more whitespaces than needed "); assert_eq!(&s, " A string with more whitespaces than needed ");