gfxSkipCharsBuilder is a helper class that accumulates a list of (skip, keep) commands and can eventually be used to construct a real gfxSkipChars.
More...
#include <gfxSkipChars.h>
List of all members.
Detailed Description
gfxSkipCharsBuilder is a helper class that accumulates a list of (skip, keep) commands and can eventually be used to construct a real gfxSkipChars.
gfxSkipCharsBuilder objects are quite large so don't keep these around. On the positive side, the Skip/KeepChar(s) methods are very efficient, especially when you have runs of all-kept or all-skipped characters.
mBuffer is an array of bytes; even numbered bytes represent characters kept, odd numbered bytes represent characters skipped. After those characters are accounted for, we have mRunCharCount characters which are kept or skipped depending on the value of mRunSkipped.
mCharCount is the sum of counts of all skipped and kept characters, i.e., the length of the original string.
Constructor & Destructor Documentation
| gfxSkipCharsBuilder::gfxSkipCharsBuilder |
( |
|
) |
[inline] |
Member Function Documentation
| void gfxSkipCharsBuilder::DoChars |
( |
PRUint32 |
aChars, |
|
|
PRBool |
aSkipped | |
|
) |
| | [inline] |
| PRBool gfxSkipCharsBuilder::GetAllCharsKept |
( |
|
) |
[inline] |
| PRUint32 gfxSkipCharsBuilder::GetCharCount |
( |
|
) |
[inline] |
| PRBool gfxSkipCharsBuilder::IsOK |
( |
|
) |
[inline] |
| void gfxSkipCharsBuilder::KeepChar |
( |
|
) |
[inline] |
| void gfxSkipCharsBuilder::KeepChars |
( |
PRUint32 |
aChars |
) |
[inline] |
| void gfxSkipCharsBuilder::SkipChar |
( |
|
) |
[inline] |
| void gfxSkipCharsBuilder::SkipChars |
( |
PRUint32 |
aChars |
) |
[inline] |
Friends And Related Function Documentation
The documentation for this class was generated from the following file: