Logo Search packages:      
Sourcecode: icu version File versions

U_STABLE uint8_t U_EXPORT2 u_getCombiningClass ( UChar32  c  ) 

Returns the combining class of the code point as specified in UnicodeData.txt.

Parameters:
c the code point of the character
Returns:
the combining class of the character ICU 2.0

Definition at line 924 of file unorm.cpp.

References U_ZERO_ERROR, and UTRIE2_GET32.

                               {
#if !UNORM_HARDCODE_DATA
    UErrorCode errorCode=U_ZERO_ERROR;
    if(_haveData(errorCode)) {
#endif
        uint32_t norm32=UTRIE2_GET32(&normTrie, c);
        return (uint8_t)(norm32>>_NORM_CC_SHIFT);
#if !UNORM_HARDCODE_DATA
    } else {
        return 0;
    }
#endif
}


Generated by  Doxygen 1.6.0   Back to index