X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7279a2ea28348341347a9a4dc99d54355726290c..a1e5dedb10f6023f6061ad6e757794a673b585b0:/include/xbt/str.h diff --git a/include/xbt/str.h b/include/xbt/str.h index 2a64e95528..2152866d34 100644 --- a/include/xbt/str.h +++ b/include/xbt/str.h @@ -9,20 +9,24 @@ #ifndef XBT_STR_H #define XBT_STR_H -#include /* va_* */ -#include /* FILE */ #include "xbt/misc.h" #include "xbt/dynar.h" #include "xbt/dict.h" +#include /* va_* */ +#include /* FILE */ + +#ifdef _MSC_VER +#define strcasecmp _stricmp +#endif + SG_BEGIN_DECL() /** @addtogroup XBT_str * @brief String manipulation functions * - * This module defines several string related functions. Looking at the diversity of string - * manipulation functions that are provided, you can see that several SimGrid core developers - * actually like Perl. + * This module defines several string related functions. Looking at the diversity of string manipulation functions that + * are provided, you can see that several SimGrid core developers actually like Perl. * @{ */ @@ -45,12 +49,10 @@ XBT_PUBLIC(void) xbt_str_subst(char *str, char from, char to, int amount); XBT_PUBLIC(char *) xbt_str_varsubst(const char *str, xbt_dict_t patterns); /* */ -XBT_PUBLIC(void) xbt_str_strip_spaces(char *); -XBT_PUBLIC(char *) xbt_str_diff(const char *a, const char *b); - XBT_PUBLIC(char *) xbt_str_from_file(FILE * file); -XBT_PUBLIC(int) xbt_str_start_with(const char* str, const char* start); +XBT_PUBLIC(long int) xbt_str_parse_int(const char* str, const char* error_msg); +XBT_PUBLIC(double) xbt_str_parse_double(const char* str, const char* error_msg); #define DJB2_HASH_FUNCTION //#define FNV_HASH_FUNCTION