Questions tagged «toupper»

2
为什么在此C代码中将字母分成多个范围?
在一个自定义库中,我看到了一个实现: inline int is_upper_alpha(char chValue) { if (((chValue >= 'A') && (chValue <= 'I')) || ((chValue >= 'J') && (chValue <= 'R')) || ((chValue >= 'S') && (chValue <= 'Z'))) return 1; return 0; } 是复活节彩蛋,还是与标准C / C ++方法相比有什么优势? inline int is_upper_alpha(char chValue) { return ((chValue >= 'A') && (chValue …
161 c++  c  character  toupper 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.