Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Static Public Member Functions | Private Member Functions
xptiFileType Class Reference

#include <xptiprivate.h>

List of all members.

Public Types

enum  Type { UNKNOWN = -1, XPT = 0, ZIP = 1 }

Static Public Member Functions

static Type GetType (const char *name)
static PRBool IsUnknown (const char *name)
static PRBool IsXPT (const char *name)
static PRBool IsZip (const char *name)

Private Member Functions

 xptiFileType ()

Detailed Description

Definition at line 817 of file xptiprivate.h.


Member Enumeration Documentation

Enumerator:
UNKNOWN 
XPT 
ZIP 

Definition at line 820 of file xptiprivate.h.

{UNKNOWN = -1, XPT = 0, ZIP = 1 };

Constructor & Destructor Documentation


Member Function Documentation

xptiFileType::Type xptiFileType::GetType ( const char *  name) [static]

Definition at line 60 of file xptiMisc.cpp.

{
    NS_ASSERTION(name, "loser!");
    int len = PL_strlen(name);
    for(const xptiFileTypeEntry* p = g_Entries; p->name; p++)
    {
        if(len > p->len && 0 == PL_strcasecmp(p->name, &(name[len - p->len])))
            return p->type;
    }
    return UNKNOWN;        
}        

Here is the call graph for this function:

Here is the caller graph for this function:

static PRBool xptiFileType::IsUnknown ( const char *  name) [inline, static]

Definition at line 824 of file xptiprivate.h.

        {return GetType(name) == UNKNOWN;}

Here is the call graph for this function:

Here is the caller graph for this function:

static PRBool xptiFileType::IsXPT ( const char *  name) [inline, static]

Definition at line 827 of file xptiprivate.h.

        {return GetType(name) == XPT;}

Here is the call graph for this function:

Here is the caller graph for this function:

static PRBool xptiFileType::IsZip ( const char *  name) [inline, static]

Definition at line 830 of file xptiprivate.h.

        {return GetType(name) == ZIP;}

Here is the call graph for this function:


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