TToken_string vuota, molto indispensabile in funzioni
            che devono ritornare TString& a volte introvabili
            come ad esempio i TConfig o i TAssoc_array
strings.cpp Implementazione di EMPTY_STRING
text.h      Aggiornato #ifdef sull'inclusione di <stdio.h>
text.cpp    Cambiata indentazione parentesi
utility.*   Tolte righe vuote
git-svn-id: svn://10.65.10.50/trunk@6045 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
	
			
		
			
				
	
	
		
			57 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
#ifndef __UTILITY_H
 | 
						|
#define __UTILITY_H
 | 
						|
 | 
						|
#ifndef __STRINGS_H
 | 
						|
#include <strings.h>
 | 
						|
#endif
 | 
						|
 | 
						|
char* format (const char* fmt, ...);
 | 
						|
const char* cmd2name(const char* argv0, const char* argv1 = "");
 | 
						|
int rtoi(const char * roman);
 | 
						|
const char* itor(int i);
 | 
						|
bool fcopy(const char* orig, const char* dest, bool append=FALSE);
 | 
						|
bool fexist(const char* file);
 | 
						|
long fsize(const char* file);
 | 
						|
 | 
						|
enum os_type { os_Windows, os_Win32s, os_Windows95, os_WindowsNT };
 | 
						|
os_type get_os_type();
 | 
						|
 | 
						|
bool make_dir(const char* file);
 | 
						|
int list_files(const char* mask, TString_array& result);
 | 
						|
 | 
						|
const char* encode(const char* data);
 | 
						|
const char* decode(const char* data);
 | 
						|
 | 
						|
// @doc EXTERNAL
 | 
						|
 | 
						|
// @func Controlla se il carattere passato e' il simbolo di slash ('\\' oppure '/')
 | 
						|
//
 | 
						|
// @rdesc Ritorna i seguneti valori:
 | 
						|
//
 | 
						|
// @flag TRUE | Se il carattere <p s> non e' uno slash
 | 
						|
// @flag FALSE | Se il carattere <p s> e' uno slash
 | 
						|
inline bool is_not_slash(
 | 
						|
  char s)  // @parm Carattere da confrontare
 | 
						|
{  return s != '\\' && s != '/'; }
 | 
						|
 | 
						|
#if XVT_OS == XVT_OS_SCOUNIX
 | 
						|
int  stricmp(const char*, const char*);
 | 
						|
#endif
 | 
						|
#ifdef __WATCOMC__
 | 
						|
char * tempnam(const char * dir, const char * prefix);
 | 
						|
#endif
 | 
						|
 | 
						|
const char* esc(const char*);
 | 
						|
 | 
						|
#define ODD(x)   (x & 1)
 | 
						|
#define EVEN(x) !(x & 1) 
 | 
						|
 | 
						|
#ifdef __UTILITY_CPP
 | 
						|
char __tmp_string[1024];
 | 
						|
#else
 | 
						|
extern char __tmp_string[1024];
 | 
						|
#endif
 | 
						|
 | 
						|
 | 
						|
#endif /* __UTILITY_H */
 |