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

U_STABLE int32_t U_EXPORT2 ubidi_getProcessedLength ( const UBiDi pBiDi  ) 

Get the length of the source text processed by the last call to ubidi_setPara(). This length may be different from the length of the source text if option UBIDI_OPTION_STREAMING has been set.
Note that whenever the length of the text affects the execution or the result of a function, it is the processed length which must be considered, except for ubidi_setPara (which receives unprocessed source text) and ubidi_getLength (which returns the original length of the source text).
In particular, the processed length is the one to consider in the following cases:

  • maximum value of the limit argument of ubidi_setLine
  • maximum value of the charIndex argument of ubidi_getParagraph
  • maximum value of the charIndex argument of ubidi_getLevelAt
  • number of elements in the array returned by ubidi_getLevels
  • maximum value of the logicalStart argument of ubidi_getLogicalRun
  • maximum value of the logicalIndex argument of ubidi_getVisualIndex
  • number of elements filled in the *indexMap argument of ubidi_getLogicalMap
  • length of text processed by ubidi_writeReordered

Parameters:
pBiDi is the paragraph UBiDi object.
Returns:
The length of the part of the source text processed by the last call to ubidi_setPara.
See also:
ubidi_setPara

UBIDI_OPTION_STREAMING ICU 3.6

Definition at line 2082 of file ubidi.c.

                                             {
    if(IS_VALID_PARA_OR_LINE(pBiDi)) {
        return pBiDi->length;
    } else {
        return 0;
    }
}


Generated by  Doxygen 1.6.0   Back to index