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:
12
core/mount.h
12
core/mount.h
@@ -23,7 +23,7 @@ public:
|
||||
|
||||
struct ParamRow
|
||||
{
|
||||
typedef std::vector<std::string> ParamArg;
|
||||
typedef std::vector<std::wstring> ParamArg;
|
||||
|
||||
bool defined;
|
||||
ParamArg arg;
|
||||
@@ -48,21 +48,21 @@ public:
|
||||
|
||||
bool IsPar(int code);
|
||||
|
||||
bool IsArg(int code, const char * arg);
|
||||
bool IsArg(int code, const std::string & arg);
|
||||
bool IsArg(int code, const wchar_t * arg);
|
||||
bool IsArg(int code, const std::wstring & arg);
|
||||
bool IsArg(int code, int arg);
|
||||
|
||||
// returning the arg argument if defined (or an empty string)
|
||||
const std::string & Arg(int code, int arg) const;
|
||||
const std::wstring & Arg(int code, int arg) const;
|
||||
|
||||
// returning the first argument (arg=0) if defined (or an empty string)
|
||||
const std::string & FirstArg(int code) const;
|
||||
const std::wstring & FirstArg(int code) const;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
// for Arg() methods when the argument is not defined
|
||||
const std::string empty_str;
|
||||
const std::wstring empty_str;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user