#include <UT_WorkBuffer.h>
Public Member Functions | |
| UT_WorkBuffer () | |
| ~UT_WorkBuffer () | |
| const char * | buffer () const |
| char * | lock (int offset=0, size_t reserve_bytes=0) |
| void | release (int recomputeLength=0) |
| int | getAllocatedSize () const |
| void | reserve (size_t bytes=0) |
| char | operator() (int idx) const |
| int | isNullTerminated () const |
| void | strcpy (const char *src) |
| void | strcpy (const UT_WorkBuffer &src) |
| void | strncpy (const char *src, int maxlen) |
| int | strlen () const |
| int | length () const |
| void | strcat (const char *src) |
| void | protectedStrcat (const char *str, bool forcequote=false) |
| void | strncat (const char *src, int len) |
| void | strcatFirstWord (const char *src) |
| int | strcmp (const char *src) const |
| int | strncmp (const char *src, int n) const |
| char * | strdup () const |
| void | clear () |
| void | write (int offset, char c) |
| void | write (int offset, const char *src) |
| bool | getline (istream &is) |
| bool | getline (FILE *fp) |
| bool | cmdGetLine (istream &is, UT_WorkArgs &args, int &line_num, const char *comment_chars="#", const char *separators=" \t\n\r") |
| bool | cmdGetLine (UT_IStream &is, UT_WorkArgs &args, int &line_num, const char *comment_chars="#", const char *separators=" \t\n\r") |
| bool | cmdGetLine (FILE *fp, UT_WorkArgs &args, int &line_num, const char *comment_chars="#", const char *separators=" \t\n\r") |
| int | sprintf (const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2 |
| int int | appendSprintf (const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2 |
| int int int | vsprintf (const char *fmt, va_list ap) |
| void | append (char character) |
| void | append (const char *data, int size) |
| void | append (const char *str) |
| void | append (const UT_String &str) |
| void | append (const UT_WorkBuffer &wb) |
| void | prepend (char character) |
| void | prepend (const char *data, int size) |
| void | prepend (const char *str) |
| void | prepend (const UT_String &str) |
| void | rewind () |
| void | backup (int by_length) |
| void | backupTo (char c) |
| void | advance (int by_length) |
| const char * | findChar (char c, int occurance_number=1) const |
| bool | getNextToken (const char *(&string), const UT_String separators=" \t\n") |
| void | copyIntoString (UT_String &str) |
| void | copyIntoString (char *str, int max_length) |
| bool | stripComments (char comment_char= '#') |
| void | removeTrailingSpaceLines () |
Friends | |
| UT_API ostream & | operator<< (ostream &os, const UT_WorkBuffer &buffer) |
COP2/COP2_PixelAdd.C, ROP/ROP_Dumper.C, SIM/SIM_SolverSNOW.C, SOP/SOP_CustomBrush.C, standalone/dsmprint.C, and standalone/geo2voxel.C.
Definition at line 55 of file UT_WorkBuffer.h.
| UT_WorkBuffer::UT_WorkBuffer | ( | ) |
| UT_WorkBuffer::~UT_WorkBuffer | ( | ) |
| void UT_WorkBuffer::advance | ( | int | by_length | ) | [inline] |
Definition at line 359 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::append | ( | const UT_WorkBuffer & | wb | ) | [inline] |
Definition at line 300 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::append | ( | const UT_String & | str | ) | [inline] |
Definition at line 294 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::append | ( | const char * | str | ) | [inline] |
Definition at line 288 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::append | ( | const char * | data, | |
| int | size | |||
| ) | [inline] |
Definition at line 277 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::append | ( | char | character | ) | [inline] |
Definition at line 267 of file UT_WorkBuffer.h.
| int int UT_WorkBuffer::appendSprintf | ( | const char * | fmt, | |
| ... | ||||
| ) |
| void UT_WorkBuffer::backup | ( | int | by_length | ) | [inline] |
Definition at line 338 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::backupTo | ( | char | c | ) | [inline] |
Definition at line 350 of file UT_WorkBuffer.h.
| const char* UT_WorkBuffer::buffer | ( | ) | const [inline] |
Definition at line 64 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::clear | ( | void | ) | [inline] |
Definition at line 200 of file UT_WorkBuffer.h.
| bool UT_WorkBuffer::cmdGetLine | ( | FILE * | fp, | |
| UT_WorkArgs & | args, | |||
| int & | line_num, | |||
| const char * | comment_chars = "#", |
|||
| const char * | separators = " \t\n\r" | |||
| ) |
| bool UT_WorkBuffer::cmdGetLine | ( | UT_IStream & | is, | |
| UT_WorkArgs & | args, | |||
| int & | line_num, | |||
| const char * | comment_chars = "#", |
|||
| const char * | separators = " \t\n\r" | |||
| ) |
| bool UT_WorkBuffer::cmdGetLine | ( | istream & | is, | |
| UT_WorkArgs & | args, | |||
| int & | line_num, | |||
| const char * | comment_chars = "#", |
|||
| const char * | separators = " \t\n\r" | |||
| ) |
| void UT_WorkBuffer::copyIntoString | ( | char * | str, | |
| int | max_length | |||
| ) |
| void UT_WorkBuffer::copyIntoString | ( | UT_String & | str | ) |
| const char* UT_WorkBuffer::findChar | ( | char | c, | |
| int | occurance_number = 1 | |||
| ) | const [inline] |
Definition at line 371 of file UT_WorkBuffer.h.
| int UT_WorkBuffer::getAllocatedSize | ( | ) | const [inline] |
Definition at line 86 of file UT_WorkBuffer.h.
| bool UT_WorkBuffer::getline | ( | FILE * | fp | ) |
| bool UT_WorkBuffer::getline | ( | istream & | is | ) |
| int UT_WorkBuffer::isNullTerminated | ( | ) | const |
| int UT_WorkBuffer::length | ( | void | ) | const [inline] |
| char* UT_WorkBuffer::lock | ( | int | offset = 0, |
|
| size_t | reserve_bytes = 0 | |||
| ) |
| char UT_WorkBuffer::operator() | ( | int | idx | ) | const [inline] |
Definition at line 94 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::prepend | ( | const UT_String & | str | ) | [inline] |
Definition at line 330 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::prepend | ( | const char * | str | ) | [inline] |
Definition at line 324 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::prepend | ( | const char * | data, | |
| int | size | |||
| ) | [inline] |
Definition at line 314 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::prepend | ( | char | character | ) | [inline] |
Definition at line 305 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::protectedStrcat | ( | const char * | str, | |
| bool | forcequote = false | |||
| ) |
| void UT_WorkBuffer::release | ( | int | recomputeLength = 0 |
) |
| void UT_WorkBuffer::removeTrailingSpaceLines | ( | ) |
| void UT_WorkBuffer::reserve | ( | size_t | bytes = 0 |
) |
| void UT_WorkBuffer::rewind | ( | ) | [inline] |
Definition at line 336 of file UT_WorkBuffer.h.
| int UT_WorkBuffer::sprintf | ( | const char * | fmt, | |
| ... | ||||
| ) |
| void UT_WorkBuffer::strcat | ( | const char * | src | ) | [inline] |
Definition at line 156 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::strcatFirstWord | ( | const char * | src | ) |
| int UT_WorkBuffer::strcmp | ( | const char * | src | ) | const [inline] |
Definition at line 181 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::strcpy | ( | const UT_WorkBuffer & | src | ) | [inline] |
Definition at line 125 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::strcpy | ( | const char * | src | ) | [inline] |
| char* UT_WorkBuffer::strdup | ( | ) | const [inline] |
Definition at line 193 of file UT_WorkBuffer.h.
| bool UT_WorkBuffer::stripComments | ( | char | comment_char = '#' |
) |
| int UT_WorkBuffer::strlen | ( | ) | const [inline] |
Definition at line 145 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::strncat | ( | const char * | src, | |
| int | len | |||
| ) | [inline] |
Definition at line 165 of file UT_WorkBuffer.h.
| int UT_WorkBuffer::strncmp | ( | const char * | src, | |
| int | n | |||
| ) | const [inline] |
Definition at line 187 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::strncpy | ( | const char * | src, | |
| int | maxlen | |||
| ) | [inline] |
Definition at line 131 of file UT_WorkBuffer.h.
| int int int UT_WorkBuffer::vsprintf | ( | const char * | fmt, | |
| va_list | ap | |||
| ) |
| void UT_WorkBuffer::write | ( | int | offset, | |
| const char * | src | |||
| ) | [inline] |
Definition at line 228 of file UT_WorkBuffer.h.
| void UT_WorkBuffer::write | ( | int | offset, | |
| char | c | |||
| ) | [inline] |
Definition at line 210 of file UT_WorkBuffer.h.
| UT_API ostream& operator<< | ( | ostream & | os, | |
| const UT_WorkBuffer & | buffer | |||
| ) | [friend] |
1.5.9