| 2786 | // returning number of bytes in the character. |
| 2787 | |
| 2788 | int PchToWch(CONST uchar *pch, wchar *pwch) |
| 2789 | { |
| 2790 | if (us.nCharset == ccUTF8) |
| 2791 | return UTF8ToWch(pch, pwch); |
| 2792 | else if (us.nCharset == ccIBM) { |
| 2793 | *pwch = WchFromChIBM(*pch); |
| 2794 | return 1; |
| 2795 | } |
| 2796 | *pwch = WchFromChLatin(*pch); |
| 2797 | return 1; |
| 2798 | } |
| 2799 | |
| 2800 | |
| 2801 | // Convert a Unicode character to low-Ascii if possible, by translating to the |
no test coverage detected