| 534 | |
| 535 | |
| 536 | int tolowerw(int ch) |
| 537 | { |
| 538 | #if defined(_WIN_ALL) |
| 539 | // CharLower is more reliable than towlower in Windows. |
| 540 | // See comment for towupper above. Use 0xffff mask to prevent crash |
| 541 | // if value larger than 0xffff is passed to this function. |
| 542 | return (int)(INT_PTR)CharLower((wchar *)(INT_PTR)(ch&0xffff)); |
| 543 | #else |
| 544 | return towlower(ch); |
| 545 | #endif |
| 546 | } |
| 547 | |
| 548 | |
| 549 | int atoiw(const wchar *s) |