
#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. | |
| void | replace (const char a, const char b) |
| XStr () | |
| XStr (const char *_s) | |
| XStr (const XStr &_s) | |
| ~XStr () | |
| void | clear () |
| char * | get_string (void) const |
| const char * | get_string_const (void) const |
| char * | charstar (void) const |
| operator char * () | |
| size_t | length () const |
| 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 49 of file xi-util.h.
| xi::XStr::XStr | ( | ) |
| xi::XStr::XStr | ( | const char * | _s | ) |
| xi::XStr::XStr | ( | const XStr & | _s | ) |
Definition at line 39 of file xi-util.C.
References get_string_const(), and initTo().

| void xi::XStr::initTo | ( | const char * | _s | ) | [private] |
Definition at line 27 of file xi-util.C.
References blklen, len, and s.
Referenced by clear(), 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(), operator+(), operator<<(), and spew().

| void xi::XStr::append | ( | char | c | ) |
| void xi::XStr::print | ( | int | indent | ) | [inline] |
Definition at line 64 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(), count, initTo(), len, and s.
Referenced by xi::CParsedFile::doProcess().


| void xi::XStr::replace | ( | const char | a, | |
| const char | b | |||
| ) |
Definition at line 136 of file xi-util.C.
Referenced by xi::Entry::epStr().

| void xi::XStr::clear | ( | ) |
Definition at line 41 of file xi-util.C.
Referenced by xi::Entry::genClosure(), xi::Message::genDefs(), and xi::SdagEntryConstruct::generateCode().


| char* xi::XStr::get_string | ( | void | ) | const [inline] |
Definition at line 82 of file xi-util.h.
References s.
Referenced by charstar(), xi::Module::generate(), xi::SerialConstruct::generateCode(), xi::Entry::genTramRegs(), xi::Entry::genTramTypes(), xi::Entry::isConstructor(), operator char *(), print(), and xi::TParamList::to_string().

| const char* xi::XStr::get_string_const | ( | void | ) | const [inline] |
Definition at line 83 of file xi-util.h.
References s.
Referenced by xi::CEntry::check(), xi::Array::dim(), xi::WhenConstruct::generateCode(), xi::NamedEllipsisType::getBaseName(), xi::makeIdent(), operator<<(), and XStr().

| char* xi::XStr::charstar | ( | void | ) | const [inline] |
Definition at line 86 of file xi-util.h.
References get_string().
Referenced by xi::WhenConstruct::generateCode(), xi::SerialConstruct::generateCode(), xi::OverlapConstruct::generateCode(), xi::OListConstruct::generateCode(), xi::IfConstruct::generateCode(), xi::ForConstruct::generateCode(), xi::ElseConstruct::generateCode(), xi::CaseListConstruct::generateCode(), xi::CaseConstruct::generateCode(), xi::SerialConstruct::generateTrace(), xi::SdagEntryConstruct::labelNodes(), line_append(), line_append_padding(), xi::CToken::print(), and xi::ForallConstruct::propagateState().


| xi::XStr::operator char * | ( | ) | [inline] |
Definition at line 88 of file xi-util.h.
References get_string().

| size_t xi::XStr::length | ( | void | ) | const [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] |
Definition at line 112 of file xi-util.h.
References append(), and get_string_const().

Definition at line 116 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 | |||
| ) |
char* xi::XStr::s [private] |
Definition at line 51 of file xi-util.h.
Referenced by xi::addLineNumbers(), append(), clear(), 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 52 of file xi-util.h.
Referenced by append(), initTo(), length(), line_append(), line_append_padding(), and replace().
unsigned int xi::XStr::blklen [private] |
1.5.5