U_CAPI void U_EXPORT2 ubidi_setLine (const UBiDi *pParaBiDi, UTextOffset start, UTextOffset limit, UBiDi *pLineBiDi, UErrorCode *pErrorCode)

ubidi_getLine() sets a UBiDi to contain the reordering information, especially the resolved levels, for all the characters in a line of text

Documentation

ubidi_getLine() sets a UBiDi to contain the reordering information, especially the resolved levels, for all the characters in a line of text. This line of text is specified by referring to a UBiDi object representing this information for a paragraph of text, and by specifying a range of indexes in this paragraph.

In the new line object, the indexes will range from 0 to limit-start.

This is used after calling ubidi_setPara() for a paragraph, and after line-breaking on that paragraph. It is not necessary if the paragraph is treated as a single line.

After line-breaking, rules (L1) and (L2) for the treatment of trailing WS and for reordering are performed on a UBiDi object that represents a line.

Important: pLineBiDi shares data with pParaBiDi. You must destroy or reuse pLineBiDi before pParaBiDi. In other words, you must destroy or reuse the UBiDi object for a line before the object for its parent paragraph.

Parameters:
pParaBiDi - is the parent paragraph object.
start - is the line's first index into the paragraph text.
limit - is just behind the line's last index into the paragraph text (its last index +1).
It must be 0<=start<=limit<=paragraph length.
pLineBiDi - is the object that will now represent a line of the paragraph.
pErrorCode - must be a valid pointer to an error code value, which must not indicate a failure before the function call.
See Also:
ubidi_setPara

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de