add more Finder::esc(...) and raw(...) methods

This commit is contained in:
2022-12-02 13:26:30 +01:00
parent 2ac8769d3a
commit dfc631dd06
3 changed files with 113 additions and 34 deletions

View File

@@ -266,6 +266,8 @@ public:
virtual void put_string(const wchar_t * str, const FT & field_type, bool add_quotes = false);
virtual void put_string(const std::string & str, const FT & field_type, bool add_quotes = false);
virtual void put_string(const std::wstring & str, const FT & field_type, bool add_quotes = false);
virtual void put_stream(const pt::TextStream & str, const FT & field_type, bool add_quotes = false);
virtual void put_stream(const pt::WTextStream & str, const FT & field_type, bool add_quotes = false);
virtual void schema_table_to_stream(pt::TextStream & stream, const wchar_t * schema_name, const wchar_t * table_name);
virtual void schema_table_to_stream(pt::TextStream & stream, const pt::WTextStream & schema_name, const pt::WTextStream & table_name);
@@ -282,6 +284,8 @@ public:
virtual void string_to_stream(pt::TextStream & stream, const wchar_t * str, const FT & field_type, bool add_quotes = false);
virtual void string_to_stream(pt::TextStream & stream, const std::string & str, const FT & field_type, bool add_quotes = false);
virtual void string_to_stream(pt::TextStream & stream, const std::wstring & str, const FT & field_type, bool add_quotes = false);
virtual void stream_to_stream(pt::TextStream & stream_out, const pt::TextStream & stream_in, const FT & field_type, bool add_quotes = false);
virtual void stream_to_stream(pt::TextStream & stream_out, const pt::WTextStream & stream_in, const FT & field_type, bool add_quotes = false);
@@ -304,8 +308,8 @@ public:
}
}
template<typename StringType>
void put_string_generic(const StringType & str, const FT & field_type, bool add_quotes)
template<typename StringOrStreamType>
void put_string_generic(const StringOrStreamType & str, const FT & field_type, bool add_quotes)
{
if( out_stream )
{