SimGrid  3.14.159
Versatile Simulation of Distributed Systems
strbuff.h File Reference
#include "xbt/sysdep.h"
#include "xbt/function_types.h"
#include "xbt/log.h"
#include "xbt/str.h"
#include "xbt/dict.h"

Classes

struct  xbt_strbuff
 Buffer data container. More...
 

Typedefs

typedef struct xbt_strbuff s_xbt_strbuff_t
 
typedef struct xbt_strbuffxbt_strbuff_t
 

Functions

void xbt_strbuff_clear (xbt_strbuff_t b)
 Remove any content from the buffer. More...
 
xbt_strbuff_t xbt_strbuff_new (void)
 Constructor. More...
 
xbt_strbuff_t xbt_strbuff_new_from (const char *s)
 creates a new string buffer containing the provided string More...
 
void xbt_strbuff_free (xbt_strbuff_t b)
 frees the buffer and its content More...
 
void xbt_strbuff_free_container (xbt_strbuff_t b)
 frees only the container without touching to the contained string More...
 
void xbt_strbuff_append (xbt_strbuff_t b, const char *toadd)
 Adds some content at the end of the buffer. More...
 
void xbt_strbuff_printf (xbt_strbuff_t b, const char *fmt,...)
 format some content and push it at the end of the buffer More...
 
void xbt_strbuff_chomp (xbt_strbuff_t b)
 
void xbt_strbuff_trim (xbt_strbuff_t b)
 
void xbt_strbuff_varsubst (xbt_strbuff_t b, xbt_dict_t patterns)
 Replaces a set of variables by their values. More...