예제 #1
0
파일: C_String.cpp 프로젝트: mlbrock/MlbDev
//	////////////////////////////////////////////////////////////////////////////
int C_stricmp(char *ptr_1, const char *ptr_2, const char *name_string)
{
	if (ptr_1 == NULL) {
		std::ostringstream error_text;
		error_text << NullOrEmptyToStringWithColon(name_string, "") <<
			"Invocation of 'stricmp()' failed: destination string is 'NULL'.";
		ThrowInvalidArgument(error_text);
	}

	if (ptr_2 == NULL) {
		std::ostringstream error_text;
		error_text << NullOrEmptyToStringWithColon(name_string, "") <<
			"Invocation of 'stricmp()' failed: souce string is 'NULL'.";
		ThrowInvalidArgument(error_text);
	}

	return(Utility_stricmp(ptr_1, ptr_2));
}
예제 #2
0
//	////////////////////////////////////////////////////////////////////////////
bool EnvElement::operator < (const EnvElement &other) const
{
	return(Utility_stricmp(env_name_.c_str(), other.env_name_.c_str()) < 0);
}