Back to index

lightning-sunbird  0.9+nobinonly
Static Public Member Functions
nsInstallResources Class Reference

#include <nsInstallResources.h>

List of all members.

Static Public Member Functions

static char * GetDefaultVal (const char *aResName)

Detailed Description

Definition at line 55 of file nsInstallResources.h.


Member Function Documentation

char * nsInstallResources::GetDefaultVal ( const char *  aResName) [static]

Definition at line 94 of file nsInstallResources.cpp.

{
    char    *currResName = XPIResTable[0].resName;
    char    *currResVal = nsnull;
    PRInt32 idx, len = 0;

    for (idx = 0; 0 != strcmp(currResName, NS_XPI_EOT); idx++)
    {
        currResName = XPIResTable[idx].resName;
        len = strlen(currResName);

        if (0 == strncmp(currResName, aResName, len))
        {
            currResVal = XPIResTable[idx].defaultString;
            break;
        }
    }

    return currResVal;
}

Here is the caller graph for this function:


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