| 520 | |
| 521 | |
| 522 | int toupperw(int ch) |
| 523 | { |
| 524 | #if defined(_WIN_ALL) |
| 525 | // CharUpper is more reliable than towupper in Windows, which seems to be |
| 526 | // C locale dependent even in Unicode version. For example, towupper failed |
| 527 | // to convert lowercase Russian characters. Use 0xffff mask to prevent crash |
| 528 | // if value larger than 0xffff is passed to this function. |
| 529 | return (int)(INT_PTR)CharUpper((wchar *)(INT_PTR)(ch&0xffff)); |
| 530 | #else |
| 531 | return towupper(ch); |
| 532 | #endif |
| 533 | } |
| 534 | |
| 535 | |
| 536 | int tolowerw(int ch) |
no outgoing calls
no test coverage detected