Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
mozTXTToHTMLConv.cpp File Reference
#include "mozTXTToHTMLConv.h"
#include "nsIServiceManager.h"
#include "nsNetCID.h"
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"
#include "nsCRT.h"
#include "nsIExternalProtocolHandler.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kIOServiceCID, NS_IOSERVICE_CID)
static PRBool IsSpace (const PRUnichar aChar)
nsresult MOZ_NewTXTToHTMLConv (mozTXTToHTMLConv **aConv)

Variables

const PRFloat64 growthRate = 1.2

Function Documentation

static PRBool IsSpace ( const PRUnichar  aChar) [inline, static]

Definition at line 59 of file mozTXTToHTMLConv.cpp.

{
  return (nsCRT::IsAsciiSpace(aChar) || aChar == 0xA0 || aChar == 0x3000);
}

Here is the caller graph for this function:

Definition at line 1394 of file mozTXTToHTMLConv.cpp.

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

    *aConv = new mozTXTToHTMLConv();
    if (!*aConv)
      return NS_ERROR_OUT_OF_MEMORY;

    NS_ADDREF(*aConv);
    //    return (*aConv)->Init();
    return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_DEFINE_CID ( kIOServiceCID  ,
NS_IOSERVICE_CID   
) [static]

Variable Documentation

Definition at line 53 of file mozTXTToHTMLConv.cpp.