Logo Search packages:      
Sourcecode: xulrunner version File versions

PRUnichar nsTextFragment::CharAt ( PRInt32  aIndex  )  const [inline]

Return the character in the text-fragment at the given index. This always returns a PRUnichar.

Definition at line 231 of file nsTextFragment.h.

Referenced by nsTextTransformer::GetNextWord().

    NS_ASSERTION(PRUint32(aIndex) < mState.mLength, "bad index");
    return mState.mIs2b ? m2b[aIndex] : PRUnichar(m1b[aIndex]);

Generated by  Doxygen 1.6.0   Back to index