Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsIndexedToHTML.cpp File Reference
#include "nsIndexedToHTML.h"
#include "nsNetUtil.h"
#include "nsIStringStream.h"
#include "nsIFileURL.h"
#include "nsEscape.h"
#include "nsIDirIndex.h"
#include "prtime.h"
#include "nsDateTimeFormatCID.h"
#include "nsURLHelper.h"
#include "nsCRT.h"
#include "nsIPlatformCharset.h"
#include "nsInt64.h"

Go to the source code of this file.

Defines

#define ROWS_PER_TABLE   250

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS4 (nsIndexedToHTML, nsIDirIndexListener, nsIStreamConverter, nsIRequestObserver, nsIStreamListener) static NS_DEFINE_CID(kDateTimeFormatCID
static void ConvertNonAsciiToNCR (const nsAString &in, nsAFlatString &out)

Variables

 NS_DATETIMEFORMAT_CID

Define Documentation

Definition at line 507 of file nsIndexedToHTML.cpp.


Function Documentation

static void ConvertNonAsciiToNCR ( const nsAString &  in,
nsAFlatString out 
) [static]

Definition at line 61 of file nsIndexedToHTML.cpp.

{
  nsAString::const_iterator start, end;

  in.BeginReading(start);
  in.EndReading(end);

  out.Truncate();

  while (start != end) {
    if (*start < 128) {
      out.Append(*start++);
    } else {
      out.AppendLiteral("&#x");
      nsAutoString hex;
      hex.AppendInt(*start++, 16);
      out.Append(hex);
      out.Append((PRUnichar)';');
    }
  }
}

Variable Documentation

Definition at line 59 of file nsIndexedToHTML.cpp.