本文整理汇总了C++中CStr::ToUpper方法的典型用法代码示例。如果您正苦于以下问题:C++ CStr::ToUpper方法的具体用法?C++ CStr::ToUpper怎么用?C++ CStr::ToUpper使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CStr
的用法示例。
在下文中一共展示了CStr::ToUpper方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
//------------------------------------------------------------------------------
/// \brief
//------------------------------------------------------------------------------
std::string SqBcList::impl::SpTableSql ()
{
std::string str;
CStr packName = m_pack->GetPackage()->PackageName();
ColMap &colMap(iSpTableCols());
if (colMap.find(packName) == colMap.end()) return str;
std::vector<CStr> &colStrs = colMap[packName].first;
std::vector<CStr> &colTypes = colMap[packName].second;
// find any aux variables that we don't create by default
std::set<CStr> strs;
strs.insert("K");
strs.insert("I");
strs.insert("J");
for (size_t i=3; i<colStrs.size(); ++i) // skip OID, CELLID, SPID
{
CStr tmp = colStrs[i];
tmp.ToUpper();
strs.insert(tmp);
}
std::vector<CStr> fieldStr = m_pack->m_fieldStrings;
std::vector<CStr> aux;
for (size_t i=0; i<fieldStr.size(); ++i)
{
CStr tmp = fieldStr[i];
tmp.ToUpper();
if (strs.find(tmp) == strs.end())
{
colStrs.push_back(fieldStr[i]);
colTypes.push_back("REAL");
}
}
std::stringstream ss;
ss << "CREATE TABLE LST_STRESS_PERIODS ("
<< colStrs.front() << " " << colTypes.front();
for (size_t i=1; i<colStrs.size(); ++i)
ss << ", " << colStrs[i] << " " << colTypes[i];
ss << ")";
return ss.str();
} // SqBcList::impl::SpTableSql