How PVS-Studio Proved to Be More Attentive Than Three and a Half Programmers

if (!((ch >= 0x0FF10) && (ch <= 0x0FF19)) ||
((ch >= 0x0FF21) && (ch <= 0x0FF3A)) ||
((ch >= 0x0FF41) && (ch <= 0x0FF5A)))
!((ch >= 0x0FF10) && (ch <= 0x0FF19))
if (!(((ch >= 0x0FF10) && (ch <= 0x0FF19)) ||
((ch >= 0x0FF21) && (ch <= 0x0FF3A)) ||
((ch >= 0x0FF41) && (ch <= 0x0FF5A))))
if (((ch < 0x0FF10) || (ch > 0x0FF19)) &&
((ch < 0x0FF21) || (ch > 0x0FF3A)) &&
((ch < 0x0FF41) || (ch > 0x0FF5A)))
const bool isLetterOrDigit =    (ch >= 0x0FF10 && ch <= 0x0FF19)
|| (ch >= 0x0FF21 && ch <= 0x0FF3A)
|| (ch >= 0x0FF41 && ch <= 0x0FF5A);
if (!isLetterOrDigit)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store