PPL Logo

xi::XStr Class Reference

#include <xi-util.h>

Collaboration diagram for xi::XStr:

Collaboration graph
[legend]

Public Member Functions

void append (const char *_s)
void append (char c)
void print (int indent)
void line_append (const char c)
 Appends character c to every line.
void line_append_padding (const char c, int lineWidth=80)
 pads with spaces and appends character c to every line. Also converts tabs to spaces.
void replace (const char a, const char b)
 XStr ()
 XStr (const char *_s)
 XStr (const XStr &_s)
 ~XStr ()
char * get_string (void) const
const char * get_string_const (void) const
char * charstar (void) const
 operator char * ()
int operator== (XStr &s2) const
int operator!= (XStr &s2) const
int operator== (const char *s2) const
int operator!= (const char *s2) const
XStr operator+ (const XStr &s2) const
XStroperator<< (const char *_s)
XStroperator<< (char c)
XStroperator<< (int i)
XStroperator<< (const XStr &x)
XStroperator<< (const XStr *x)
void spew (const char *b, const char *a1=0, const char *a2=0, const char *a3=0, const char *a4=0, const char *a5=0)

Private Member Functions

void initTo (const char *_s)
void operator= (const XStr &str)

Private Attributes

char * s
unsigned int len
unsigned int blklen

Detailed Description

Definition at line 20 of file xi-util.h.


Constructor & Destructor Documentation

xi::XStr::XStr (  ) 

Definition at line 41 of file xi-util.C.

References initTo().

xi::XStr::XStr ( const char *  _s  ) 

Definition at line 42 of file xi-util.C.

References initTo().

xi::XStr::XStr ( const XStr _s  ) 

Definition at line 43 of file xi-util.C.

References get_string_const(), and initTo().

xi::XStr::~XStr (  )  [inline]

Definition at line 49 of file xi-util.h.

References s.


Member Function Documentation

void xi::XStr::initTo ( const char *  _s  )  [private]

Definition at line 30 of file xi-util.C.

References blklen, len, and s.

Referenced by line_append(), line_append_padding(), and XStr().

void xi::XStr::operator= ( const XStr str  )  [private]

void xi::XStr::append ( const char *  _s  ) 

Definition at line 6 of file xi-util.C.

References blklen, len, and s.

Referenced by append(), xi::generateWhenCode(), xi::Entry::genPub(), operator+(), operator<<(), and spew().

void xi::XStr::append ( char  c  ) 

Definition at line 22 of file xi-util.C.

References append().

void xi::XStr::print ( int  indent  )  [inline]

Definition at line 35 of file xi-util.h.

References get_string().

Referenced by xi::Message::genDecls(), and xi::Chare::print().

void xi::XStr::line_append ( const char  c  ) 

Appends character c to every line.

Definition at line 52 of file xi-util.C.

References charstar(), initTo(), len, and s.

void xi::XStr::line_append_padding ( const char  c,
int  lineWidth = 80 
)

pads with spaces and appends character c to every line. Also converts tabs to spaces.

Definition at line 65 of file xi-util.C.

References charstar(), initTo(), len, and s.

Referenced by xi::CParsedFile::doProcess().

void xi::XStr::replace ( const char  a,
const char  b 
)

Definition at line 117 of file xi-util.C.

References len, and s.

Referenced by xi::Entry::epStr().

char* xi::XStr::get_string ( void   )  const [inline]

const char* xi::XStr::get_string_const ( void   )  const [inline]

Definition at line 51 of file xi-util.h.

References s.

Referenced by xi::Array::dim(), xi::Chare::lookforCEntry(), xi::makeIdent(), operator<<(), and XStr().

char* xi::XStr::charstar ( void   )  const [inline]

xi::XStr::operator char * (  )  [inline]

Definition at line 56 of file xi-util.h.

References get_string().

int xi::XStr::operator== ( XStr s2  )  const [inline]

Definition at line 58 of file xi-util.h.

References s.

int xi::XStr::operator!= ( XStr s2  )  const [inline]

Definition at line 59 of file xi-util.h.

References s.

int xi::XStr::operator== ( const char *  s2  )  const [inline]

Definition at line 60 of file xi-util.h.

References s.

int xi::XStr::operator!= ( const char *  s2  )  const [inline]

Definition at line 61 of file xi-util.h.

References s.

XStr xi::XStr::operator+ ( const XStr s2  )  const [inline]

Definition at line 63 of file xi-util.h.

References append(), and s.

XStr& xi::XStr::operator<< ( const char *  _s  )  [inline]

Definition at line 65 of file xi-util.h.

References append().

XStr& xi::XStr::operator<< ( char  c  )  [inline]

Definition at line 67 of file xi-util.h.

References append().

XStr & xi::XStr::operator<< ( int  i  ) 

Definition at line 45 of file xi-util.C.

References append().

XStr& xi::XStr::operator<< ( const XStr x  )  [inline]

Definition at line 69 of file xi-util.h.

References append(), and get_string_const().

XStr& xi::XStr::operator<< ( const XStr x  )  [inline]

Definition at line 70 of file xi-util.h.

References append(), and get_string_const().

void xi::XStr::spew ( const char *  b,
const char *  a1 = 0,
const char *  a2 = 0,
const char *  a3 = 0,
const char *  a4 = 0,
const char *  a5 = 0 
)

Definition at line 94 of file xi-util.C.

References abort(), append(), and length.


Field Documentation

char* xi::XStr::s [private]

unsigned int xi::XStr::len [private]

Definition at line 23 of file xi-util.h.

Referenced by append(), initTo(), line_append(), line_append_padding(), and replace().

unsigned int xi::XStr::blklen [private]

Definition at line 23 of file xi-util.h.

Referenced by append(), and initTo().


The documentation for this class was generated from the following files:

Generated on Fri May 25 08:06:25 2012 for Charm++ by  doxygen 1.5.5