27#define PRGNAME PACKAGE "/" VERSION
97 int l = strlen(node->data);
98 memcpy(p, node->data, l *
sizeof(
char));
112 Node *node, *nextNode;
113 for (node =
firstNode; node; node = nextNode) {
114 nextNode = node->
next;
132 bits = (
unsigned char*)malloc(
numBytes *
sizeof(
unsigned char));
144 for (
int i = 0; i <
numBits; i++)
154 return bits[i / 8] & (1 << (i % 8));
164 while (8 * i >= newNumBytes)
168 assert((vp = realloc(
bits, newNumBytes *
sizeof(
unsigned char))));
170 bits = (
unsigned char*)vp;
176 bits[i / 8] |= (1 << (i % 8));
178 bits[i / 8] &= ~(1 << (i % 8));
void intoStringBuffer(misc::StringBuffer *sb)
void set(int i, bool val)
int bytesForBits(int bits)
A class for fast concatenation of a large number of strings.
void clear()
Remove all strings appended to the string buffer.
void append(const char *str)
Append a NUL-terminated string to the buffer, with copying.
void appendNoCopy(char *str)
Append a NUL-terminated string to the buffer, without copying.
const char * getChars()
Return a NUL-terminated strings containing all appended strings.