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.
| 150 | // We do not define 'ch' as 'int' to avoid necessity to cast all |
| 151 | // signed chars passed to this function to unsigned char. |
| 152 | unsigned 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. |
no outgoing calls
no test coverage detected