changed: now we do not use std::string and char* in the Winix API
everywhere we are using std::wstring and wchar_t* (std::string and char* is used only locally in some places especially when creating a path to OS file system etc.) added: to the special thread when winix closes: a write function for curl: FetchPageOnExitCurlCallback() without this function the curl library will print the page's content to the standart output changed: TextStream<> class from core can make UTF8<->wide strings conversions removed: from config: utf8 option now winix expects UTF8 from the user's input (html forms, url-es) and outputs strings in the UTF8 format git-svn-id: svn://ttmath.org/publicrep/winix/trunk@965 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -63,7 +63,7 @@ void DbTextStream::SetExtented(bool ext)
|
||||
|
||||
DbTextStream & DbTextStream::PutText(const char * str)
|
||||
{
|
||||
buffer += str;
|
||||
TextStream<std::string>::operator<<(str);
|
||||
was_param = false;
|
||||
|
||||
return *this;
|
||||
@@ -85,7 +85,7 @@ DbTextStream & DbTextStream::PutText(const std::string & str)
|
||||
|
||||
DbTextStream & DbTextStream::PutText(const wchar_t * str)
|
||||
{
|
||||
PT::WideToUTF8(str, buffer, false);
|
||||
TextStream<std::string>::operator<<(str);
|
||||
was_param = false;
|
||||
|
||||
return *this;
|
||||
@@ -229,7 +229,7 @@ DbTextStream & DbTextStream::operator<<(RawText<PT::Date> date)
|
||||
{
|
||||
tmp_stream.Clear();
|
||||
date.par.Serialize(tmp_stream);
|
||||
AssignString(tmp_stream.CStr(), buffer, false);
|
||||
PT::WideToUTF8(tmp_stream.CStr(), buffer, false);
|
||||
tmp_stream.Clear();
|
||||
|
||||
was_param = false;
|
||||
@@ -246,30 +246,6 @@ return *this;
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
old PostgreSQL Escape Format
|
||||
*/
|
||||
/*
|
||||
DbTextStream & DbTextStream::EBinPutChar(char c_)
|
||||
{
|
||||
char buf[20];
|
||||
|
||||
int c = (unsigned char)c_;
|
||||
|
||||
if( (c>=0 && c<=31) || c>=127 || c=='\'' || c=='\\' )
|
||||
{
|
||||
sprintf(buf, "\\\\%03o", c);
|
||||
buffer += buf;
|
||||
}
|
||||
else
|
||||
{
|
||||
buffer += c;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
*/
|
||||
|
||||
// get hex digit for c_ between <0, 15>
|
||||
char DbTextStream::EBinGetHex(char c)
|
||||
{
|
||||
|
Reference in New Issue
Block a user