MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / PchToWch

Function PchToWch

general.cpp:2788–2798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2786// returning number of bytes in the character.
2787
2788int 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

Callers 1

SvgTextFunction · 0.85

Calls 3

UTF8ToWchFunction · 0.85
WchFromChIBMFunction · 0.85
WchFromChLatinFunction · 0.85

Tested by

no test coverage detected