_ismbcalnum, _ismbcalpha, _ismbcdigit
Visual Studio .NET 2003
int _ismbcalnum( unsigned int c ); int _ismbcalpha( unsigned int c ); int _ismbcdigit( unsigned int c );
Parameter
- c
- Character to be tested.
Return Value
Each of these routines returns a nonzero value if the character satisfies the test condition or 0 if it does not. If c<= 255 and there is a corresponding _ismbb routine (for example, _ismbcalnum corresponds to _ismbbalnum), the result is the return value of the corresponding _ismbb routine.
Remarks
Each of these routines tests a given multibyte character for a given condition.
| Routine | Test condition | Code page 932 example |
|---|---|---|
| _ismbcalnum | Alphanumeric | Returns nonzero if and only if c is a single-byte representation of an ASCII English letter: See examples for _ismbcdigit and _ismbcalpha. |
| _ismbcalpha | Alphabetic | Returns nonzero if and only if c is a single-byte representation of an ASCII English letter: 0x41<=c<=0x5A or 0x61<=c<=0x7A; or a katakana letter: 0xA6<=c<=0xDF. |
| _ismbcdigit | Digit | Returns nonzero if and only if c is a single-byte representation of an ASCII digit: 0x30<=c<=0x39. |
Requirements
| Routine | Required header | Compatibility |
|---|---|---|
| _ismbcalnum | <mbstring.h> | Win 98, Win Me, Win NT, Win 2000, Win XP |
| _ismbcalpha | <mbstring.h> | Win 98, Win Me, Win NT, Win 2000, Win XP |
| _ismbcdigit | <mbstring.h> | Win 98, Win Me, Win NT, Win 2000, Win XP |
For additional compatibility information, see Compatibility in the Introduction.
Libraries
All versions of the C run-time libraries.
See Also
Character Classification Routines | _ismbc Function Overview | is, isw Function Overview | _ismbb Routines | Run-Time Routines and .NET Framework Equivalents