Changed all toupper, tolower, isupper, islower and isalpha to internal defined function. Case insensitive regexp should work on Win9x now.

This commit is contained in:
Ianos Gnatiuc
2005-10-31 22:18:26 +00:00
parent ad8b2a9d36
commit 21b44b65d2
69 changed files with 228 additions and 192 deletions

View File

@@ -174,7 +174,7 @@ void EzycomArea::save_message(int __mode, gmsg* __msg, EzycHdr& __hdr) {
_msgfast.whoto = CRC32_MASK_CCITT;
char* _ptr = __msg->to;
while(*_ptr) {
_msgfast.whoto = updCrc32((char)toupper(*_ptr), _msgfast.whoto);
_msgfast.whoto = updCrc32((char)g_toupper(*_ptr), _msgfast.whoto);
_ptr++;
}
_fh = test_open(AddPath(wide->msgbasepath, "MSGFAST.BBS"), O_WRONLY|O_CREAT|O_BINARY, SH_DENYWR);

View File

@@ -197,7 +197,7 @@ int PcbArea::load_message(int __mode, gmsg* __msg, PcbHdr& __hdr) {
while(*ptr2) {
if(*ptr2 == '+') {
// get flags
switch(toupper(*(++ptr2))) {
switch(g_toupper(*(++ptr2))) {
case 'C': __msg->attr.cra1(); break;
case 'D': __msg->attr.dir1(); break;
}

View File

@@ -106,7 +106,7 @@ uint16_t XbbsCheckSum(char* str) {
uint16_t checksum = 0;
while(*str) {
checksum ^= (uint16_t)toupper(*str++);
checksum ^= (uint16_t)g_toupper(*str++);
if(checksum & 1)
checksum = (uint16_t)((checksum >> 1) ^ 0xA000);
else