--- smsdaemon/util.cpp 2008/06/16 10:09:17 89 +++ smsdaemon/util.cpp 2008/12/07 00:59:05 132 @@ -10,7 +10,9 @@ #include #include #include +#include +#include #include "util.h" using namespace std; @@ -105,12 +107,34 @@ return retval; } + char my_toupper(char ch) + { + if (ch == 'æ') + return 'Æ'; + if (ch == 'ø') + return 'Ø'; + if (ch == 'å') + return 'Å'; + + return ::toupper(ch); + } + + char my_tolower(char ch) + { + if (ch == 'Æ') + return 'æ'; + if (ch == 'Ø') + return 'ø'; + if (ch == 'Å') + return 'å'; + return ::tolower(ch); + } string str_toupper(string str) { for (unsigned i=0; i