updated to the new pikotools api: changed utf8 functions PascalCase to snake_case
This commit is contained in:
@@ -187,7 +187,7 @@ const std::wstring & DbBase::AssertValueWide(PGresult * r, int row, int col)
|
||||
const char * res = AssertValue(r, row, col);
|
||||
static std::wstring temp_wide_value; // !! IMPROVE ME add as a class field (nonstatic)
|
||||
|
||||
pt::UTF8ToWide(res, temp_wide_value);
|
||||
pt::utf8_to_wide(res, temp_wide_value);
|
||||
|
||||
return temp_wide_value;
|
||||
}
|
||||
@@ -211,7 +211,7 @@ void DbBase::AssertValueBin(PGresult * r, int row, int col, std::string & result
|
||||
void DbBase::AssertValueWide(PGresult * r, int row, int col, std::wstring & result)
|
||||
{
|
||||
const char * res = AssertValue(r, row, col);
|
||||
pt::UTF8ToWide(res, result);
|
||||
pt::utf8_to_wide(res, result);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -229,7 +229,7 @@ DbTextStream & DbTextStream::operator<<(RawText<pt::Date> date)
|
||||
{
|
||||
tmp_stream.Clear();
|
||||
date.par.Serialize(tmp_stream);
|
||||
pt::WideToUTF8(tmp_stream.CStr(), buffer, false);
|
||||
pt::wide_to_utf8(tmp_stream.CStr(), buffer, false);
|
||||
tmp_stream.Clear();
|
||||
|
||||
was_param = false;
|
||||
@@ -290,7 +290,7 @@ DbTextStream & DbTextStream::ETextPutChar(wchar_t c)
|
||||
buffer += "\\\'"; // don't use "''" because we use the method for PQconnectdb too
|
||||
else
|
||||
if( c != 0 )
|
||||
pt::IntToUTF8(int(c), buffer, false);
|
||||
pt::int_to_utf8(int(c), buffer, false);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user