Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Member Functions
nsReadEndCondition Class Reference

#include <nsScanner.h>

List of all members.

Public Member Functions

 nsReadEndCondition (const PRUnichar *aTerminateChars)

Public Attributes

const PRUnicharmChars
PRUnichar mFilter

Private Member Functions

 nsReadEndCondition (const nsReadEndCondition &aOther)
void operator= (const nsReadEndCondition &aOther)

Detailed Description

Definition at line 64 of file nsScanner.h.

Constructor & Destructor Documentation

nsReadEndCondition::nsReadEndCondition ( const PRUnichar aTerminateChars) [explicit]

Definition at line 59 of file nsScanner.cpp.

  mChars(aTerminateChars), mFilter(PRUnichar(~0)) // All bits set
  // Build filter that will be used to filter out characters with
  // bits that none of the terminal chars have. This works very well
  // because terminal chars often have only the last 4-6 bits set and
  // normal ascii letters have bit 7 set. Other letters have even higher
  // bits set.
  // Calculate filter
  const PRUnichar *current = aTerminateChars;
  PRUnichar terminalChar = *current;
  while (terminalChar) {
    mFilter &= ~terminalChar;
    terminalChar = *current;

Member Function Documentation

void nsReadEndCondition::operator= ( const nsReadEndCondition aOther) [private]

Member Data Documentation

Definition at line 66 of file nsScanner.h.

Definition at line 67 of file nsScanner.h.

The documentation for this class was generated from the following files: