ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:iscolorcodechar

This is an old revision of the document!


IsColorCodeChar

bool IsColorCodeChar(int c)

Description

Returns true if c is a valid single-character color code (like \cg but not \c[blue]).

See the list of single-character color codes at ZDoom Wiki

[ is not treated as a color code by this function.

Examples

IsColorCodeChar('h') -> true
IsColorCodeChar('a') -> false
functions/iscolorcodechar.1489941324.txt.gz · Last modified: 2017/03/19 18:35 by korshun