====== IsColorCodeChar ====== {{tag>string color_codes}} ''bool IsColorCodeChar(int c)'' ===== Description ===== Returns true if c is a valid single-character color code (like ''\cg'' but not ''\c[blue]''). See the [[zdoom>print#Colors|list of single-character color codes]] at ZDoom Wiki ''['' is not treated as a color code by this function. The argument is a character (integer), not a string. ===== Examples ===== IsColorCodeChar('g') -> true IsColorCodeChar('a') -> false