Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
FontAliasKey Class Reference
Collaboration diagram for FontAliasKey:
Collaboration graph

List of all members.

Public Member Functions

 FontAliasKey (const nsString &aString)
virtual PRUint32 HashCode (void) const
virtual PRBool Equals (const nsHashKey *aKey) const
virtual nsHashKey * Clone (void) const

Public Attributes

nsString mString

Detailed Description

Definition at line 409 of file nsDeviceContext.cpp.

Constructor & Destructor Documentation

FontAliasKey::FontAliasKey ( const nsString aString) [inline]

Definition at line 412 of file nsDeviceContext.cpp.


Here is the caller graph for this function:

Member Function Documentation

nsHashKey * FontAliasKey::Clone ( void  ) const [virtual]

Definition at line 440 of file nsDeviceContext.cpp.

  return new FontAliasKey(mString);

Here is the call graph for this function:

PRBool FontAliasKey::Equals ( const nsHashKey *  aKey) const [virtual]

Definition at line 435 of file nsDeviceContext.cpp.

PRUint32 FontAliasKey::HashCode ( void  ) const [virtual]

Definition at line 422 of file nsDeviceContext.cpp.

  PRUint32 hash = 0;
  const PRUnichar* string = mString.get();
  PRUnichar ch;
  while ((ch = *string++) != 0) {
    // FYI: hash = hash*37 + ch
    ch = ToUpperCase(ch);
    hash = ((hash << 5) + (hash << 2) + hash) + ch;
  return hash;

Here is the call graph for this function:

Member Data Documentation

Definition at line 419 of file nsDeviceContext.cpp.

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