updated to the new pikotools api: changed utf8 functions PascalCase to snake_case
This commit is contained in:
@@ -434,7 +434,7 @@ return *this;
|
||||
template<class StringType>
|
||||
void TextStream<StringType>::Convert(wchar_t c, std::string & dst)
|
||||
{
|
||||
pt::IntToUTF8((int)c, dst, false);
|
||||
pt::int_to_utf8((int)c, dst, false);
|
||||
}
|
||||
|
||||
|
||||
@@ -448,7 +448,7 @@ void TextStream<StringType>::Convert(wchar_t c, std::wstring & dst)
|
||||
template<class StringType>
|
||||
void TextStream<StringType>::Convert(const char * src, size_t len, std::wstring & dst)
|
||||
{
|
||||
pt::UTF8ToWide(src, len, dst, false);
|
||||
pt::utf8_to_wide(src, len, dst, false);
|
||||
}
|
||||
|
||||
|
||||
@@ -456,14 +456,14 @@ void TextStream<StringType>::Convert(const char * src, size_t len, std::wstring
|
||||
template<class StringType>
|
||||
void TextStream<StringType>::Convert(const char * src, std::wstring & dst)
|
||||
{
|
||||
pt::UTF8ToWide(src, dst, false);
|
||||
pt::utf8_to_wide(src, dst, false);
|
||||
}
|
||||
|
||||
|
||||
template<class StringType>
|
||||
void TextStream<StringType>::Convert(const std::string & src, std::wstring & dst)
|
||||
{
|
||||
pt::UTF8ToWide(src, dst, false);
|
||||
pt::utf8_to_wide(src, dst, false);
|
||||
}
|
||||
|
||||
|
||||
@@ -473,21 +473,21 @@ void TextStream<StringType>::Convert(const std::string & src, std::wstring & dst
|
||||
template<class StringType>
|
||||
void TextStream<StringType>::Convert(const wchar_t * src, size_t len, std::string & dst)
|
||||
{
|
||||
pt::WideToUTF8(src, len, dst, false);
|
||||
pt::wide_to_utf8(src, len, dst, false);
|
||||
}
|
||||
|
||||
|
||||
template<class StringType>
|
||||
void TextStream<StringType>::Convert(const wchar_t * src, std::string & dst)
|
||||
{
|
||||
pt::WideToUTF8(src, dst, false);
|
||||
pt::wide_to_utf8(src, dst, false);
|
||||
}
|
||||
|
||||
|
||||
template<class StringType>
|
||||
void TextStream<StringType>::Convert(const std::wstring & src, std::string & dst)
|
||||
{
|
||||
pt::WideToUTF8(src, dst, false);
|
||||
pt::wide_to_utf8(src, dst, false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user