i want to output the original format the emails were read in

this coverts all valid emails in all caps to check if its a dupe but I don't want it to output the valid emails in all caps, but instead it should be output the way it came in. how can I make that happen? without adding more parameters to the functions


//change case
string changeCase(string s)
{
//data
int i;
for (i = 0; i < s.length(); i++)
{
s[i] = toupper(s[i]);
}
return s;
}

[/code]
Last edited on
without wading thru all that (getting late here)

don't change the data, just compare a copy of the data caseless

for example..
bool compare_ascii(char a, char b) //notice these are not reference parameters!
{
return (toupper(a) == toupper(b));
}
call something like that instead of == on line 232
okay thank you! have a good night!
Topic archived. No new replies allowed.