Would you like signs with those chars?
Would you like signs with those chars?
Posted Oct 25, 2022 15:46 UTC (Tue) by khim (subscriber, #9252)In reply to: Would you like signs with those chars? by dvdeug
Parent article: Would you like signs with those chars?
> Pretty much everything is defined in terms of Unicode now; even if you're processing C code, you should still be prepared for identifiers in Russian, Greek or Chinese.
Sure, but only part of your program which deals with identifiers needs adjustment.
You can write int foo = 42; but can not write int foo = 42; which means that you can easily use “C” locale and all ASCII-only functions with a simple change: where before Unicode you used is isalpha(c) or isalnum(c) now you would use c < 0 || isalpha(c) and c < 0 || isalnum(c).
That's how doxygen handles it, I would assume someone may use isalpha(c) and/or isalnum(c) in a similar way.
