SimGrid  3.18
Versatile Simulation of Distributed Systems
str.h File Reference
#include "xbt/dict.h"
#include "xbt/dynar.h"
#include "xbt/misc.h"
#include <stdarg.h>
#include <stdio.h>

Macros

#define XBT_DJB2_HASH_FUNCTION
 

Functions

xbt_dynar_t xbt_str_split (const char *s, const char *sep)
 Splits a string into a dynar of strings. More...
 
xbt_dynar_t xbt_str_split_quoted (const char *s)
 Splits a string into a dynar of strings, taking quotes into account. More...
 
xbt_dynar_t xbt_str_split_quoted_in_place (char *s)
 Just like xbt_str_split_quoted (Splits a string into a dynar of strings), but without memory allocation. More...
 
char * xbt_str_join_array (const char *const *strs, const char *sep)
 Join a set of strings as a single string. More...
 
long int xbt_str_parse_int (const char *str, const char *error_msg)
 Parse an integer out of a string, or raise an error. More...
 
double xbt_str_parse_double (const char *str, const char *error_msg)
 Parse a double out of a string, or raise an error. More...
 
static unsigned int xbt_str_hash_ext (const char *str, int str_len)
 Returns the hash code of a string. More...
 
static unsigned int xbt_str_hash (const char *str)
 Returns the hash code of a string. More...