Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsInternetCiter.cpp File Reference
#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsInternetCiter.h"
#include "nsCRT.h"
#include "nsCOMPtr.h"
#include "nsIServiceManager.h"
#include "nsILineBreakerFactory.h"
#include "nsLWBrkCIID.h"

Go to the source code of this file.

Functions

const PRUnichar gt ('>')
const PRUnichar space (' ')
const PRUnichar nbsp (0xa0)
const PRUnichar nl ('\n')
const PRUnichar cr ('\r')
static void AddCite (nsAString &aOutString, PRInt32 citeLevel)
static void BreakLine (nsAString &aOutString, PRUint32 &outStringCol, PRUint32 citeLevel)
static PRBool IsSpace (PRUnichar c)

Function Documentation

static void AddCite ( nsAString &  aOutString,
PRInt32  citeLevel 
) [static]

Definition at line 164 of file nsInternetCiter.cpp.

{
  for (PRInt32 i = 0; i < citeLevel; ++i)
    aOutString.Append(gt);
  if (citeLevel > 0)
    aOutString.Append(space);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void BreakLine ( nsAString &  aOutString,
PRUint32 outStringCol,
PRUint32  citeLevel 
) [inline, static]

Definition at line 173 of file nsInternetCiter.cpp.

{
  aOutString.Append(nl);
  if (citeLevel > 0)
  {
    AddCite(aOutString, citeLevel);
    outStringCol = citeLevel + 1;
  }
  else
    outStringCol = 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const PRUnichar cr ( '\r )

Here is the caller graph for this function:

const PRUnichar gt ( ,
 
)

Here is the caller graph for this function:

static PRBool IsSpace ( PRUnichar  c) [inline, static]

Definition at line 186 of file nsInternetCiter.cpp.

{
  return (nsCRT::IsAsciiSpace(c) || (c == nl) || (c == cr) || (c == nbsp));
}

Here is the call graph for this function:

Here is the caller graph for this function:

const PRUnichar nbsp ( 0xa0  )
const PRUnichar nl ( '\n )

Here is the caller graph for this function:

const PRUnichar space ( ' '  )