示例#1
0
void ReMatchErrorMessage(const RegExp& re)
{
	if (re.LastError() != errNone)
	{

		Message(MSG_WARNING | MSG_LEFTALIGN, MSG(MError),
			make_vector(GetReErrorString(re.LastError())),
			make_vector<string>(MSG(MOk)));
	}
}
示例#2
0
void ReCompileErrorMessage(const RegExp& re, const string& str)
{
	Message(MSG_WARNING | MSG_LEFTALIGN, MSG(MError),
		make_vector(GetReErrorString(re.LastError()), str, string(re.ErrorPosition(), L' ') + L'^'),
		make_vector<string>(MSG(MOk)));
}