1 #ifndef _RAR_STRFN_ 2 #define _RAR_STRFN_ 3 4 const char *NullToEmpty(const char *Str); 5 const wchar *NullToEmpty(const wchar *Str); 6 char *IntNameToExt(const char *Name); 7 void ExtToInt(const char *Src,char *Dest); 8 void IntToExt(const char *Src,char *Dest); 9 char* strlower(char *Str); 10 char* strupper(char *Str); 11 int stricomp(const char *Str1,const char *Str2); 12 int strnicomp(const char *Str1,const char *Str2,size_t N); 13 char* RemoveEOL(char *Str); 14 char* RemoveLF(char *Str); 15 unsigned char loctolower(unsigned char ch); 16 unsigned char loctoupper(unsigned char ch); 17 18 char* strncpyz(char *dest, const char *src, size_t maxlen); 19 wchar* strncpyzw(wchar *dest, const wchar *src, size_t maxlen); 20 21 unsigned char etoupper(unsigned char ch); 22 wchar etoupperw(wchar ch); 23 24 bool IsDigit(int ch); 25 bool IsSpace(int ch); 26 27 28 29 bool LowAscii(const char *Str); 30 bool LowAscii(const wchar *Str); 31 32 33 int stricompc(const char *Str1,const char *Str2); 34 #ifndef SFX_MODULE 35 int stricompcw(const wchar *Str1,const wchar *Str2); 36 #endif 37 38 void itoa(int64 n,char *Str); 39 int64 atoil(char *Str); 40 41 #endif 42