Beispiel #1
0
tStr sqlquery::process_searchterm(const char* searchterm, const bool& exactmatch)
{
	tStr srchterm, srchterm2;
	if (!exactmatch)
	{
		srchterm2 = add_escape_char(searchterm,        '%', ';').c_str();
		srchterm2 = add_escape_char( srchterm2.c_str(), '_', ';').c_str();
		srchterm = "%";
		srchterm += srchterm2;
		srchterm += "%";
		replacechar( srchterm.begin(), srchterm.end(), '*', '%');
		replacechar( srchterm.begin(), srchterm.end(), '?', '_');
	}
	else srchterm = searchterm;
	return srchterm;
}
Beispiel #2
0
std::string symdata_pack::line_text_escaped(void)
{
	return add_escape_char(line_text.substr(0, 80) , '"', '"');
}
Beispiel #3
0
std::string sym_data::symbname_escaped(void)
{
	return add_escape_char(symbname, '"', '"');
}