MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / loctoupper

Function loctoupper

Libraries/unrar/strfn.cpp:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
135
136unsigned char loctoupper(unsigned char ch)
137{
138#if defined(_WIN_ALL)
139 // Convert to LPARAM first to avoid a warning in 64 bit mode.
140 // Convert to uintptr_t to avoid Clang/win error: cast to 'char *' from smaller integer type 'unsigned char' [-Werror,-Wint-to-pointer-cast]
141 return (int)(LPARAM)CharUpperA((LPSTR)(uintptr_t)ch);
142#else
143 return toupper(ch);
144#endif
145}
146
147
148// toupper with English only results if English input is provided.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected