Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsStringIO.h File Reference
#include "nsAString.h"
#include <stdio.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsFileCharSink< CharT >

Functions

template<class CharT >
void fprint_string (FILE *aFile, const basic_nsAString< CharT > &aString)
template<class CharT >
void print_string (const basic_nsAString< CharT > &aString)

Function Documentation

template<class CharT >
void fprint_string ( FILE aFile,
const basic_nsAString< CharT > &  aString 
) [inline]

Definition at line 69 of file nsStringIO.h.

  {
    nsReadingIterator<CharT> fromBegin, fromEnd;
    nsFileCharSink<CharT> toBegin(aFile);
    copy_string(aString.BeginReading(fromBegin), aString.EndReading(fromEnd), toBegin);
  }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class CharT >
void print_string ( const basic_nsAString< CharT > &  aString) [inline]

Definition at line 80 of file nsStringIO.h.

  {
    fprint_string(stdout, aString);
  }

Here is the call graph for this function:

Here is the caller graph for this function: