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

Function etoupper

Libraries/unrar/strfn.cpp:152–157  ·  view source on GitHub ↗

toupper with English only results if English input is provided. It avoids Turkish (small i) -> (big I with dot) conversion problem. We do not define 'ch' as 'int' to avoid necessity to cast all signed chars passed to this function to unsigned char.

Source from the content-addressed store, hash-verified

150// We do not define 'ch' as 'int' to avoid necessity to cast all
151// signed chars passed to this function to unsigned char.
152unsigned char etoupper(unsigned char ch)
153{
154 if (ch=='i')
155 return 'I';
156 return toupper(ch);
157}
158
159
160// Unicode version of etoupper.

Callers 2

SetAgeTextMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected