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.

c the code point of the character
the combining class of the character ICU 2.0

Definition at line 924 of file unorm.cpp.

References U_ZERO_ERROR, and UTRIE2_GET32.

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

Generated by  Doxygen 1.6.0   Back to index