From 7592e0f6dce7a0bb05280336f5b6afb8f6c5a31d Mon Sep 17 00:00:00 2001 From: bonazzi Date: Fri, 2 Sep 2016 08:53:40 +0000 Subject: [PATCH] Patch level : 10.0 no patch Files correlati : Ricompilazione Demo : [ ] Commento : Aggiunti alle Token_string i metodi add per reali e date. git-svn-id: svn://10.65.10.50/branches/R_10_00@23217 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/strings.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/strings.h b/include/strings.h index b96abf3e1..34e97f238 100755 --- a/include/strings.h +++ b/include/strings.h @@ -609,6 +609,10 @@ public: void add(long n, int pos = -1); // @cmember Aggiunge un intero void add(int n, int pos = -1); + // @cmember Aggiunge un reale + void add(const real r, int pos = -1); + // @cmember Aggiunge un reale + void add(const TDate d, int pos = -1); // @cmember Inserisce una stringa void insert_at(const char* s, int n); // @cmember Toglie la stringa di posizione pos @@ -722,6 +726,11 @@ TToken_string& get_tmp_string(int len = -1); const TToken_string& empty_string(); #define EMPTY_STRING empty_string() -const char SLASH = '\\'; +const char SLASH = +#if XVT_OS == XVT_OS_WIN32 +'\\'; +#else +'/'; +#endif #endif