added support for UTF-8
now the UTF-8 is a default charset git-svn-id: svn://ttmath.org/publicrep/winix/trunk@677 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
#include "mount.h"
|
||||
|
||||
#include "misc.h"
|
||||
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ return true;
|
||||
|
||||
|
||||
|
||||
bool Mount::IsArg(int code, const char * arg)
|
||||
bool Mount::IsArg(int code, const wchar_t * arg)
|
||||
{
|
||||
ParamRow::ParamArg::iterator i;
|
||||
|
||||
@@ -63,7 +63,7 @@ return false;
|
||||
}
|
||||
|
||||
|
||||
bool Mount::IsArg(int code, const std::string & arg)
|
||||
bool Mount::IsArg(int code, const std::wstring & arg)
|
||||
{
|
||||
return IsArg(code, arg.c_str());
|
||||
}
|
||||
@@ -81,7 +81,7 @@ bool Mount::IsArg(int code, int arg)
|
||||
|
||||
for(i=param[code].arg.begin() ; i!=param[code].arg.end() ; ++i)
|
||||
{
|
||||
if( atoi(i->c_str()) == arg )
|
||||
if( Atoi(*i) == arg )
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ return false;
|
||||
}
|
||||
|
||||
|
||||
const std::string & Mount::Arg(int code, int arg) const
|
||||
const std::wstring & Mount::Arg(int code, int arg) const
|
||||
{
|
||||
if( code < 0 || code >= (int)param.size() )
|
||||
return empty_str;
|
||||
@@ -104,7 +104,7 @@ return param[code].arg[arg];
|
||||
}
|
||||
|
||||
|
||||
const std::string & Mount::FirstArg(int code) const
|
||||
const std::wstring & Mount::FirstArg(int code) const
|
||||
{
|
||||
return Arg(code, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user