Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Static Public Member Functions
nsCharSourceTraits< const char * > Struct Reference

#include <nsCharTraits.h>

List of all members.

Public Types

typedef ptrdiff_t difference_type

Static Public Member Functions

static PRUint32 readable_distance (const char *s)
static PRUint32 readable_distance (const char *first, const char *last)
static const char * read (const char *s)
static void advance (const char *&s, difference_type n)

Detailed Description

Definition at line 686 of file nsCharTraits.h.


Member Typedef Documentation

Definition at line 688 of file nsCharTraits.h.


Member Function Documentation

static void nsCharSourceTraits< const char * >::advance ( const char *&  s,
difference_type  n 
) [inline, static]

Definition at line 714 of file nsCharTraits.h.

      {
        s += n;
      }
static const char* nsCharSourceTraits< const char * >::read ( const char *  s) [inline, static]

Definition at line 707 of file nsCharTraits.h.

      {
        return s;
      }
static PRUint32 nsCharSourceTraits< const char * >::readable_distance ( const char *  s) [inline, static]

Definition at line 692 of file nsCharTraits.h.

      {
        return PRUint32(nsCharTraits<char>::length(s));
//      return numeric_limits<PRUint32>::max();
      }
static PRUint32 nsCharSourceTraits< const char * >::readable_distance ( const char *  first,
const char *  last 
) [inline, static]

Definition at line 700 of file nsCharTraits.h.

      {
        return PRUint32(last-first);
      }

The documentation for this struct was generated from the following file: