Logo Search packages:      
Sourcecode: icu version File versions

U_STABLE UBool U_EXPORT2 u_isalnum ( UChar32  c  ) 

Determines whether the specified code point is an alphanumeric character (letter or digit) according to Java. True for characters with general categories "L" (letters) and "Nd" (decimal digit numbers).

Same as java.lang.Character.isLetterOrDigit().

In addition to being equivalent to a Java function, this also serves as a C/POSIX migration function. See the comments about C/POSIX character classification functions in the documentation at the top of this header file.

Parameters:
c the code point to be tested
Returns:
TRUE if the code point is an alphanumeric character according to Character.isLetterOrDigit()
ICU 2.0

Definition at line 370 of file uchar.c.

References U_GC_L_MASK, and U_GC_ND_MASK.

                     {
    uint32_t props;
    GET_PROPS(c, props);
    return (UBool)((CAT_MASK(props)&(U_GC_L_MASK|U_GC_ND_MASK))!=0);
}


Generated by  Doxygen 1.6.0   Back to index