sqldata/str.cpp
// Quote string with single quoted, diplicate single quotes inside the string
Quote string with single quoted, diplicate single quotes inside the string
Quote string with single quoted diplicate single quotes inside the string
void Str::Quote(std::string &source, std::string &target)
{
	target = '\'';
	for(std::string::iterator i = source.begin(); i != source.end(); i++) 
	{
		target += (*i);
		if((*i) == '\'')
			target += (*i);
	}
	target += '\'';
}
void Str :: Quote ( std :: string & source , std :: string & target ) { target = ' \' ' ; for ( std :: string :: iterator i = source . begin ( ) ; i != source . end ( ) ; i ++ ) { target += ( * i ) ; if ( ( * i ) == ' \' ' ) target += ( * i ) ; } target += ' \' ' ; }
Quote string with single quoted, diplicate single quotes inside the string
Quote string with single quoted diplicate single quotes inside the string
// Duplicate single quote