示例#1
0
static StaticType generalCompTypeConversion(const StaticType &arg0_type, const StaticType &arg1_type)
{
	StaticType result = arg0_type;

	StaticType target = arg1_type;
	if(target.getMax() != 0)
		target.setCardinality(1, 1);
	target.substitute(StaticType::NUMERIC_TYPE, StaticType::DOUBLE_TYPE);
	target.substitute(StaticType::UNTYPED_ATOMIC_TYPE, StaticType::STRING_TYPE);

	result.substitute(StaticType::UNTYPED_ATOMIC_TYPE, target);
	return result;
}
示例#2
0
static StaticType valueCompTypeConversion(const StaticType &arg0_type)
{
	StaticType result = arg0_type;
	result.substitute(StaticType::UNTYPED_ATOMIC_TYPE, StaticType::STRING_TYPE);
	return result;
}