add Finder::esc(...) methods

This commit is contained in:
2022-12-02 11:45:19 +01:00
parent 7f4deaf847
commit 2ac8769d3a
3 changed files with 154 additions and 0 deletions

View File

@@ -939,6 +939,31 @@ void BaseExpression::put_table_and_field(const pt::WTextStream & table_name, con
void BaseExpression::put_string(const char * str, const FT & field_type, bool add_quotes)
{
put_string_generic(str, field_type, add_quotes);
}
void BaseExpression::put_string(const wchar_t * str, const FT & field_type, bool add_quotes)
{
put_string_generic(str, field_type, add_quotes);
}
void BaseExpression::put_string(const std::string & str, const FT & field_type, bool add_quotes)
{
put_string_generic(str, field_type, add_quotes);
}
void BaseExpression::put_string(const std::wstring & str, const FT & field_type, bool add_quotes)
{
put_string_generic(str, field_type, add_quotes);
}
void BaseExpression::schema_table_to_stream(pt::TextStream & stream, const wchar_t * schema_name, const wchar_t * table_name)
{
this->out_stream = &stream;
@@ -1020,6 +1045,41 @@ void BaseExpression::table_and_field_to_stream(pt::TextStream & stream, const pt
void BaseExpression::string_to_stream(pt::TextStream & stream, const char * str, const FT & field_type, bool add_quotes)
{
this->out_stream = &stream;
put_string(str, field_type, add_quotes);
this->out_stream = nullptr;
}
void BaseExpression::string_to_stream(pt::TextStream & stream, const wchar_t * str, const FT & field_type, bool add_quotes)
{
this->out_stream = &stream;
put_string(str, field_type, add_quotes);
this->out_stream = nullptr;
}
void BaseExpression::string_to_stream(pt::TextStream & stream, const std::string & str, const FT & field_type, bool add_quotes)
{
this->out_stream = &stream;
put_string(str, field_type, add_quotes);
this->out_stream = nullptr;
}
void BaseExpression::string_to_stream(pt::TextStream & stream, const std::wstring & str, const FT & field_type, bool add_quotes)
{
this->out_stream = &stream;
put_string(str, field_type, add_quotes);
this->out_stream = nullptr;
}
bool BaseExpression::is_empty_field(const wchar_t * value)
{
return (!value || *value == '\0');