Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsMultiMixedConv.cpp File Reference
#include "nsMultiMixedConv.h"
#include "nsMemory.h"
#include "nsInt64.h"
#include "plstr.h"
#include "nsIHttpChannel.h"
#include "nsIServiceManager.h"
#include "nsNetUtil.h"
#include "nsMimeTypes.h"
#include "nsIStringStream.h"
#include "nsReadableUtils.h"
#include "nsCRT.h"
#include "nsIHttpChannelInternal.h"
#include "nsURLHelper.h"

Go to the source code of this file.


#define ERR_OUT   { free(buffer); return rv; }


static PRUint32 LengthToToken (const char *cursor, const char *token)
 NS_IMPL_THREADSAFE_ISUPPORTS3 (nsMultiMixedConv, nsIStreamConverter, nsIStreamListener, nsIRequestObserver) NS_IMETHODIMP nsMultiMixedConv
nsresult NS_NewMultiMixedConv (nsMultiMixedConv **aMultiMixedConv)

Define Documentation

Definition at line 417 of file nsMultiMixedConv.cpp.

Function Documentation

static PRUint32 LengthToToken ( const char *  cursor,
const char *  token 
) [static]

Definition at line 58 of file nsMultiMixedConv.cpp.

    PRUint32 len = token - cursor;
    // Trim off any LF or CRLF preceding the token
    if (len && *(token-1) == '\n') {
        if (len && *(token-2) == '\r')
    return len;

Definition at line 384 of file nsMultiMixedConv.cpp.

Definition at line 992 of file nsMultiMixedConv.cpp.

    NS_PRECONDITION(aMultiMixedConv != nsnull, "null ptr");
    if (! aMultiMixedConv)
        return NS_ERROR_NULL_POINTER;

    *aMultiMixedConv = new nsMultiMixedConv();
    if (! *aMultiMixedConv)
        return NS_ERROR_OUT_OF_MEMORY;

    return NS_OK;

Here is the call graph for this function:

Here is the caller graph for this function: