Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_CDECL_END U_STABLE UCharDirection U_EXPORT2 ubidi_getCustomizedClass ( UBiDi pBiDi,
UChar32  c 
)

Retrieve the Bidi class for a given code point.

If a UBiDiClassCallback callback is defined and returns a value other than U_BIDI_CLASS_DEFAULT, that value is used; otherwise the default class determination mechanism is invoked.

Parameters:
pBiDi is the paragraph UBiDi object.
c is the code point whose Bidi class must be retrieved.
Returns:
The Bidi class for character c based on the given pBiDi instance.
See also:
UBiDiClassCallback ICU 3.6

Definition at line 2204 of file ubidi.c.

References NULL, and U_BIDI_CLASS_DEFAULT.

{
    UCharDirection dir;

    if( pBiDi->fnClassCallback == NULL ||
        (dir = (*pBiDi->fnClassCallback)(pBiDi->coClassCallback, c)) == U_BIDI_CLASS_DEFAULT )
    {
        return ubidi_getClass(pBiDi->bdp, c);
    } else {
        return dir;
    }
}


Generated by  Doxygen 1.6.0   Back to index