本文整理汇总了C++中STRING::IsEqual方法的典型用法代码示例。如果您正苦于以下问题:C++ STRING::IsEqual方法的具体用法?C++ STRING::IsEqual怎么用?C++ STRING::IsEqual使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类STRING
的用法示例。
在下文中一共展示了STRING::IsEqual方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
virtual VALUE<CELLADAPTER> ceefit_call_spec GetType(const STRING& name)
{
CELLADAPTER* type = null;
if(name.IsEqual("boolean"))
{
type = new FITFIELD<bool>();
}
else if(name.IsEqual("integer"))
{
type = new FITFIELD<signed int>();
}
else if(name.IsEqual("real"))
{
type = new FITFIELD<float>();
}
else if(name.IsEqual("string"))
{
type = new FITFIELD<STRING>();
}
//name.equals("date") ? Date.class :
else if(name.IsEqual("money"))
{
type = new FITFIELD< CEEFAT::MONEY >();
}
else if(name.IsEqual("scientific"))
{
type = new FITFIELD< SCIENTIFICDOUBLE >();
}
else if(name.IsEqual("integers"))
{
type = new FITFIELD< DYNARRAY<int> >();
}
else if(name.IsEqual("booleans"))
{
type = new FITFIELD< DYNARRAY<bool> >();
}
else if(name.IsEqual("strings"))
{
type = new FITFIELD< DYNARRAY<STRING> >();
}
if (type == null)
{
throw new EXCEPTION(STRING("Unimplemented choice ") + name);
}
return(VALUE<CELLADAPTER>(type));
}
示例2: CreateFixtureByAlias
void ceefit_call_spec FIXTURE::CreateFixtureByAlias(PTR<FIXTURE>& out, const STRING& aAlias)
{
SLINKLIST<FIXTUREFACTORY>& aList = RUNNER::GetFixtureFactoryList();
FIXTUREFACTORY* aFactory = aList.GetHead();
while(aFactory != null)
{
const char* bAlias = aFactory->GetAlias();
if(bAlias != null && aAlias.IsEqual(bAlias))
{
aFactory->CreateFixture(out);
return;
}
aFactory = aFactory->GetNext();
}
out = null;
}
示例3: CreateFixtureByClassName
void ceefit_call_spec FIXTURE::CreateFixtureByClassName(PTR<FIXTURE>& out, const STRING& className)
{
SLINKLIST<FIXTUREFACTORY>& aList = RUNNER::GetFixtureFactoryList();
FIXTUREFACTORY* aFactory = aList.GetHead();
while(aFactory != null)
{
const char* aName = aFactory->GetName();
if(aName != null && className.IsEqual(aName))
{
aFactory->CreateFixture(out);
return;
}
aFactory = aFactory->GetNext();
}
out = null;
}