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

U_STABLE UBiDiDirection U_EXPORT2 ubidi_getDirection ( const UBiDi pBiDi  ) 

Get the directionality of the text.

Parameters:
pBiDi is the paragraph or line UBiDi object.
Returns:
a value of UBIDI_LTR, UBIDI_RTL or UBIDI_MIXED that indicates if the entire text represented by this object is unidirectional, and which direction, or if it is mixed-directional.
See also:
UBiDiDirection ICU 2.0

Definition at line 2055 of file ubidi.c.

References UBIDI_LTR.

                                       {
    if(IS_VALID_PARA_OR_LINE(pBiDi)) {
        return pBiDi->direction;
    } else {
        return UBIDI_LTR;
    }
}


Generated by  Doxygen 1.6.0   Back to index