JOrderedSetT::CompareResult
CBCPreprocessor::CompareMacros
	(
	const MacroInfo& m1,
	const MacroInfo& m2
	)
{
	return JCompareStringsCaseInsensitive(m1.name, m2.name);
}
JOrderedSetT::CompareResult 	
GMessageHeader::CompareFrom
	(
	GMessageHeader* const & h1,
	GMessageHeader* const & h2
	)
{
	return JCompareStringsCaseInsensitive(&(h1->itsFromNames), &(h2->itsFromNames));
}
JOrderedSetT::CompareResult
JXDocumentManager::CompareDocNames
	(
	const DocInfo& d1,
	const DocInfo& d2
	)
{
	return JCompareStringsCaseInsensitive(const_cast<JString*>(&((d1.doc)->GetName())),
										  const_cast<JString*>(&((d2.doc)->GetName())));
}
Beispiel #4
0
JOrderedSetT::CompareResult
JFSBinding::ComparePatterns
	(
	JFSBinding* const & n1,
	JFSBinding* const & n2
	)
{
	return JCompareStringsCaseInsensitive(const_cast<JString*>(&(n1->GetPattern())),
										  const_cast<JString*>(&(n2->GetPattern())));
}
	virtual JOrderedSetT::CompareResult
	Compare(const JIndex& s1, const JIndex& s2) const
	{
		JString* prefix = const_cast<JString*>(&itsPrefix);
		if (s1 == 0)
			{
			const CBSymbolList::SymbolInfo& info = (itsData.GetCArray())[s2-1];
			return JCompareStringsCaseInsensitive(prefix, info.name);
			}
		else if (s2 == 0)
			{
			const CBSymbolList::SymbolInfo& info = (itsData.GetCArray())[s1-1];
			return JCompareStringsCaseInsensitive(info.name, prefix);
			}
		else
			{
			assert( 0 /* CBSymbolList.cc:ClosestMatchCompare::Compare() didn't get a zero */ );
			return JOrderedSetT::kFirstEqualSecond;
			}
	}
JOrderedSetT::CompareResult
CMLineAddressTable::CompareBreakpointAddresses
	(
	CMBreakpoint* const & bp1,
	CMBreakpoint* const & bp2
	)
{
	return JCompareStringsCaseInsensitive(
		const_cast<JString*>(&(bp1->GetAddress())),
		const_cast<JString*>(&(bp2->GetAddress())));
}
JOrderedSetT::CompareResult
GLFitDescription::CompareFits
	(
	GLFitDescription* const & f1,
	GLFitDescription* const & f2
	)
{
	if (f1->GetType() == f2->GetType())
		{
		return JCompareStringsCaseInsensitive(const_cast<JString*>(&(f1->GetFnName())), const_cast<JString*>(&(f2->GetFnName())));
		}
	else if (f1->GetType() >= kBLinear)
		{
		return JOrderedSetT::kFirstLessSecond;
		}
	else if (f1->GetType() == kModule)
		{
		return JOrderedSetT::kFirstGreaterSecond;
		}
	else if (f1->GetType() == kPolynomial)
		{
		if (f2->GetType() >= kBLinear)
			{
			return JOrderedSetT::kFirstGreaterSecond;
			}
		else
			{
			return JOrderedSetT::kFirstLessSecond;
			}
		}
	else
		{
		if (f2->GetType() == kModule)
			{
			return JOrderedSetT::kFirstLessSecond;
			}
		else
			{
			return JOrderedSetT::kFirstGreaterSecond;
			}
		}
	
}
	virtual JOrderedSetT::CompareResult
	Compare(const JIndex& s1, const JIndex& s2) const
	{
		const CBSymbolList::SymbolInfo* info = itsData.GetCArray();
		return JCompareStringsCaseInsensitive(info[s1-1].name, info[s2-1].name);
	}