This commit is contained in:
2026-04-30 12:48:30 -04:00
parent 33f04eb9cd
commit 9e303b5df7
9 changed files with 159 additions and 34 deletions

View File

@ -41,6 +41,12 @@ static const ams_chartype ams_char_nt = (ams_chartype) '\0'; //null terminator
static const ams_chartype ams_char_dq = (ams_chartype) '"'; //doublequote
static const ams_chartype ams_char_sq = (ams_chartype) '\''; //singlequote
ams_chartype tolower(ams_chartype c);
ams_chartype toupper(ams_chartype c);
bool amsstring_isspace(ams_chartype c);
int amsstring_strlen(const ams_chartype *c);
bool amsstring_ischarnumeric(const ams_chartype c);
class amsstring
{
@ -191,12 +197,12 @@ amsstring select_between(const amsstring &s, const ams_chartype delimitleft, con
//selects between the outermost set of delimitleft and delimitright strings
//if delimitleft or delimitright strings are empty, selects the left or right end of the array
amsstring select_between(const amsstring &s, const ams_chartype *delimitleft, const ams_chartype *delimitright); //
amsstring select_between(const amsstring &s, const ams_chartype *delimitleft, const ams_chartype *delimitright);
amsstring concatenate(const amsarray<amsstring> &slist);
//adds \n between each line in the concatenated string
amsstring concat_lines(const amsarray<amsstring> &lns);//
amsstring concat_lines(const amsarray<amsstring> &lns);

View File

@ -20,6 +20,7 @@ namespace ams
void amsstring4_test_concatenation_operators();
void amsstring4_test_convenience1a();
void amsstring4_test_convenience1b();
};