Functions |
long | StrBufPeek (StrBuf *Buf, const char *ptr, long nThChar, char PeekValue) |
| modifies a Single char of the Buf You can point to it via char* or a zero-based integer
|
long | StrBufPook (StrBuf *Buf, const char *ptr, long nThChar, long nChars, char PookValue) |
| modifies a range of chars of the Buf You can point to it via char* or a zero-based integer
|
void | StrBufAppendBuf (StrBuf *Buf, const StrBuf *AppendBuf, unsigned long Offset) |
| Append a StringBuffer to the buffer.
|
void | StrBufAppendBufPlain (StrBuf *Buf, const char *AppendBuf, long AppendSize, unsigned long Offset) |
| Append a C-String to the buffer.
|
void | StrBufVAppendPrintf (StrBuf *Buf, const char *format, va_list ap) |
| sprintf like function appending the formated string to the buffer vsnprintf version to wrap into own calls
|
void | StrBufAppendPrintf (StrBuf *Buf, const char *format,...) |
| sprintf like function appending the formated string to the buffer
|
void | StrBufPrintf (StrBuf *Buf, const char *format,...) |
| sprintf like function putting the formated string into the buffer
|
size_t | CurlFillStrBuf_callback (void *ptr, size_t size, size_t nmemb, void *stream) |
| Callback for cURL to append the webserver reply to a buffer.
|
void | StrBufUpCase (StrBuf *Buf) |
| uppercase the contents of a buffer
|
void | StrBufLowerCase (StrBuf *Buf) |
| lowercase the contents of a buffer
|
Detailed Description
operations to get your Strings into a StrBuf, manipulating them, or appending
Function Documentation
size_t CurlFillStrBuf_callback |
( |
void * |
ptr, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
void * |
stream | |
|
) |
| | |
Callback for cURL to append the webserver reply to a buffer.
- Parameters:
-
| ptr | pre-defined by the cURL API; see man 3 curl for mre info |
| size | pre-defined by the cURL API; see man 3 curl for mre info |
| nmemb | pre-defined by the cURL API; see man 3 curl for mre info |
| stream | pre-defined by the cURL API; see man 3 curl for mre info |
void StrBufAppendBuf |
( |
StrBuf * |
Buf, |
|
|
const StrBuf * |
AppendBuf, |
|
|
unsigned long |
Offset | |
|
) |
| | |
Append a StringBuffer to the buffer.
- Parameters:
-
| Buf | Buffer to modify |
| AppendBuf | Buffer to copy at the end of our buffer |
| Offset | Should we start copying from an offset? |
void StrBufAppendBufPlain |
( |
StrBuf * |
Buf, |
|
|
const char * |
AppendBuf, |
|
|
long |
AppendSize, |
|
|
unsigned long |
Offset | |
|
) |
| | |
Append a C-String to the buffer.
- Parameters:
-
| Buf | Buffer to modify |
| AppendBuf | Buffer to copy at the end of our buffer |
| AppendSize | number of bytes to copy; set to -1 if we should count it in advance |
| Offset | Should we start copying from an offset? |
void StrBufAppendPrintf |
( |
StrBuf * |
Buf, |
|
|
const char * |
format, |
|
|
|
... | |
|
) |
| | |
sprintf like function appending the formated string to the buffer
- Parameters:
-
| Buf | Buffer to extend by format and Params |
| format | printf alike format to add |
void StrBufLowerCase |
( |
StrBuf * |
Buf |
) |
|
lowercase the contents of a buffer
- Parameters:
-
| Buf | the buffer to translate |
long StrBufPeek |
( |
StrBuf * |
Buf, |
|
|
const char * |
ptr, |
|
|
long |
nThChar, |
|
|
char |
PeekValue | |
|
) |
| | |
modifies a Single char of the Buf You can point to it via char* or a zero-based integer
- Parameters:
-
| Buf | The buffer to manipulate |
| ptr | char* to zero; use NULL if unused |
| nThChar | zero based pointer into the string; use -1 if unused |
| PeekValue | The Character to place into the position |
long StrBufPook |
( |
StrBuf * |
Buf, |
|
|
const char * |
ptr, |
|
|
long |
nThChar, |
|
|
long |
nChars, |
|
|
char |
PookValue | |
|
) |
| | |
modifies a range of chars of the Buf You can point to it via char* or a zero-based integer
- Parameters:
-
| Buf | The buffer to manipulate |
| ptr | char* to zero; use NULL if unused |
| nThChar | zero based pointer into the string; use -1 if unused |
| nChars | how many chars are to be flushed? |
| PookValue | The Character to place into that area |
void StrBufPrintf |
( |
StrBuf * |
Buf, |
|
|
const char * |
format, |
|
|
|
... | |
|
) |
| | |
sprintf like function putting the formated string into the buffer
- Parameters:
-
| Buf | Buffer to extend by format and Parameters |
| format | printf alike format to add |
void StrBufUpCase |
( |
StrBuf * |
Buf |
) |
|
uppercase the contents of a buffer
- Parameters:
-
| Buf | the buffer to translate |
void StrBufVAppendPrintf |
( |
StrBuf * |
Buf, |
|
|
const char * |
format, |
|
|
va_list |
ap | |
|
) |
| | |
sprintf like function appending the formated string to the buffer vsnprintf version to wrap into own calls
- Parameters:
-
| Buf | Buffer to extend by format and Params |
| format | printf alike format to add |
| ap | va_list containing the items for format |