diff options
Diffstat (limited to 'lib/UnrarXLib/strfn.cpp')
-rw-r--r-- | lib/UnrarXLib/strfn.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/UnrarXLib/strfn.cpp b/lib/UnrarXLib/strfn.cpp index 53749d44cf..db3b17a88b 100644 --- a/lib/UnrarXLib/strfn.cpp +++ b/lib/UnrarXLib/strfn.cpp @@ -22,46 +22,30 @@ char *IntNameToExt(const char *Name) void ExtToInt(const char *Src,char *Dest) { -#if defined(_WIN_32) - CharToOem(Src,Dest); -#else if (Dest!=Src) strcpy(Dest,Src); -#endif } void IntToExt(const char *Src,char *Dest) { -#if defined(_WIN_32) - OemToChar(Src,Dest); -#else if (Dest!=Src) strcpy(Dest,Src); -#endif } char* strlower(char *Str) { -#ifdef _WIN_32 - CharLower((LPTSTR)Str); -#else for (char *ChPtr=Str;*ChPtr;ChPtr++) *ChPtr=(char)loctolower(*ChPtr); -#endif return(Str); } char* strupper(char *Str) { -#ifdef _WIN_32 - CharUpper((LPTSTR)Str); -#else for (char *ChPtr=Str;*ChPtr;ChPtr++) *ChPtr=(char)loctoupper(*ChPtr); -#endif return(Str); } @@ -102,21 +86,13 @@ char* RemoveLF(char *Str) unsigned int loctolower(byte ch) { -#ifdef _WIN_32 - return((int)CharLower((LPTSTR)ch)); -#else return(tolower(ch)); -#endif } unsigned int loctoupper(byte ch) { -#ifdef _WIN_32 - return((int)CharUpper((LPTSTR)ch)); -#else return(toupper(ch)); -#endif } |