-
- if( isLastIndex )
- {
- // The given index is one after the last character, so it's not in a bidi line.
- // Check if it's just after the last bidi line.
- const BidirectionalLineRunIndex lastBidiLineIndex = numberOfBidirectionalLines - 1u;
- const BidirectionalLineInfoRun& bidiLineRun = *( bidirectionalLineInfoBuffer + lastBidiLineIndex );
-
- if( characterIndex == bidiLineRun.characterRun.characterIndex + bidiLineRun.characterRun.numberOfCharacters )
- {
- // The character is in the last bidi line.
- mBidirectionalLineIndex = lastBidiLineIndex;
- return true;
- }
- }
-