splitalphanum

This commit is contained in:
2026-04-30 14:23:20 -04:00
parent 9e303b5df7
commit cadc8653b7
9 changed files with 57 additions and 31 deletions

View File

@ -181,16 +181,16 @@ amsstring stripwhitespace(const amsstring &s);
amsstring stripallwhitespace(const amsstring &s);
//splits a string into contiguous sets of alphanumeric characters ignoring non-alphanums
amsarray<amsstring> splitalphanum(const amsstring &s); //
amsarray<amsstring> splitalphanum(const amsstring &s);
//splits into two guaranteed pieces
//if an extension separator . is not encountered, the first piece will contain the entire string, the second ""
amsarray<amsstring> splitext(const amsstring &s);
amsarray<amsstring> path_splitext(const amsstring &s);
//splits into two guaranteed pieces
//if a path separator is not encountered, the second piece will contain the entire string, and the first ""
amsarray<amsstring> splitpath(const amsstring &s);
amsarray<amsstring> path_split(const amsstring &s);
//selects between the outermost set of delimitleft and delimitright chars
amsstring select_between(const amsstring &s, const ams_chartype delimitleft, const ams_chartype delimitright);