Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsHttpAuthCache.cpp File Reference
#include <stdlib.h>
#include "nsHttp.h"
#include "nsHttpAuthCache.h"
#include "nsString.h"
#include "nsCRT.h"
#include "prprf.h"

Go to the source code of this file.

Functions

static void GetAuthKey (const char *scheme, const char *host, PRInt32 port, nsCString &key)
static PRBool StrEquivalent (const PRUnichar *a, const PRUnichar *b)

Function Documentation

static void GetAuthKey ( const char *  scheme,
const char *  host,
PRInt32  port,
nsCString key 
) [inline, static]

Definition at line 47 of file nsHttpAuthCache.cpp.

{
    key.Assign(scheme);
    key.AppendLiteral("://");
    key.Append(host);
    key.Append(':');
    key.AppendInt(port);
}

Here is the caller graph for this function:

static PRBool StrEquivalent ( const PRUnichar a,
const PRUnichar b 
) [static]

Definition at line 59 of file nsHttpAuthCache.cpp.

{
    static const PRUnichar emptyStr[] = {0};

    if (!a)
        a = emptyStr;
    if (!b)
        b = emptyStr;

    return nsCRT::strcmp(a, b) == 0;
}

Here is the caller graph for this function: