Eric
Member
|
Simple yet useful IsDigit(Char) function
It'd be nice to have such a function already implemented in EE.
Code:
Bool IsDigit(Char c) { if( c >= '0' && c <= '9' ) return true; return false; }
Bool IsDigit(Char8 c) { if( c >= '0' && c <= '9' ) return true; return false; }
P.S. IsAlpha and IsAlNum are also welcome I guess
Regards,
Eric 'Eri' Przychocki
ourgames.eu
(This post was last modified: 02-25-2014 11:39 AM by Eric.)
|
|
02-25-2014 11:36 AM |
|
Esenthel
Administrator
|
RE: Simple yet useful IsDigit(Char) function
there's CharFlag and CharType
|
|
02-25-2014 09:24 PM |
|