lightspark::tiny_string Class Reference

#include <swftypes.h>

List of all members.

Public Member Functions

 tiny_string ()
 tiny_string (const char *s, bool copy=false)
 tiny_string (const tiny_string &r)
 tiny_string (const std::string &r)
 ~tiny_string ()
 tiny_string (int i)
 tiny_string (number_t d)
tiny_stringoperator= (const tiny_string &s)
tiny_stringoperator= (const std::string &s)
tiny_stringoperator= (const char *s)
tiny_stringoperator+= (const char *s)
tiny_stringoperator+= (const tiny_string &r)
const tiny_string operator+ (const tiny_string &r)
bool operator< (const tiny_string &r) const
bool operator== (const tiny_string &r) const
bool operator!= (const tiny_string &r) const
bool operator== (const char *r) const
bool operator!= (const char *r) const
const char * raw_buf () const
char operator[] (int i) const
int len () const
tiny_string substr (int start, int end) const

Private Types

enum  TYPE { READONLY = 0, STATIC, DYNAMIC }

Private Member Functions

void makePrivateCopy (const char *s)
void createBuffer ()
void resetToStatic ()

Private Attributes

char _buf_static [TS_SIZE]
char * buf
TYPE type

Friends

std::ostream & operator<< (std::ostream &s, const tiny_string &r)

Detailed Description

Definition at line 52 of file swftypes.h.


Member Enumeration Documentation

Enumerator:
READONLY 
STATIC 
DYNAMIC 

Definition at line 56 of file swftypes.h.


Constructor & Destructor Documentation

lightspark::tiny_string::tiny_string (  )  [inline]

Definition at line 83 of file swftypes.h.

lightspark::tiny_string::tiny_string ( const char *  s,
bool  copy = false 
) [inline]

Definition at line 84 of file swftypes.h.

lightspark::tiny_string::tiny_string ( const tiny_string r  )  [inline]

Definition at line 91 of file swftypes.h.

lightspark::tiny_string::tiny_string ( const std::string &  r  )  [inline]

Definition at line 98 of file swftypes.h.

lightspark::tiny_string::~tiny_string (  )  [inline]

Definition at line 114 of file swftypes.h.

lightspark::tiny_string::tiny_string ( int  i  )  [inline, explicit]

Definition at line 118 of file swftypes.h.

lightspark::tiny_string::tiny_string ( number_t  d  )  [inline, explicit]

Definition at line 122 of file swftypes.h.


Member Function Documentation

void lightspark::tiny_string::createBuffer (  )  [inline, private]

Definition at line 70 of file swftypes.h.

int lightspark::tiny_string::len (  )  const [inline]

Definition at line 227 of file swftypes.h.

void lightspark::tiny_string::makePrivateCopy ( const char *  s  )  [inline, private]

Definition at line 62 of file swftypes.h.

bool lightspark::tiny_string::operator!= ( const char *  r  )  const [inline]

Definition at line 215 of file swftypes.h.

bool lightspark::tiny_string::operator!= ( const tiny_string r  )  const [inline]

Definition at line 207 of file swftypes.h.

const tiny_string lightspark::tiny_string::operator+ ( const tiny_string r  )  [inline]

Definition at line 193 of file swftypes.h.

tiny_string& lightspark::tiny_string::operator+= ( const tiny_string r  )  [inline]

Definition at line 177 of file swftypes.h.

tiny_string& lightspark::tiny_string::operator+= ( const char *  s  )  [inline]

Definition at line 161 of file swftypes.h.

bool lightspark::tiny_string::operator< ( const tiny_string r  )  const [inline]

Definition at line 199 of file swftypes.h.

tiny_string& lightspark::tiny_string::operator= ( const char *  s  )  [inline]

Definition at line 154 of file swftypes.h.

tiny_string& lightspark::tiny_string::operator= ( const std::string &  s  )  [inline]

Definition at line 135 of file swftypes.h.

tiny_string& lightspark::tiny_string::operator= ( const tiny_string s  )  [inline]

Definition at line 126 of file swftypes.h.

bool lightspark::tiny_string::operator== ( const char *  r  )  const [inline]

Definition at line 211 of file swftypes.h.

bool lightspark::tiny_string::operator== ( const tiny_string r  )  const [inline]

Definition at line 203 of file swftypes.h.

char lightspark::tiny_string::operator[] ( int  i  )  const [inline]

Definition at line 223 of file swftypes.h.

const char* lightspark::tiny_string::raw_buf (  )  const [inline]

Definition at line 219 of file swftypes.h.

void lightspark::tiny_string::resetToStatic (  )  [inline, private]

Definition at line 75 of file swftypes.h.

tiny_string lightspark::tiny_string::substr ( int  start,
int  end 
) const [inline]

Definition at line 231 of file swftypes.h.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const tiny_string r 
) [friend]

Member Data Documentation

char lightspark::tiny_string::_buf_static[TS_SIZE] [private]

Definition at line 58 of file swftypes.h.

Definition at line 59 of file swftypes.h.

Definition at line 60 of file swftypes.h.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 19:50:35 2010 for Lightspark by  doxygen 1.6.3