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:
@@ -15,27 +15,27 @@ class TicketParser
|
||||
{
|
||||
public:
|
||||
|
||||
int Parse(const char * str, TicketConf & conf);
|
||||
int Parse(const std::string & str, TicketConf & conf);
|
||||
int Parse(const wchar_t * str, TicketConf & conf);
|
||||
int Parse(const std::wstring & str, TicketConf & conf);
|
||||
|
||||
private:
|
||||
|
||||
TicketConf * pconf;
|
||||
const char * pchar;
|
||||
const wchar_t * pchar;
|
||||
int error; // last error code
|
||||
TicketConf::TicketItem item;
|
||||
std::string type;
|
||||
std::string id_str;
|
||||
std::string int_min, int_max;
|
||||
std::wstring type;
|
||||
std::wstring id_str;
|
||||
std::wstring int_min, int_max;
|
||||
TicketConf::TicketItem::Select select;
|
||||
|
||||
bool IsWhite(int c);
|
||||
void SkipWhite();
|
||||
void SkipWhiteLines();
|
||||
void SkipLine();
|
||||
void ReadTextQuoted(std::string & text);
|
||||
void ReadTextSimple(std::string & text, bool comma_separator);
|
||||
void ReadText(std::string & text, bool comma_separator = false);
|
||||
void ReadTextQuoted(std::wstring & text);
|
||||
void ReadTextSimple(std::wstring & text, bool comma_separator);
|
||||
void ReadText(std::wstring & text, bool comma_separator = false);
|
||||
|
||||
void CheckId(int & id, bool & def);
|
||||
void SetItemId();
|
||||
|
||||
Reference in New Issue
Block a user