
#include <xi-util.h>

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 |
| XStr & | operator<< (const char *_s) |
| XStr & | operator<< (char c) |
| XStr & | operator<< (int i) |
| XStr & | operator<< (const XStr &x) |
| XStr & | operator<< (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 |
Definition at line 20 of file xi-util.h.
| xi::XStr::XStr | ( | const XStr & | _s | ) |
| 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::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 | ) |
| 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 | |||
| ) |
| char* xi::XStr::get_string | ( | void | ) | const [inline] |
Definition at line 50 of file xi-util.h.
References s.
Referenced by charstar(), xi::Module::generate(), xi::Entry::isConstructor(), operator char *(), print(), and xi::TParamList::to_string().
| 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] |
Definition at line 54 of file xi-util.h.
References get_string().
Referenced by xi::Module::generate(), xi::SdagConstruct::generateAtomic(), xi::SdagConstruct::generateCall(), xi::CEntry::generateCode(), xi::SdagConstruct::generateConnect(), xi::SdagConstruct::generateConnectEntries(), xi::SdagConstruct::generateElse(), xi::SdagConstruct::generateFor(), xi::SdagConstruct::generateForall(), xi::SdagConstruct::generateForward(), xi::SdagConstruct::generateIf(), xi::SdagConstruct::generateListEventBracket(), xi::SdagConstruct::generateOlist(), xi::SdagConstruct::generateOverlap(), xi::SdagConstruct::generateSdagEntry(), xi::generateSignature(), xi::SdagConstruct::generateSlist(), xi::SdagConstruct::generateTrace(), xi::SdagConstruct::generateTraceBeginCall(), xi::SdagConstruct::generateWhen(), xi::generateWhenCode(), xi::SdagConstruct::generateWhile(), xi::Entry::genPub(), xi::SdagConstruct::labelNodes(), line_append(), line_append_padding(), xi::CToken::print(), and xi::SdagConstruct::propagateState().
| xi::XStr::operator char * | ( | ) | [inline] |
| int xi::XStr::operator== | ( | const char * | s2 | ) | const [inline] |
| int xi::XStr::operator!= | ( | const char * | s2 | ) | const [inline] |
| XStr& xi::XStr::operator<< | ( | const char * | _s | ) | [inline] |
| XStr& xi::XStr::operator<< | ( | char | c | ) | [inline] |
| 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 | |||
| ) |
char* xi::XStr::s [private] |
Definition at line 22 of file xi-util.h.
Referenced by append(), get_string(), get_string_const(), initTo(), line_append(), line_append_padding(), operator!=(), operator+(), operator==(), replace(), and ~XStr().
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] |
1.5.5