Skip to content

giellatekno/without-ats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

without_ats

A one-function library with a function to remove every occurence of "@...@" from a string.

This is useful for us to remove the diacritics from analyser output.

function: without_ats_iter

Return an iterator of all the string slices of s that are not "enclosed" in "@..@".

Example:

use without_ats::without_ats_iter;

let clean = without_ats_iter("@AAA@Clean@BBB@String@CCC@");
assert_eq!(String::from_iter(clean), String::from("CleanString"));

function: without_ats

A convenience function that returns a new String instead of an iterator over the subslices.

use without_ats::without_ats;

let clean = without_ats("@AAA@Clean@BBB@String@CCC@");
assert_eq!(clean, String::from("CleanString"));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages